Add xy_str_to_ styles

This commit is contained in:
Aoran Zeng
2023-09-05 15:15:55 +08:00
parent b7bbba9f03
commit 5ba6146ca0
2 changed files with 109 additions and 0 deletions

View File

@@ -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