Debian Codegraph @

doc.go

raw
1 // Copyright 2023 Charlie Vieth. All rights reserved.
2 // Use of this source code is governed by the MIT license.
3
4 //go:generate go run gen.go
5
6 /*
7 Package [strcase] is a case-insensitive and Unicode aware implementation of the
8 Go standard library's [strings] package that is fast, accurate, and never
9 allocates memory.
10
11 Simple Unicode case-folding is used for all comparisons. This matches the
12 behavior of [strings.EqualFold].
13
14 Package strcase also provides two functions for identifying non-ASCII characters
15 that are not available in the strings package: [IndexNonASCII] and
16 [ContainsNonASCII].
17 On amd64 and arm64 these functions are implemented in assembly and their
18 performance is mostly governed by memory bandwidth.
19
20 [strings]: https://pkg.go.dev/strings
21 [strcase]: https://pkg.go.dev/github.com/charlievieth/strcase
22 */
23 package strcase
24
25 // BUG(cvieth): There is no mechanism for full case folding, that is, for
26 // characters that involve multiple runes in the input or output
27 // (see: https://pkg.go.dev/unicode#pkg-note-BUG).
28 //
29 // This is a limitation of Go's [unicode] package.
30 //
31 // [unicode]: https://pkg.go.dev/unicode#pkg-note-BUG