Debian Codegraph @

debian/control

raw
1 Source: golang-github-charlievieth-strcase
2 Section: golang
3 Maintainer: Debian Go Packaging Team <[email protected]>
4 Uploaders: Stephen Gelman <[email protected]>,
5 Build-Depends: debhelper-compat (= 14),
6 dh-sequence-golang,
7 dpkg-build-api (= 1),
8 golang-any,
9 golang-github-schollz-progressbar-dev,
10 golang-github-stretchr-testify-dev,
11 golang-golang-x-mod-dev,
12 golang-golang-x-sys-dev,
13 golang-golang-x-term-dev,
14 golang-golang-x-text-dev,
15 Testsuite: autopkgtest-pkg-go
16 Standards-Version: 4.7.4
17 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-charlievieth-strcase
18 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-charlievieth-strcase.git
19 Homepage: https://github.com/charlievieth/strcase
20 XS-Go-Import-Path: github.com/charlievieth/strcase
21
22 Package: golang-github-charlievieth-strcase-dev
23 Architecture: all
24 Multi-Arch: foreign
25 Depends: golang-golang-x-sys-dev,
26 ${misc:Depends},
27 Description: Case-insensitive implementation of Go's strings package (library)
28 Package strcase (/) and bytcase (/bytcase/README.md) are case-
29 insensitive
30 and Unicode aware implementations of the Go standard library's strings
31 (https://pkg.go.dev/strings) and bytes (https://pkg.go.dev/bytes)
32 packages that are accurate, fast, and never allocate memory.
33 .
34 Simple Unicode case-folding is used for all comparisons. This matches
35 the
36 behavior of strings.EqualFold (https://pkg.go.dev/strings#EqualFold) and
37 regexp.Regexp (https://pkg.go.dev/regexp#Regexp) (when the pattern is
38 compiled with the case-insensitive flag (?i)) and is more accurate (and
39 significantly more efficient) than using strings.ToLower
40 (https://pkg.go.dev/strings#ToLower) or strings.ToUpper
41 (https://pkg.go.dev/strings#ToUpper) to normalize the needle / haystack
42 before searching.
43 .
44 Note: The bytcase package is analogous to the strcase package;
45 whatever applies to strcase also applies to bytcase. For simplicity, the
46 documentation primarily refers to strcase. Unless otherwise noted, all
47 comments apply to both packages.
48 .
49 Overview
50 .
51 * Drop-in replacement for the strings (https://pkg.go.dev/strings) and
52 bytes (https://pkg.go.dev/bytes) packages that provides Unicode
53 aware case-insensitive matching.
54 * Simple Unicode case-folding is used for all comparisons - making it
55 more
56 accurate than using strings.ToLower (https://pkg.go.
57 dev/strings#ToLower) or
58 strings.ToUpper (https://pkg.go.dev/strings#ToUpper) for case-
59 insensitivity.
60 * Any string matched by strcase or bytcase will also match with
61 strings.EqualFold (https://pkg.go.dev/strings#EqualFold) or
62 bytes.EqualFold (https://pkg.go.dev/bytes#EqualFold)
63 * Fast and optimized for amd64 and arm64. For non-pathological inputs
64 strcase
65 is only 25-50% slower than the strings package.
66 * On average strcase/bytcase are 25x faster than using than using a
67 case-insensitive
68 regexp.Regexp (https://pkg.go.dev/regexp#Regexp) (see the below
69 benchmarks section).