- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for appendReverse (0.15 sec)
-
src/vendor/golang.org/x/text/unicode/bidi/bidi.go
func (r *Run) Pos() (start, end int) { return r.startpos, r.startpos + len(r.runes) - 1 } // AppendReverse reverses the order of characters of in, appends them to out, // and returns the result. Modifiers will still follow the runes they modify. // Brackets are replaced with their counterparts. func AppendReverse(out, in []byte) []byte { ret := make([]byte, len(in)+len(out)) copy(ret, out) inRunes := bytes.Runes(in)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 15 19:02:39 UTC 2021 - 10.3K bytes - Viewed (0) -
src/go/constant/value.go
if x.l != nil { x.s = strings.Join(reverse(x.appendReverse(nil)), "") x.l = nil x.r = nil } s := x.s x.mu.Unlock() return s } // reverse reverses x in place and returns it. func reverse(x []string) []string { n := len(x) for i := 0; i+i < n; i++ { x[i], x[n-1-i] = x[n-1-i], x[i] } return x } // appendReverse appends to list all of x's subpieces, but in reverse,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0)