# Functions
No description provided by the author
Cutover reports the number of failures of IndexByte we should tolerate before switching over to Index.
DedupeWhitespace removes any duplicate whitespace from the string and replaces it with a single space.
Equal reports whether a and b are the same length and contain the same bytes.
HashStrBytes returns the hash and the appropriate multiplicative factor for use in Rabin-Karp algorithm.
IndexRabinKarpBytes uses the Rabin-Karp search algorithm to return the index of the first occurrence of substr in s, or -1 if not present.
IsAlphaNum reports whether the byte is an ASCII letter, number, or underscore.
No description provided by the author
No description provided by the author
No description provided by the author
IsASCIIPrintable checks if s is ascii and printable, aka doesn't include tab, backspace, etc.
IsASCIISpace tests for the most common ASCII whitespace characters: ' ', '\t', '\n', '\f', '\r', '\v'
This excludes all Unicode code points above 0x007F.
No description provided by the author
IsDigitSingleOP uses a single operation instead of the standard a << c && c << b form Another good example: very common thing is if(x >= 1 && x <= 9) which can be done as if( (unsigned)(x-1) <=(unsigned)(9-1)) Changing two conditional tests to one can be a big speed advantage; especially when it allows predicated execution instead of branches.
IsDigitSingleOPCompare is a sample implementation used for benchmarking IsDigitSingleOP.
No description provided by the author
No description provided by the author
IsUnicodeWhiteSpaceMap reports whether the rune is any utf8 whitespace character using the broadest and most complete definition.
No description provided by the author
NewList returns a new List from the given data.
NewSet returns a new Set from the given List.
RuneSample prints a sample of various Unicode runes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ToString implements Stringer directly as a function call with a parameter instead of a method on that parameter.
No description provided by the author
No description provided by the author
# Constants
'\r'.
'\f'.
'\n'.
x86 values.
'\U0010FFFF' // Maximum valid Unicode code point.
No description provided by the author
No description provided by the author
PrimeRK is the prime base used in Rabin-Karp algorithm.
'\uFFFD' // the "error" Rune or "Unicode replacement character".
0x80 // characters below RuneSelf are represented as themselves in a single byte.
No description provided by the author
'\t'.
4 // maximum number of bytes of a UTF-8 encoded Unicode character.
'\v'.
# Variables
No description provided by the author
# Interfaces
Any is used to store data when the type cannot be determined ahead of time.
# Type aliases
No description provided by the author