- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ToTitle (0.17 sec)
-
src/bytes/example_test.go
func ExampleToTitle() { fmt.Printf("%s\n", bytes.ToTitle([]byte("loud noises"))) fmt.Printf("%s\n", bytes.ToTitle([]byte("хлеб"))) // Output: // LOUD NOISES // ХЛЕБ } func ExampleToTitleSpecial() { str := []byte("ahoj vývojári golang") totitle := bytes.ToTitleSpecial(unicode.AzeriCase, str) fmt.Println("Original : " + string(str)) fmt.Println("ToTitle : " + string(totitle)) // Output:
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Mar 04 15:54:40 GMT 2024 - 15K bytes - Viewed (1) -
src/bytes/bytes.go
c += 'a' - 'A' } b[i] = c } return b } return Map(unicode.ToLower, s) } // ToTitle treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their title case. func ToTitle(s []byte) []byte { return Map(unicode.ToTitle, s) } // ToUpperSpecial treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0) -
src/bytes/bytes_test.go
{"123a456", "123A456"}, {"double-blind", "DOUBLE-BLIND"}, {"ÿøû", "ŸØÛ"}, } func TestToTitle(t *testing.T) { for _, tt := range ToTitleTests { if s := string(ToTitle([]byte(tt.in))); s != tt.out { t.Errorf("ToTitle(%q) = %q, want %q", tt.in, s, tt.out) } } } var EqualFoldTests = []struct { s, t string out bool }{ {"abc", "abc", true}, {"ABcd", "ABcd", true},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 24 16:07:25 GMT 2024 - 56.2K bytes - Viewed (0) -
api/go1.txt
pkg unicode, func SimpleFold(int32) int32 pkg unicode, func To(int, int32) int32 pkg unicode, func ToLower(int32) int32 pkg unicode, func ToTitle(int32) int32 pkg unicode, func ToUpper(int32) int32 pkg unicode, method (SpecialCase) ToLower(int32) int32 pkg unicode, method (SpecialCase) ToTitle(int32) int32 pkg unicode, method (SpecialCase) ToUpper(int32) int32 pkg unicode, type CaseRange struct
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (1)