Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,741 for setString (0.3 sec)

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

    	return input{bytes: str}
    }
    
    func inputString(str string) input {
    	return input{str: str}
    }
    
    func (in *input) setBytes(str []byte) {
    	in.str = ""
    	in.bytes = str
    }
    
    func (in *input) setString(str string) {
    	in.str = str
    	in.bytes = nil
    }
    
    func (in *input) _byte(p int) byte {
    	if in.bytes == nil {
    		return in.str[p]
    	}
    	return in.bytes[p]
    }
    
    func (in *input) skipASCII(p, max int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. internal/s3select/sql/value.go

    		}
    
    		// Fallback to string
    		sA := a.bytesToString()
    		sB := b.bytesToString()
    		a.setString(sA)
    		b.setString(sB)
    		return nil
    
    	case okA && !okB:
    		// Here a has `a` is untyped, but `b` has a fixed
    		// type.
    		switch b.value.(type) {
    		case string:
    			s := a.bytesToString()
    			a.setString(s)
    
    		case int64, float64:
    			if iA, ok := a.bytesToInt(); ok {
    				a.setInt(iA)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/text/unicode/norm/input.go

    	return input{bytes: str}
    }
    
    func inputString(str string) input {
    	return input{str: str}
    }
    
    func (in *input) setBytes(str []byte) {
    	in.str = ""
    	in.bytes = str
    }
    
    func (in *input) setString(str string) {
    	in.str = str
    	in.bytes = nil
    }
    
    func (in *input) _byte(p int) byte {
    	if in.bytes == nil {
    		return in.str[p]
    	}
    	return in.bytes[p]
    }
    
    func (in *input) skipASCII(p, max int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go

    			// TODO: set some new value
    		}
    	case reflect.Func: // ignore, we don't have function types in our API
    	default:
    		if !obj.CanSet() {
    			return
    		}
    		switch obj.Kind() {
    		case reflect.String:
    			obj.SetString(obj.String() + "x")
    		case reflect.Bool:
    			obj.SetBool(!obj.Bool())
    		case reflect.Float32, reflect.Float64:
    			obj.SetFloat(obj.Float()*2.0 + 1.0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. src/math/big/ratconv.go

    	if err != nil {
    		return err
    	}
    	if !strings.ContainsRune("efgEFGv", ch) {
    		return errors.New("Rat.Scan: invalid verb")
    	}
    	if _, ok := z.SetString(string(tok)); !ok {
    		return errors.New("Rat.Scan: invalid syntax")
    	}
    	return nil
    }
    
    // SetString sets z to the value of s and returns z and a boolean indicating
    // success. s can be given as a (possibly signed) fraction "a/b", or as a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 22:16:34 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  6. src/crypto/dsa/dsa_test.go

    	testParameterGeneration(t, L2048N224, 2048, 224)
    	testParameterGeneration(t, L2048N256, 2048, 256)
    	testParameterGeneration(t, L3072N256, 3072, 256)
    }
    
    func fromHex(s string) *big.Int {
    	result, ok := new(big.Int).SetString(s, 16)
    	if !ok {
    		panic(s)
    	}
    	return result
    }
    
    func TestSignAndVerify(t *testing.T) {
    	priv := PrivateKey{
    		PublicKey: PublicKey{
    			Parameters: Parameters{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 15 21:04:43 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  7. src/math/big/ratmarsh.go

    	return x.marshal(), nil
    }
    
    // UnmarshalText implements the [encoding.TextUnmarshaler] interface.
    func (z *Rat) UnmarshalText(text []byte) error {
    	// TODO(gri): get rid of the []byte/string conversion
    	if _, ok := z.SetString(string(text)); !ok {
    		return fmt.Errorf("math/big: cannot unmarshal %q into a *big.Rat", text)
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/crypto/elliptic/nistec.go

    	}
    	return curve.pointToAffine(p)
    }
    
    func bigFromDecimal(s string) *big.Int {
    	b, ok := new(big.Int).SetString(s, 10)
    	if !ok {
    		panic("crypto/elliptic: internal error: invalid encoding")
    	}
    	return b
    }
    
    func bigFromHex(s string) *big.Int {
    	b, ok := new(big.Int).SetString(s, 16)
    	if !ok {
    		panic("crypto/elliptic: internal error: invalid encoding")
    	}
    	return b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 16:19:34 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  9. misc/cgo/gmp/gmp.go

    	// TODO(rsc): more work on 32-bit platforms
    	C.mpz_set_si(&z.i[0], C.long(x))
    	return z
    }
    
    // SetString interprets s as a number in the given base
    // and sets z to that value.  The base must be in the range [2,36].
    // SetString returns an error if s cannot be parsed or the base is invalid.
    func (z *Int) SetString(s string, base int) error {
    	z.doinit()
    	if base < 2 || base > 36 {
    		return os.ErrInvalid
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/ztunnel/configdump/certificates.go

    			for i, ca := range secret.CertChain {
    				t := "Intermediate"
    				if i == 0 {
    					t = "Leaf"
    				} else if i == len(secret.CertChain)-1 {
    					t = "Root"
    				}
    				n := new(big.Int)
    				n, _ = n.SetString(ca.SerialNumber, 10)
    				fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%x\t%v\t%v\n",
    					secret.Identity, t, secret.State, certNotExpired(ca), n, valueOrNA(ca.ExpirationTime), valueOrNA(ca.ValidFrom))
    			}
    		}
    	}
    	return w.Flush()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 16:38:16 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top