package
0.0.0-20240824093629-11ab6f7acd0b
Repository: https://github.com/hiscaler/gox.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
HexToByte 16进制字符串转 []byte Like pack("H*", string) in PHP.
No description provided by the author
IsEmpty 判断字符串是否为空.
Len 获取字符串长度(一个中文算 1).
LowerFirst 首字母小写.
No description provided by the author
RemoveEmoji 清理 Emoji 表情.
RemoveExtraSpace 移除多余的空格.
SequentialWordFields 将 s 字符串根据指定的分隔符分隔为 1 - n 个连续单词组合的词组 单词前后的非字母和数字将会移除掉(比如 help? 将会变成 help),单词中间的则不会处理(a?b 包含在单词中间的 ? 不会处理) stringx.SequentialWordFields("this is a string, are you sure?", 1, ",") => ["this", "is", "a", "string", "are", "you", "sure"] stringx.SequentialWordFields("this is a string, are you sure?", 2, ",") => ["this", "is", "a", "string", "are", "you", "sure", "this is", "is a", "a string", "are you", "you sure"].
Split split word by special seps, use empty string if seps is empty.
No description provided by the author
No description provided by the author
No description provided by the author
ToNarrow Full width string to half width.
ToNumber 字符串转换为唯一数字 https://stackoverflow.com/questions/5459436/how-can-i-generate-a-unique-int-from-a-unique-string.
ToWiden Half with string to full width.
TrimAny 移除头部和尾部指定的内容.
UpperFirst 首字母大写.
WordMatched 判断 s 中是否包含指定的 words 单词 对于英文必须是单词形式,比如 he 不能匹配 hello world,只能匹配 hello|world 如果是中文的话,则会使用 Index 进行判断,不等于 -1 则判断为匹配.