Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 387 for IsString (0.12 sec)

  1. src/cmd/compile/internal/staticinit/sched.go

    	}
    	newList := make([]ir.Node, 0, need)
    	for i := 0; i < len(s); i++ {
    		if ir.IsConst(s[i], constant.String) && i+1 < len(s) && ir.IsConst(s[i+1], constant.String) {
    			// merge from i up to but not including i2
    			var strs []string
    			i2 := i
    			for i2 < len(s) && ir.IsConst(s[i2], constant.String) {
    				strs = append(strs, ir.StringVal(s[i2]))
    				i2++
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/stmt.go

    // When ok = false, rangeKeyVal may also return a reason in cause.
    func rangeKeyVal(typ Type, allowVersion func(goVersion) bool) (key, val Type, cause string, isFunc, ok bool) {
    	bad := func(cause string) (Type, Type, string, bool, bool) {
    		return Typ[Invalid], Typ[Invalid], cause, false, false
    	}
    	toSig := func(t Type) *Signature {
    		sig, _ := coreType(t).(*Signature)
    		return sig
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/typecheck.go

    func Callee(n ir.Node) ir.Node {
    	return typecheck(n, ctxExpr|ctxCallee)
    }
    
    var traceIndent []byte
    
    func tracePrint(title string, n ir.Node) func(np *ir.Node) {
    	indent := traceIndent
    
    	// guard against nil
    	var pos, op string
    	var tc uint8
    	if n != nil {
    		pos = base.FmtPos(n.Pos())
    		op = n.Op().String()
    		tc = n.Typecheck()
    	}
    
    	types.SkipSizeForTracing = true
    	defer func() { types.SkipSizeForTracing = false }()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. src/go/types/stmt.go

    // When ok = false, rangeKeyVal may also return a reason in cause.
    func rangeKeyVal(typ Type, allowVersion func(goVersion) bool) (key, val Type, cause string, isFunc, ok bool) {
    	bad := func(cause string) (Type, Type, string, bool, bool) {
    		return Typ[Invalid], Typ[Invalid], cause, false, false
    	}
    	toSig := func(t Type) *Signature {
    		sig, _ := coreType(t).(*Signature)
    		return sig
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types/type.go

    var UntypedTypes = [...]*Type{
    	constant.Bool:    UntypedBool,
    	constant.String:  UntypedString,
    	constant.Int:     UntypedInt,
    	constant.Float:   UntypedFloat,
    	constant.Complex: UntypedComplex,
    }
    
    // DefaultKinds maps from a constant.Kind to its default Kind.
    var DefaultKinds = [...]Kind{
    	constant.Bool:    TBOOL,
    	constant.String:  TSTRING,
    	constant.Int:     TINT,
    	constant.Float:   TFLOAT64,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  6. src/debug/pe/string.go

    import (
    	"bytes"
    	"encoding/binary"
    	"fmt"
    	"internal/saferio"
    	"io"
    )
    
    // cstring converts ASCII byte sequence b to string.
    // It stops once it finds 0 or reaches end of b.
    func cstring(b []byte) string {
    	i := bytes.IndexByte(b, 0)
    	if i == -1 {
    		i = len(b)
    	}
    	return string(b[:i])
    }
    
    // StringTable is a COFF string table.
    type StringTable []byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:06:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. src/go/types/expr.go

    // that might overflow; otherwise it returns the empty string.
    func opName(e ast.Expr) string {
    	switch e := e.(type) {
    	case *ast.BinaryExpr:
    		if int(e.Op) < len(op2str2) {
    			return op2str2[e.Op]
    		}
    	case *ast.UnaryExpr:
    		if int(e.Op) < len(op2str1) {
    			return op2str1[e.Op]
    		}
    	}
    	return ""
    }
    
    var op2str1 = [...]string{
    	token.XOR: "bitwise complement",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/expr.go

    // that might overflow; otherwise it returns the empty string.
    func opName(x syntax.Expr) string {
    	if e, _ := x.(*syntax.Operation); e != nil {
    		op := int(e.Op)
    		if e.Y == nil {
    			if op < len(op2str1) {
    				return op2str1[op]
    			}
    		} else {
    			if op < len(op2str2) {
    				return op2str2[op]
    			}
    		}
    	}
    	return ""
    }
    
    var op2str1 = [...]string{
    	syntax.Xor: "bitwise complement",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/plan9/dir_plan9.go

    	return uint64(lo) | uint64(hi)<<32, b[8:]
    }
    
    // gstring reads a string from b, prefixed with a 16-bit length in little-endian order.
    // It returns the string with the remaining slice of b and a boolean. If the length is
    // greater than the number of bytes in b, the boolean will be false.
    func gstring(b []byte) (string, []byte, bool) {
    	n, b := gbit16(b)
    	if int(n) > len(b) {
    		return "", b, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  10. test/ken/string.out

    Ian Lance Taylor <******@****.***> 1326931944 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 00:12:24 UTC 2012
    - 49 bytes
    - Viewed (0)
Back to top