syncthing/vendor/github.com/gobwas/glob/util/strings/strings.go
2016-09-13 22:20:22 +02:00

14 lines
183 B
Go

package strings
import "strings"
func IndexAnyRunes(s string, rs []rune) int {
for _, r := range rs {
if i := strings.IndexRune(s, r); i != -1 {
return i
}
}
return -1
}