Documentation
¶
Overview ¶
Package bytescase implements ascii case insensitive matching and case conversion.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStr = [ErrLast]string{
"no error",
"not enough space in dst",
}
ErrStr is an array that maps error ids to error strings.
Functions ¶
func Prefix ¶
Prefix checks if s starts with prefix in case insensitive mode. Returns an index in s[] pointing after the matched prefix + true on success (e.g. len(prefix), true) or an index to the first non-matching character in s and false (e.g.: n, false) if the prefix is not fully contained in s.
If s==prefix the returned index will be len(s) and if prefix == [] the index will be 0. If prefix is longer then s the return will be 0, false.
Types ¶
Click to show internal directories.
Click to hide internal directories.