Documentation ¶
Index ¶
- Constants
- func CleanPath(r []rune) []rune
- func Clone(r []rune) []rune
- func Compare(a, b []rune) int
- func Convert(b []byte, r []rune, eof bool) (nb, nr int, nulls bool)
- func Equal(s1, s2 []rune) bool
- func Index(r, s []rune) int
- func IndexRune(rs []rune, c rune) int
- func IsAddr(r rune) bool
- func IsAlphaNum(c rune) bool
- func IsFilename(r rune) bool
- func IsRegx(r rune) bool
- func SkipBlank(r []rune) []rune
- func SkipNonBlank(r []rune) []rune
- type Range
- type Text
Constants ¶
View Source
const Infinity = 0x7FFFFFFF
View Source
const RuneSize = 4
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
Convert converts bytes in b to runes in r, returning the number of bytes processed from b, the number of runes written to r, and whether any null bytes were elided. If eof is true, then any partial runes at the end of b should be processed, and nb == len(b) at return. Otherwise, partial runes are left behind and nb may be up to utf8.UTFMax-1 bytes short of len(b).
func IsAlphaNum ¶
func IsFilename ¶
func IsRegx ¶
* quite hard: could be almost anything but white space, but we are a little conservative, * aiming for regular expressions of alphanumerics and no white space
func SkipNonBlank ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.