package runes
import "github.com/gobwas/glob/util/runes"
Index ¶
- func Contains(s, needle []rune) bool
- func Equal(a, b []rune) bool
- func HasPrefix(s, prefix []rune) bool
- func HasSuffix(s, suffix []rune) bool
- func Index(s, needle []rune) int
- func IndexAny(s, chars []rune) int
- func IndexLastRune(s []rune, r rune) int
- func IndexRune(s []rune, r rune) int
- func LastIndex(s, needle []rune) int
- func Max(s []rune) (max rune)
- func Min(s []rune) rune
Functions ¶
func Contains ¶
func Equal ¶
func HasPrefix ¶
HasPrefix tests whether the string s begins with prefix.
func HasSuffix ¶
HasSuffix tests whether the string s ends with suffix.
func Index ¶
func IndexAny ¶
IndexAny returns the index of the first instance of any Unicode code point from chars in s, or -1 if no Unicode code point from chars is present in s.
func IndexLastRune ¶
func IndexRune ¶
func LastIndex ¶
func Max ¶
func Min ¶
Source Files ¶
- Version
- v0.2.3 (latest)
- Published
- Feb 8, 2018
- Platform
- linux/amd64
- Last checked
- 5 days ago –
Tools for package owners.