- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for appendRune (0.21 sec)
-
src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go
func (rb *reorderBuffer) decomposeHangul(r rune) { r -= hangulBase x := r % jamoTCount r /= jamoTCount rb.appendRune(jamoLBase + r/jamoVCount) rb.appendRune(jamoVBase + r%jamoVCount) if x != 0 { rb.appendRune(jamoTBase + x) } } // combineHangul algorithmically combines Jamo character components into Hangul.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 14.1K bytes - Viewed (0) -
src/unicode/utf8/utf8_test.go
} } } func TestAppendRune(t *testing.T) { for _, m := range utf8map { if buf := AppendRune(nil, m.r); string(buf) != m.str { t.Errorf("AppendRune(nil, %#04x) = %s, want %s", m.r, buf, m.str) } if buf := AppendRune([]byte("init"), m.r); string(buf) != "init"+m.str { t.Errorf("AppendRune(init, %#04x) = %s, want %s", m.r, buf, "init"+m.str) } } } func TestDecodeRune(t *testing.T) {
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/syscall/exec_windows.go
} length += len(s) + 1 } length += 1 b := make([]uint16, 0, length) for _, s := range envv { for _, c := range s { b = utf16.AppendRune(b, c) } b = utf16.AppendRune(b, 0) } b = utf16.AppendRune(b, 0) return b, nil } func CloseOnExec(fd Handle) { SetHandleInformation(Handle(fd), HANDLE_FLAG_INHERIT, 0) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 18:29:48 UTC 2023 - 10.3K bytes - Viewed (0) -
src/cmd/compile/internal/test/inl_test.go
"(*dictDecoder).tryWriteCopy", }, "encoding/base64": { "assemble32", "assemble64", }, "unicode/utf8": { "FullRune", "FullRuneInString", "RuneLen", "AppendRune", "ValidRune", }, "unicode/utf16": { "Decode", }, "reflect": { "Value.Bool", "Value.Bytes", "Value.CanAddr", "Value.CanComplex", "Value.CanFloat",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K bytes - Viewed (0) -
src/strconv/quote.go
return buf } if ASCIIonly { if r < utf8.RuneSelf && IsPrint(r) { buf = append(buf, byte(r)) return buf } } else if IsPrint(r) || graphicOnly && isInGraphicList(r) { return utf8.AppendRune(buf, r) } switch r { case '\a': buf = append(buf, `\a`...) case '\b': buf = append(buf, `\b`...) case '\f': buf = append(buf, `\f`...) case '\n': buf = append(buf, `\n`...) case '\r':
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 16.5K bytes - Viewed (0) -
src/unicode/utf8/utf8.go
p[1] = tx | byte(r>>12)&maskx p[2] = tx | byte(r>>6)&maskx p[3] = tx | byte(r)&maskx return 4 } } // AppendRune appends the UTF-8 encoding of r to the end of p and // returns the extended buffer. If the rune is out of range, // it appends the encoding of [RuneError]. func AppendRune(p []byte, r rune) []byte { // This function is inlineable for fast handling of ASCII. if uint32(r) <= rune1Max {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:36 UTC 2024 - 16.4K bytes - Viewed (0) -
api/go1.18.txt
pkg text/template/parse, type ContinueNode struct, Line int pkg text/template/parse, type ContinueNode struct, embedded NodeType pkg text/template/parse, type ContinueNode struct, embedded Pos
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 13K bytes - Viewed (0) -
src/fmt/format.go
// of a uint64 to a rune may lose precision that indicates an overflow. r := rune(c) if c > utf8.MaxRune { r = utf8.RuneError } buf := f.intbuf[:0] f.pad(utf8.AppendRune(buf, r)) } // fmtQc formats an integer as a single-quoted, escaped Go character constant. // If the character is not valid Unicode, it will print '\ufffd'. func (f *fmt) fmtQc(c uint64) { r := rune(c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 13.8K bytes - Viewed (0) -
src/fmt/print.go
} } if w, ok := state.Width(); ok { b = strconv.AppendInt(b, int64(w), 10) } if p, ok := state.Precision(); ok { b = append(b, '.') b = strconv.AppendInt(b, int64(p), 10) } b = utf8.AppendRune(b, verb) return string(b) } // Use simple []byte instead of bytes.Buffer to avoid large dependency. type buffer []byte func (b *buffer) write(p []byte) { *b = append(*b, p...) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
src/internal/poll/fd_windows.go
break } r = utf8.RuneError } else { r = utf16.DecodeRune(r, rune(uint16s[i+1])) if r != utf8.RuneError { i++ } } } buf = utf8.AppendRune(buf, r) } fd.readbyte = buf fd.readbyteOffset = 0 if nw == 0 { break } } src := fd.readbyte[fd.readbyteOffset:] var i int for i = 0; i < len(src) && i < len(b); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 16:50:42 UTC 2024 - 34.1K bytes - Viewed (0)