- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for ReplacementChar (0.29 sec)
-
src/unicode/utf16/utf16.go
// Package utf16 implements encoding and decoding of UTF-16 sequences. package utf16 // The conditions replacementChar==unicode.ReplacementChar and // maxRune==unicode.MaxRune are verified in the tests. // Defining them locally avoids this package depending on package unicode. const ( replacementChar = '\uFFFD' // Unicode replacement character maxRune = '\U0010FFFF' // Maximum valid Unicode code point. )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 3.9K bytes - Viewed (0) -
src/unicode/utf16/export_test.go
package utf16 // Extra names for constants so we can validate them during testing. const ( Surr1 = surr1 Surr3 = surr3 SurrSelf = surrSelf MaxRune = maxRune ReplacementChar = replacementChar
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 394 bytes - Viewed (0) -
src/unicode/utf16/utf16_test.go
func TestConstants(t *testing.T) { if MaxRune != unicode.MaxRune { t.Errorf("utf16.maxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune) } if ReplacementChar != unicode.ReplacementChar { t.Errorf("utf16.replacementChar is wrong: %x should be %x", ReplacementChar, unicode.ReplacementChar) } } func TestRuneLen(t *testing.T) { for _, tt := range []struct { r rune length int }{ {0, 1}, {Surr1 - 1, 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 6.5K bytes - Viewed (0) -
src/unicode/letter.go
// Package unicode provides data and functions to test some properties of // Unicode code points. package unicode const ( MaxRune = '\U0010FFFF' // Maximum valid Unicode code point. ReplacementChar = '\uFFFD' // Represents invalid code points. MaxASCII = '\u007F' // maximum ASCII value. MaxLatin1 = '\u00FF' // maximum Latin-1 value. )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 20:02:46 UTC 2023 - 10K bytes - Viewed (0) -
src/internal/fuzz/encoding_test.go
t.Errorf("unmarshaled %v (bits 0x%x)", x2, u2) } }) } 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))
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/utf8/utf8_test.go
panic("utf8.MaxRune is wrong") } if RuneError != unicode.ReplacementChar { panic("utf8.RuneError is wrong") } } // Validate the constants redefined from unicode. func TestConstants(t *testing.T) { if MaxRune != unicode.MaxRune { t.Errorf("utf8.MaxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune) } if RuneError != unicode.ReplacementChar {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 06:17:15 UTC 2022 - 16.2K bytes - Viewed (0) -
src/go/types/conversions.go
switch t, _ := under(T).(*Basic); { case t == nil: // nothing to do case representableConst(x.val, check, t, val): return true case isInteger(x.typ) && isString(t): codepoint := unicode.ReplacementChar if i, ok := constant.Uint64Val(x.val); ok && i <= unicode.MaxRune { codepoint = rune(i) } if val != nil { *val = constant.MakeString(string(codepoint)) } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9.1K bytes - Viewed (0) -
src/mime/encodedword.go
for _, c := range content { buf.WriteRune(rune(c)) } case strings.EqualFold("us-ascii", charset): for _, c := range content { if c >= utf8.RuneSelf { buf.WriteRune(unicode.ReplacementChar) } else { buf.WriteByte(c) } } default: if d.CharsetReader == nil { return fmt.Errorf("mime: unhandled charset %q", charset) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 16:12:35 UTC 2024 - 10K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/unicode.gox
var Ps <type 1>; var Psalter_Pahlavi <type 1>; var Punct <type 1>; var Quotation_Mark <type 1>; var Radical <type 1>; type <type 5>; type <type 8>; type <type 2>; var Rejang <type 1>; const ReplacementChar = 65533' ; var Runic <type 1>; var S <type 1>; var STerm <type 1>; var Samaritan <type 1>; var Saurashtra <type 1>; var Sc <type 1>; var Scripts <type 28 map [<type -16>] <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/cmd/compile/internal/types2/conversions.go
switch t, _ := under(T).(*Basic); { case t == nil: // nothing to do case representableConst(x.val, check, t, val): return true case isInteger(x.typ) && isString(t): codepoint := unicode.ReplacementChar if i, ok := constant.Uint64Val(x.val); ok && i <= unicode.MaxRune { codepoint = rune(i) } if val != nil { *val = constant.MakeString(string(codepoint)) } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9K bytes - Viewed (0)