Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SpecialCase (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"UnixMilli", Func, 17},
    		{"Until", Func, 8},
    		{"Wednesday", Const, 0},
    		{"Weekday", Type, 0},
    	},
    	"unicode": {
    		{"(SpecialCase).ToLower", Method, 0},
    		{"(SpecialCase).ToTitle", Method, 0},
    		{"(SpecialCase).ToUpper", Method, 0},
    		{"ASCII_Hex_Digit", Var, 0},
    		{"Adlam", Var, 7},
    		{"Ahom", Var, 5},
    		{"Anatolian_Hieroglyphs", Var, 5},
    		{"Arabic", Var, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top