- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for MaxLatin1 (0.17 sec)
-
src/unicode/graphic_test.go
for i := rune(0); i <= MaxLatin1; i++ { got := IsControl(i) want := false switch { case 0x00 <= i && i <= 0x1F: want = true case 0x7F <= i && i <= 0x9F: want = true } if got != want { t.Errorf("%U incorrect: got %t; want %t", i, got, want) } } } func TestIsLetterLatin1(t *testing.T) { for i := rune(0); i <= MaxLatin1; i++ { got := IsLetter(i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 2.6K bytes - Viewed (0) -
src/unicode/graphic.go
// such as surrogates; use [Is](C, r) to test for them. func IsControl(r rune) bool { if uint32(r) <= MaxLatin1 { return properties[uint8(r)]&pC != 0 } // All control characters are < MaxLatin1. return false } // IsLetter reports whether the rune is a letter (category [L]). func IsLetter(r rune) bool { if uint32(r) <= MaxLatin1 { return properties[uint8(r)]&(pLmask) != 0 } return isExcludingLatin(Letter, r) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 20:02:46 UTC 2023 - 4.4K bytes - Viewed (0) -
src/unicode/letter.go
func IsUpper(r rune) bool { // See comment in IsGraphic. if uint32(r) <= MaxLatin1 { return properties[uint8(r)]&pLmask == pLu } return isExcludingLatin(Upper, r) } // IsLower reports whether the rune is a lower case letter. func IsLower(r rune) bool { // See comment in IsGraphic. if uint32(r) <= MaxLatin1 { return properties[uint8(r)]&pLmask == pLl } return isExcludingLatin(Lower, r) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 20:02:46 UTC 2023 - 10K bytes - Viewed (0) -
src/unicode/digit.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package unicode // IsDigit reports whether the rune is a decimal digit. func IsDigit(r rune) bool { if r <= MaxLatin1 { return '0' <= r && r <= '9' } return isExcludingLatin(Digit, r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 352 bytes - Viewed (0) -
src/unicode/letter_test.go
// P: GREEK QUESTION MARK 0x037E, // S: MODIFIER LETTER LEFT ARROWHEAD 0x02C2, // Z: OGHAM SPACE MARK 0x1680, } for i := 0; i < MaxLatin1+len(nonLatin1); i++ { base := uint32(i) if i >= MaxLatin1 { base = nonLatin1[i-MaxLatin1] } // Note r is negative, but uint8(r) == uint8(base) and // uint16(r) == uint16(base). r := rune(base - 1<<31) if Is(Letter, r) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 09 01:46:03 UTC 2023 - 14.8K bytes - Viewed (0) -
src/unicode/digit_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 1.5K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/unicode.gox
var M <type 1>; var Mahajani <type 1>; var Malayalam <type 1>; var Mandaic <type 1>; var Manichaean <type 1>; var Marchen <type 1>; var Mark <type 1>; const MaxASCII = 127' ; const MaxCase = 3 ; const MaxLatin1 = 255' ; const MaxRune = 1114111' ; var Mc <type 1>; var Me <type 1>; var Meetei_Mayek <type 1>; var Mende_Kikakui <type 1>; var Meroitic_Cursive <type 1>; var Meroitic_Hieroglyphs <type 1>;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 30 21:33:51 UTC 2021 - 7.3K bytes - Viewed (0) -
src/internal/fuzz/encoding_test.go
}) } func FuzzRuneRoundTrip(f *testing.F) { f.Add(rune(-1)) f.Add(rune(0xd800)) f.Add(rune(0xdfff)) f.Add(rune(unicode.ReplacementChar)) f.Add(rune(unicode.MaxASCII)) f.Add(rune(unicode.MaxLatin1)) f.Add(rune(unicode.MaxRune)) f.Add(rune(unicode.MaxRune + 1)) f.Add(rune(-0x80000000)) f.Add(rune(0x7fffffff)) f.Fuzz(func(t *testing.T, r1 rune) { b := marshalCorpusFile(r1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 00:20:34 UTC 2024 - 8.2K bytes - Viewed (0) -
src/unicode/tables.go
{0x118C0, 0x118DF, d{-32, 0, -32}}, {0x16E40, 0x16E5F, d{0, 32, 0}}, {0x16E60, 0x16E7F, d{-32, 0, -32}}, {0x1E900, 0x1E921, d{0, 34, 0}}, {0x1E922, 0x1E943, d{-34, 0, -34}}, } var properties = [MaxLatin1 + 1]uint8{ 0x00: pC, // '\x00' 0x01: pC, // '\x01' 0x02: pC, // '\x02' 0x03: pC, // '\x03' 0x04: pC, // '\x04' 0x05: pC, // '\x05' 0x06: pC, // '\x06'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 04:29:53 UTC 2023 - 205.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Mandaic", Var, 0}, {"Manichaean", Var, 4}, {"Marchen", Var, 7}, {"Mark", Var, 0}, {"Masaram_Gondi", Var, 10}, {"MaxASCII", Const, 0}, {"MaxCase", Const, 0}, {"MaxLatin1", Const, 0}, {"MaxRune", Const, 0}, {"Mc", Var, 0}, {"Me", Var, 0}, {"Medefaidrin", Var, 13}, {"Meetei_Mayek", Var, 0}, {"Mende_Kikakui", Var, 4}, {"Meroitic_Cursive", Var, 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)