Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 209 for IsString (0.13 sec)

  1. src/cmd/compile/internal/types2/predicates.go

    func isFloat(t Type) bool          { return isBasic(t, IsFloat) }
    func isComplex(t Type) bool        { return isBasic(t, IsComplex) }
    func isNumeric(t Type) bool        { return isBasic(t, IsNumeric) }
    func isString(t Type) bool         { return isBasic(t, IsString) }
    func isIntegerOrFloat(t Type) bool { return isBasic(t, IsInteger|IsFloat) }
    func isConstType(t Type) bool      { return isBasic(t, IsConstType) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/timeformat/timeformat.go

    func badFormatAt(info *types.Info, e ast.Expr) int {
    	tv, ok := info.Types[e]
    	if !ok { // no type info, assume good
    		return -1
    	}
    
    	t, ok := tv.Type.(*types.Basic) // sic, no unalias
    	if !ok || t.Info()&types.IsString == 0 {
    		return -1
    	}
    
    	if tv.Value == nil {
    		return -1
    	}
    
    	return strings.Index(constant.StringVal(tv.Value), badFormat)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/under.go

    // a string, the result is of type (possibly untyped) string.
    func coreString(t Type) Type {
    	t = Unalias(t)
    	tpar, _ := t.(*TypeParam)
    	if tpar == nil {
    		return under(t) // string or untyped string
    	}
    
    	var su Type
    	hasString := false
    	if tpar.underIs(func(u Type) bool {
    		if u == nil {
    			return false
    		}
    		if isString(u) {
    			u = NewSlice(universeByte)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/go/types/builtins.go

    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(x.typ, slice))
    		}
    
    	case _String:
    		// unsafe.String(ptr *byte, len IntegerType) string
    		check.verifyVersionf(call.Fun, go1_20, "unsafe.String")
    
    		check.assignment(x, NewPointer(universeByte), "argument to unsafe.String")
    		if x.mode == invalid {
    			return
    		}
    
    		y := args[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/walk.go

    }
    
    const (
    	mapslow = iota
    	mapfast32
    	mapfast32ptr
    	mapfast64
    	mapfast64ptr
    	mapfaststr
    	nmapfast
    )
    
    type mapnames [nmapfast]string
    
    func mkmapnames(base string, ptr string) mapnames {
    	return mapnames{base, base + "_fast32", base + "_fast32" + ptr, base + "_fast64", base + "_fast64" + ptr, base + "_faststr"}
    }
    
    var mapaccess1 = mkmapnames("mapaccess1", "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

        auto value = flatbuffer_vector[i];
    
        if (value.IsBool()) {
          mlir_vector.push_back(BuildVhloBooleanV1Attr(value.AsBool(), builder));
        } else if (value.IsString()) {
          mlir_vector.push_back(
              BuildVhloStringV1Attr(value.AsString().str(), builder));
        } else if (value.IsInt()) {
          mlir_vector.push_back(BuildVhloIntV1Attr(value.AsInt64(), builder));
        } else if (value.IsFloat()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  7. src/go/types/gcsizes.go

    		// StdSizes.Alignof won't be called for them.
    		assert(!isTypeParam(T))
    		return s.WordSize
    	case *Basic:
    		// Strings are like slices and interfaces.
    		if t.Info()&IsString != 0 {
    			return s.WordSize
    		}
    	case *TypeParam, *Union:
    		panic("unreachable")
    	}
    	a := s.Sizeof(T) // may be 0 or negative
    	// spec: "For a variable x of any type: unsafe.Alignof(x) is at least 1."
    	if a < 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/builtins.go

    		if check.recordTypes() {
    			check.recordBuiltinType(call.Fun, makeSig(x.typ, slice))
    		}
    
    	case _String:
    		// unsafe.String(ptr *byte, len IntegerType) string
    		check.verifyVersionf(call.Fun, go1_20, "unsafe.String")
    
    		check.assignment(x, NewPointer(universeByte), "argument to unsafe.String")
    		if x.mode == invalid {
    			return
    		}
    
    		y := args[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/gcsizes.go

    		// StdSizes.Alignof won't be called for them.
    		assert(!isTypeParam(T))
    		return s.WordSize
    	case *Basic:
    		// Strings are like slices and interfaces.
    		if t.Info()&IsString != 0 {
    			return s.WordSize
    		}
    	case *TypeParam, *Union:
    		panic("unreachable")
    	}
    	a := s.Sizeof(T) // may be 0 or negative
    	// spec: "For a variable x of any type: unsafe.Alignof(x) is at least 1."
    	if a < 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                type.isULong -> KaConstantValue.KaUnsignedLongConstantValue((value as Number).toLong().toULong(), expression)
                type.isString -> KaConstantValue.KaStringConstantValue(value.toString(), expression)
                type.isFloat -> KaConstantValue.KaFloatConstantValue((value as Number).toFloat(), expression)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top