Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for subarray (0.38 sec)

  1. src/encoding/gob/decgen.go

    // license that can be found in the LICENSE file.
    
    package gob
    
    import (
    	"math"
    	"reflect"
    )
    
    `
    
    const arrayHelper = `
    func dec%[2]sArray(state *decoderState, v reflect.Value, length int, ovfl error) bool {
    	// Can only slice if it is addressable.
    	if !v.CanAddr() {
    		return false
    	}
    	return dec%[2]sSlice(state, v.Slice(0, v.Len()), length, ovfl)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:15:38 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    }
    
    // P is a type with a String method with pointer receiver for testing %p.
    type P int
    
    var pValue P
    
    func (p *P) String() string {
    	return "String(p)"
    }
    
    var barray = [5]renamedUint8{1, 2, 3, 4, 5}
    var bslice = barray[:]
    
    type byteStringer byte
    
    func (byteStringer) String() string {
    	return "X"
    }
    
    var byteStringerSlice = []byteStringer{'h', 'e', 'l', 'l', 'o'}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. src/strings/strings.go

    func LastIndexByte(s string, c byte) int {
    	return bytealg.LastIndexByteString(s, c)
    }
    
    // Generic split: splits after each instance of sep,
    // including sepSave bytes of sep in the subarrays.
    func genSplit(s, sep string, sepSave, n int) []string {
    	if n == 0 {
    		return nil
    	}
    	if sep == "" {
    		return explode(s, n)
    	}
    	if n < 0 {
    		n = Count(s, sep) + 1
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				properties:
    					stringField:
    						type: string
    					setArray:
    						type: array
    						x-kubernetes-list-type: set
    						items:
    							type: number
    							x-kubernetes-validations:
    							- rule: int(self) % 2 == 1
    							  message: "gotta be odd"
    				`),
    			oldObj: mustUnstructured(`
    				stringField: foo
    				setArray:
    				- 1
    				- 3
    				- 2
    			`),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top