- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SpecialCase (0.12 sec)
-
src/unicode/letter.go
// The constant UpperLower has an otherwise impossible delta value. type CaseRange struct { Lo uint32 Hi uint32 Delta d } // SpecialCase represents language-specific case mappings such as Turkish. // Methods of SpecialCase customize (by overriding) the standard mappings. type SpecialCase []CaseRange // BUG(r): There is no mechanism for full case folding, that is, for // characters that involve multiple runes in the input or output.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 20:02:46 UTC 2023 - 10K bytes - Viewed (0) -
src/strings/strings.go
// upper case using the case mapping specified by c. func ToUpperSpecial(c unicode.SpecialCase, s string) string { return Map(c.ToUpper, s) } // ToLowerSpecial returns a copy of the string s with all Unicode letters mapped to their // lower case using the case mapping specified by c. func ToLowerSpecial(c unicode.SpecialCase, s string) string { return Map(c.ToLower, s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:48:16 UTC 2024 - 31.2K bytes - Viewed (0) -
src/unicode/letter_test.go
// Issue 25636 // no change for rune 'A', zero delta, under upper/lower/title case change. var noChangeForCapitalA = CaseRange{'A', 'A', [MaxCase]rune{0, 0, 0}} got := strings.ToLowerSpecial(SpecialCase([]CaseRange{noChangeForCapitalA}), "ABC") want := "Abc" if got != want { t.Errorf("got %q; want %q", got, want) } } func TestNegativeRune(t *testing.T) { // Issue 43254
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 09 01:46:03 UTC 2023 - 14.8K bytes - Viewed (0)