Versions in this module Expand all Collapse all v0 v0.1.0 Aug 24, 2026 Changes in this version + const SurrogateLowStart + func AddUTF8ByteOrderMark(text string) string + func CodePointToSurrogatePair(ch rune) (high rune, low rune) + func CombineSurrogatePairs(s string) string + func ContainsNonASCII(s string) bool + func DecodeJSStringRune(s string) (rune, int) + func EncodeJSStringRune(ch rune) string + func EncodeURI(s string) string + func EquateStringCaseInsensitive(a, b string) bool + func EquateStringCaseSensitive(a, b string) bool + func GetStringComparer(ignoreCase bool) func(a, b string) Comparison + func GetStringEqualityComparer(ignoreCase bool) func(a, b string) bool + func GuessIndentation(lines []string) int + func HasPrefix(s string, prefix string, caseSensitive bool) bool + func HasPrefixAndSuffixWithoutOverlap(s string, prefix string, suffix string, caseSensitive bool) bool + func HasSuffix(s string, suffix string, caseSensitive bool) bool + func IsASCIILetter(ch rune) bool + func IsDigit(ch rune) bool + func IsHexDigit(ch rune) bool + func IsHighSurrogate(ch rune) bool + func IsLineBreak(ch rune) bool + func IsLowSurrogate(ch rune) bool + func IsOctalDigit(ch rune) bool + func IsSurrogate(ch rune) bool + func IsUnicodeIdentifierPart(ch rune) bool + func IsUnicodeIdentifierStart(ch rune) bool + func IsWhiteSpaceLike(ch rune) bool + func IsWhiteSpaceSingleLine(ch rune) bool + func LowerFirstChar(str string) string + func RemoveByteOrderMark(text string) string + func SplitLines(text string) []string + func StripQuotes(name string) string + func SurrogatePairToCodePoint(high rune, low rune) rune + func ToLowerJS(str string) string + func ToUpperJS(str string) string + func TruncateByRunes(str string, maxLength int) string + func UnquoteString(str string) string + type Comparison = int + const ComparisonEqual + const ComparisonGreaterThan + const ComparisonLessThan + func CompareStringsCaseInsensitive(a string, b string) Comparison + func CompareStringsCaseInsensitiveEslintCompatible(a, b string) Comparison + func CompareStringsCaseInsensitiveThenSensitive(a, b string) Comparison + func CompareStringsCaseSensitive(a string, b string) Comparison