Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for appendSlice (0.42 sec)

  1. src/vendor/golang.org/x/text/unicode/norm/input.go

    	if in.bytes == nil {
    		for ; p < len(in.str) && !utf8.RuneStart(in.str[p]); p++ {
    		}
    	} else {
    		for ; p < len(in.bytes) && !utf8.RuneStart(in.bytes[p]); p++ {
    		}
    	}
    	return p
    }
    
    func (in *input) appendSlice(buf []byte, b, e int) []byte {
    	if in.bytes != nil {
    		return append(buf, in.bytes[b:e]...)
    	}
    	for i := b; i < e; i++ {
    		buf = append(buf, in.str[i])
    	}
    	return buf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/unicode/norm/input.go

    	if in.bytes == nil {
    		for ; p < len(in.str) && !utf8.RuneStart(in.str[p]); p++ {
    		}
    	} else {
    		for ; p < len(in.bytes) && !utf8.RuneStart(in.bytes[p]); p++ {
    		}
    	}
    	return p
    }
    
    func (in *input) appendSlice(buf []byte, b, e int) []byte {
    	if in.bytes != nil {
    		return append(buf, in.bytes[b:e]...)
    	}
    	for i := b; i < e; i++ {
    		buf = append(buf, in.str[i])
    	}
    	return buf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/unicode/norm/normalize.go

    	return true
    }
    
    func appendQuick(rb *reorderBuffer, i int) int {
    	if rb.nsrc == i {
    		return i
    	}
    	end, _ := rb.f.quickSpan(rb.src, i, rb.nsrc, true)
    	rb.out = rb.src.appendSlice(rb.out, i, end)
    	return end
    }
    
    // Append returns f(append(out, b...)).
    // The buffer out must be nil, empty, or equal to f(out).
    func (f Form) Append(out []byte, src ...byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/text/unicode/norm/normalize.go

    	return true
    }
    
    func appendQuick(rb *reorderBuffer, i int) int {
    	if rb.nsrc == i {
    		return i
    	}
    	end, _ := rb.f.quickSpan(rb.src, i, rb.nsrc, true)
    	rb.out = rb.src.appendSlice(rb.out, i, end)
    	return end
    }
    
    // Append returns f(append(out, b...)).
    // The buffer out must be nil, empty, or equal to f(out).
    func (f Form) Append(out []byte, src ...byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:26:23 UTC 2022
    - 14.9K bytes
    - Viewed (0)
  5. operator/pkg/util/reflect.go

    		return fmt.Errorf("deleteFromSlicePtr parent type is %T, must be *[]interface{}", parentSlice)
    	}
    
    	pvv := pv.Elem()
    	if pvv.Kind() == reflect.Interface {
    		pvv = pvv.Elem()
    	}
    
    	pv.Elem().Set(reflect.AppendSlice(pvv.Slice(0, index), pvv.Slice(index+1, pvv.Len())))
    
    	return nil
    }
    
    // UpdateSlicePtr updates an entry at index in the parent, which must be a slice ptr, with the given value.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/assign.go

    		}
    		var r ir.Node
    		switch {
    		case isAppendOfMake(call):
    			// x = append(y, make([]T, y)...)
    			r = extendSlice(call, init)
    		case call.IsDDD:
    			r = appendSlice(call, init) // also works for append(slice, string).
    		default:
    			r = walkAppend(call, init, as)
    		}
    		as.Y = r
    		if r.Op() == ir.OAPPEND {
    			r := r.(*ir.CallExpr)
    			// Left in place for back end.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/testdata/v1reflect.gox

     func (v <type 1>) UnsafeAddr () <type -13>;
     func (v <type 1>) .reflect.assignTo (context <type -16>, dst <type 3>, target <type 57 *<type 58 interface { }>>) <type 1>;
    >, x ...<type 1>) <type 1>;
    func AppendSlice (s <type 1>, t <type 1>) <type 1>;
    const Array <type 28> = 17 ;
    const Bool <type 28> = 1 ;
    const BothDir <type 29> = 3 ;
    const Chan <type 28> = 18 ;
    type <type 29>;
    const Complex128 <type 28> = 16 ;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  8. test/escape_reflect.go

    func append2(s, x []int) []int { // ERROR "leaking param: s$" "x does not escape"
    	sv := reflect.ValueOf(s) // ERROR "s escapes to heap"
    	xv := reflect.ValueOf(x) // ERROR "x does not escape"
    	rv := reflect.AppendSlice(sv, xv)
    	return rv.Interface().([]int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  9. src/reflect/all_test.go

    		}
    
    		// Test AppendSlice.
    		a1 := ValueOf(&test.orig).Elem()
    		have1 := AppendSlice(a1, e1)
    		if have1.CanAddr() {
    			t.Errorf("AppendSlice #%d: have slice should not be addressable", i)
    		}
    		if !DeepEqual(have1.Interface(), want) {
    			t.Errorf("AppendSlice #%d: have %v, want %v", i, have1, want)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  10. src/reflect/value.go

    	for i, v := range x {
    		s.Index(n + i).Set(v)
    	}
    	return s
    }
    
    // AppendSlice appends a slice t to a slice s and returns the resulting slice.
    // The slices s and t must have the same element type.
    func AppendSlice(s, t Value) Value {
    	s.mustBe(Slice)
    	t.mustBe(Slice)
    	typesMustMatch("reflect.AppendSlice", s.Type().Elem(), t.Type().Elem())
    	ns := s.Len()
    	nt := t.Len()
    	s = s.extendSlice(nt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top