Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for IsString (0.13 sec)

  1. src/go/types/conversions.go

    	if isComplex(Vu) && isComplex(Tu) {
    		return true
    	}
    
    	// "V is an integer or a slice of bytes or runes and T is a string type"
    	if (isInteger(Vu) || isBytesOrRunes(Vu)) && isString(Tu) {
    		return true
    	}
    
    	// "V is a string and T is a slice of bytes or runes"
    	if isString(Vu) && isBytesOrRunes(Tu) {
    		return true
    	}
    
    	// package unsafe:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/conversions.go

    	if isComplex(Vu) && isComplex(Tu) {
    		return true
    	}
    
    	// "V is an integer or a slice of bytes or runes and T is a string type"
    	if (isInteger(Vu) || isBytesOrRunes(Vu)) && isString(Tu) {
    		return true
    	}
    
    	// "V is a string and T is a slice of bytes or runes"
    	if isString(Vu) && isBytesOrRunes(Tu) {
    		return true
    	}
    
    	// package unsafe:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/universe.go

    	Float32:       {Float32, IsFloat, "float32"},
    	Float64:       {Float64, IsFloat, "float64"},
    	Complex64:     {Complex64, IsComplex, "complex64"},
    	Complex128:    {Complex128, IsComplex, "complex128"},
    	String:        {String, IsString, "string"},
    	UnsafePointer: {UnsafePointer, 0, "Pointer"},
    
    	UntypedBool:    {UntypedBool, IsBoolean | IsUntyped, "untyped bool"},
    	UntypedInt:     {UntypedInt, IsInteger | IsUntyped, "untyped int"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/go/types/universe.go

    	Float32:       {Float32, IsFloat, "float32"},
    	Float64:       {Float64, IsFloat, "float64"},
    	Complex64:     {Complex64, IsComplex, "complex64"},
    	Complex128:    {Complex128, IsComplex, "complex128"},
    	String:        {String, IsString, "string"},
    	UnsafePointer: {UnsafePointer, 0, "Pointer"},
    
    	UntypedBool:    {UntypedBool, IsBoolean | IsUntyped, "untyped bool"},
    	UntypedInt:     {UntypedInt, IsInteger | IsUntyped, "untyped int"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/go/types/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.8K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    // necessary so that we can use alias type names that may not be reachable from
    // inType itself).
    func describe(typ, inType types.Type, inName string) string {
    	name := inName
    	if typ != inType {
    		name = typeName(typ)
    	}
    	if name == "" {
    		return ""
    	}
    
    	var parentheticals []string
    	if underName := typeName(typ.Underlying()); underName != "" && underName != name {
    		parentheticals = append(parentheticals, underName)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java

            public int hashCode() {
                return delegate.hashCode();
            }
    
            @Override
            public String asString() {
                return delegate.toString();
            }
    
            @Override
            public String toString() {
                return asString();
            }
        }
    
        static class DefaultVersionRange implements VersionRange {
            private final VersionScheme versionScheme;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue May 21 09:54:32 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/runtime/env_posix.go

    // Update the C environment if cgo is loaded.
    func setenv_c(k string, v string) {
    	if _cgo_setenv == nil {
    		return
    	}
    	arg := [2]unsafe.Pointer{cstring(k), cstring(v)}
    	asmcgocall(_cgo_setenv, unsafe.Pointer(&arg))
    }
    
    // Update the C environment if cgo is loaded.
    func unsetenv_c(k string) {
    	if _cgo_unsetenv == nil {
    		return
    	}
    	arg := [1]unsafe.Pointer{cstring(k)}
    	asmcgocall(_cgo_unsetenv, unsafe.Pointer(&arg))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelVersionParser.java

            public int hashCode() {
                return delegate.hashCode();
            }
    
            @Override
            public String asString() {
                return delegate.toString();
            }
    
            @Override
            public String toString() {
                return asString();
            }
        }
    
        static class DefaultVersionRange implements VersionRange {
            private final VersionScheme versionScheme;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top