- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for AppendRune (0.07 sec)
-
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: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 13K bytes - Viewed (0) -
src/bytes/buffer.go
if uint32(r) < utf8.RuneSelf { b.WriteByte(byte(r)) return 1, nil } b.lastRead = opInvalid m, ok := b.tryGrowByReslice(utf8.UTFMax) if !ok { m = b.grow(utf8.UTFMax) } b.buf = utf8.AppendRune(b.buf[:m], r) return len(b.buf) - m, nil } // Read reads the next len(p) bytes from the buffer or until the buffer // is drained. The return value n is the number of bytes read. If the
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Oct 29 16:47:05 UTC 2024 - 15.7K bytes - Viewed (0) -
src/bytes/bytes.go
b := make([]byte, 0, len(s)) for i := 0; i < len(s); { wid := 1 r := rune(s[i]) if r >= utf8.RuneSelf { r, wid = utf8.DecodeRune(s[i:]) } r = mapping(r) if r >= 0 { b = utf8.AppendRune(b, r) } i += wid } return b } // Despite being an exported symbol, // Repeat is linknamed by widely used packages. // Notable members of the hall of shame include:
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Sep 03 20:55:15 UTC 2024 - 35.6K bytes - Viewed (0) -
src/bytes/bytes_test.go
m := utf8.RuneLen(needle) for o := m; o > 0; { _, sz := utf8.DecodeLastRune(buf) copy(buf[len(buf)-sz:], "\x00\x00\x00\x00") buf = buf[:len(buf)-sz] o -= sz } buf = utf8.AppendRune(buf[:n-m], needle) n -= m // adjust for rune len for i := 0; i < b.N; i++ { j := IndexRune(buf, needle) if j != n { b.Fatal("bad index", j) } } for i := range buf {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0) -
doc/go_spec.html
The <a href="/pkg/cmd/vet"><code>go vet</code></a> tool flags certain integer-to-string conversions as potential errors. Library functions such as <a href="/pkg/unicode/utf8#AppendRune"><code>utf8.AppendRune</code></a> or <a href="/pkg/unicode/utf8#EncodeRune"><code>utf8.EncodeRune</code></a> should be used instead. </li> </ol>
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 02 00:58:01 UTC 2024 - 282.5K bytes - Viewed (0) -
api/go1.20.txt
pkg time, const DateTime ideal-string #52746 pkg time, const TimeOnly = "15:04:05" #52746 pkg time, const TimeOnly ideal-string #52746 pkg time, method (Time) Compare(Time) int #50770 pkg unicode/utf16, func AppendRune([]uint16, int32) []uint16 #51896 # freebsd riscv64 port pkg log/syslog (freebsd-riscv64), const LOG_ALERT = 1 #53466 pkg log/syslog (freebsd-riscv64), const LOG_ALERT Priority #53466
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Feb 17 21:23:32 UTC 2023 - 602.6K bytes - Viewed (0)