mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-20 10:55:45 +08:00
Add xy_str_to_ styles
This commit is contained in:
17
test_xy.c
17
test_xy.c
@@ -25,6 +25,23 @@ main (int argc, char const *argv[])
|
||||
puts(xy_strjoin(6, "楚山横地出,", "汉水接天回。", "冠盖非新里,", "章华即旧台。", "习池风景异,", "归路满尘埃。"));
|
||||
|
||||
|
||||
puts(xy_str_to_bold("粗体"));
|
||||
puts(xy_str_to_faint("浅体"));
|
||||
puts(xy_str_to_italic("斜体"));
|
||||
puts(xy_str_to_underline("下划线"));
|
||||
puts(xy_str_to_blink("闪烁"));
|
||||
puts(xy_str_to_cross("删除线"));
|
||||
|
||||
puts(xy_str_to_red("红色"));
|
||||
puts(xy_str_to_green("绿色"));
|
||||
puts(xy_str_to_yellow("黄色"));
|
||||
puts(xy_str_to_blue("蓝色"));
|
||||
puts(xy_str_to_magenta("紫色"));
|
||||
puts(xy_str_to_purple("紫色"));
|
||||
puts(xy_str_to_cyan("青色"));
|
||||
|
||||
|
||||
|
||||
putb(xy_str_end_with("abcdef", "abcdefg")); // false
|
||||
putb(xy_str_end_with("abcdef", "def")); // true
|
||||
putb(xy_str_end_with("abcdef", "bcdef")); // true
|
||||
|
||||
Reference in New Issue
Block a user