aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/ettle/strcase/unicode.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-01-22 16:07:17 +0100
committerTaras Madan <tarasmadan@google.com>2025-01-23 10:42:36 +0000
commit7b4377ad9d8a7205416df8d6217ef2b010f89481 (patch)
treee6fec4fd12ff807a16d847923f501075bf71d16c /vendor/github.com/ettle/strcase/unicode.go
parent475a4c203afb8b7d3af51c4fd32bb170ff32a45e (diff)
vendor: delete
Diffstat (limited to 'vendor/github.com/ettle/strcase/unicode.go')
-rw-r--r--vendor/github.com/ettle/strcase/unicode.go48
1 files changed, 0 insertions, 48 deletions
diff --git a/vendor/github.com/ettle/strcase/unicode.go b/vendor/github.com/ettle/strcase/unicode.go
deleted file mode 100644
index b75e25a51..000000000
--- a/vendor/github.com/ettle/strcase/unicode.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package strcase
-
-import "unicode"
-
-// Unicode functions, optimized for the common case of ascii
-// No performance lost by wrapping since these functions get inlined by the compiler
-
-func isUpper(r rune) bool {
- return unicode.IsUpper(r)
-}
-
-func isLower(r rune) bool {
- return unicode.IsLower(r)
-}
-
-func isNumber(r rune) bool {
- if r >= '0' && r <= '9' {
- return true
- }
- return unicode.IsNumber(r)
-}
-
-func isSpace(r rune) bool {
- if r == ' ' || r == '\t' || r == '\n' || r == '\r' {
- return true
- } else if r < 128 {
- return false
- }
- return unicode.IsSpace(r)
-}
-
-func toUpper(r rune) rune {
- if r >= 'a' && r <= 'z' {
- return r - 32
- } else if r < 128 {
- return r
- }
- return unicode.ToUpper(r)
-}
-
-func toLower(r rune) rune {
- if r >= 'A' && r <= 'Z' {
- return r + 32
- } else if r < 128 {
- return r
- }
- return unicode.ToLower(r)
-}