Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AppendReverse (0.11 sec)

  1. 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)
  2. 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)
Back to top