package helpers
Import Path
github.com/dlclark/regexp2/v2/helpers (on go.dev)
Dependency Relation
imports 8 packages, and imported by one package
Package-Level Type Names (total 3)
return the first index of our original vals values within the slice given
return the first index of anything except our original vals values within the slice given
return the last index of our original vals values within the slice given
return the last index of our original vals values within the slice given
func NewAsciiSearchValues(vals string) AsciiSearchValues
return the first index of our original vals values within the slice given
return the first index of our original vals values within the slice given
return the last index of our original vals values within the slice given
return the last index of our original vals values within the slice given
func NewRuneSearchValues(vals string) RuneSearchValues
( StringSearchValues) IndexOfAny(in []rune) int
( StringSearchValues) StartsWith(chars []rune) int
( StringSearchValues) StartsWithIgnoreCase(chars []rune) int
func NewStringSearchValues(vals [][]rune, ignoreCase bool) StringSearchValues
Package-Level Functions (total 35)
func EqualStringIgnoreCaseASCII(s, prefix string) bool func IndexOfAny(in []rune, find []rune) int func IndexOfAny1(in []rune, find rune) int func IndexOfAny2(in []rune, find1, find2 rune) int func IndexOfAny3(in []rune, find1, find2, find3 rune) int func IndexOfAnyExcept(in []rune, bad []rune) int func IndexOfAnyExcept1(in []rune, bad rune) int func IndexOfAnyExcept2(in []rune, bad1, bad2 rune) int func IndexOfAnyExcept3(in []rune, bad1, bad2, bad3 rune) int func IndexOfAnyExceptInRange(in []rune, first, last rune) int func IndexOfAnyExceptInSet(in []rune, set syntax.CharSet) int func IndexOfAnyInRange(in []rune, first, last rune) int
find should always be sent in lower-case
func IndexOfIgnoreCaseAscii(in []rune, find []rune) int func IndexStringIgnoreCaseASCII(s, prefix string) int func IsInASCIIBitmap(ch rune, lo uint64, hi uint64) bool func IsInMask32(ch rune, mask uint32) bool func IsInMask64(ch rune, mask uint64) bool
According to UTS#18 Unicode Regular Expressions (http://www.unicode.org/reports/tr18/)
RL 1.4 Simple Word Boundaries The class of <word_character> includes all Alphabetic
values from the Unicode character database, from UnicodeData.txt [UData], plus the U+200C
ZERO WIDTH NON-JOINER and U+200D ZERO WIDTH JOINER.
func LastIndexOf(in []rune, find []rune) int func LastIndexOfAny1(in []rune, find rune) int func LastIndexOfAnyExcept1(in []rune, not rune) int func LastIndexOfAnyInRange(in []rune, first, last rune) int func NewAsciiSearchValues(vals string) AsciiSearchValues func NewRuneSearchValues(vals string) RuneSearchValues func NewStringSearchValues(vals [][]rune, ignoreCase bool) StringSearchValues func StartsWith(in []rune, find []rune) bool
find should always be sent in lower-case
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |