gitlab.com/evatix-go/core@v1.3.55/enums/stringcompareas/isNotAnyCharsFunc.go (about) 1 package stringcompareas 2 3 import "strings" 4 5 // isNotAnyCharsFunc reports whether any 6 // Unicode code points in chars are NOT within contentLine. 7 // 8 // Tided with NotAnyChars 9 var isNotAnyCharsFunc = func( 10 contentLine, 11 charsFind string, 12 isIgnoreCase bool, 13 ) bool { 14 if isIgnoreCase { 15 return !strings.ContainsAny( 16 strings.ToLower(contentLine), 17 strings.ToLower(charsFind), 18 ) 19 } 20 21 return !strings.ContainsAny( 22 contentLine, 23 charsFind, 24 ) 25 }