Documentation
¶
Index ¶
- func ContainsAllWords(s string, words []string, isCaseInsensitive bool) bool
- func ContainsAnyWord(s string, words []string, isCaseInsensitive bool) bool
- func ContainsAnyWordRunes(s string, words [][]rune, isCaseInsensitive bool) bool
- func ContainsSubRunes(allRunes []rune, subRunes []rune, isCaseInsensitive bool) bool
- func ContainsWordRunes(allRunes []rune, subRunes []rune, isCaseInsensitive bool) (result bool, firstIndex int)
- func EqualRune(r1 rune, r2 rune, isCaseInsensitive bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAllWords ¶
ContainsAllWords 检查字符串是否包含所有单词
func ContainsAnyWord ¶
ContainsAnyWord 检查字符串是否包含任一单词
func ContainsAnyWordRunes ¶
ContainsAnyWordRunes 直接使用rune检查字符串是否包含任一单词
func ContainsSubRunes ¶
ContainsSubRunes 检查字符列表是否包含某个子子字符列表 与 ContainsWordRunes 不同,这里不需要检查边界符号
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.