Source: golang-github-charlievieth-strcase
Section: golang
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Stephen Gelman <ssgelm@debian.org>,
Build-Depends: debhelper-compat (= 13),
               dh-sequence-golang,
               dpkg-build-api (= 1),
               golang-any,
               golang-github-schollz-progressbar-dev,
               golang-github-stretchr-testify-dev,
               golang-golang-x-mod-dev,
               golang-golang-x-sys-dev,
               golang-golang-x-term-dev,
               golang-golang-x-text-dev,
Testsuite: autopkgtest-pkg-go
Standards-Version: 4.7.3
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-charlievieth-strcase
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-charlievieth-strcase.git
Homepage: https://github.com/charlievieth/strcase
XS-Go-Import-Path: github.com/charlievieth/strcase

Package: golang-github-charlievieth-strcase-dev
Architecture: all
Multi-Arch: foreign
Depends: golang-golang-x-sys-dev,
         ${misc:Depends},
Description: Case-insensitive implementation of Go's strings package (library)
 Package strcase (/) and bytcase (/bytcase/README.md) are case-
 insensitive
 and Unicode aware implementations of the Go standard library's strings
 (https://pkg.go.dev/strings) and bytes (https://pkg.go.dev/bytes)
 packages that are accurate, fast, and never allocate memory.
 .
 Simple Unicode case-folding is used for all comparisons. This matches
 the
 behavior of strings.EqualFold (https://pkg.go.dev/strings#EqualFold) and
 regexp.Regexp (https://pkg.go.dev/regexp#Regexp) (when the pattern is
 compiled with the case-insensitive flag (?i)) and is more accurate (and
 significantly more efficient) than using strings.ToLower
 (https://pkg.go.dev/strings#ToLower) or strings.ToUpper
 (https://pkg.go.dev/strings#ToUpper) to normalize the needle / haystack
 before searching.
 .
 Note: The bytcase package is analogous to the strcase package;
 whatever applies to strcase also applies to bytcase. For simplicity, the
 documentation primarily refers to strcase. Unless otherwise noted, all
 comments apply to both packages.
 .
 Overview
 .
  * Drop-in replacement for the strings (https://pkg.go.dev/strings) and
    bytes (https://pkg.go.dev/bytes) packages that provides Unicode
    aware case-insensitive matching.
  * Simple Unicode case-folding is used for all comparisons - making it
    more
    accurate than using strings.ToLower (https://pkg.go.
    dev/strings#ToLower) or
    strings.ToUpper (https://pkg.go.dev/strings#ToUpper) for case-
    insensitivity.
  * Any string matched by strcase or bytcase will also match with
    strings.EqualFold (https://pkg.go.dev/strings#EqualFold) or
    bytes.EqualFold (https://pkg.go.dev/bytes#EqualFold)
  * Fast and optimized for amd64 and arm64. For non-pathological inputs
    strcase
    is only 25-50% slower than the strings package.
  * On average strcase/bytcase are 25x faster than using than using a
    case-insensitive
    regexp.Regexp (https://pkg.go.dev/regexp#Regexp) (see the below
    benchmarks section).
