Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for IsString (0.19 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/syscall/dir_plan9.go

    func gbit64(b []byte) (uint64, []byte) {
    	return byteorder.LeUint64(b), 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 May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeCreator.kt

            if (descriptor == null) {
                val name = when (builder) {
                    is KaClassTypeBuilder.ByClassId -> builder.classId.asString()
                    is KaClassTypeBuilder.BySymbol ->
                        builder.symbol.classId?.asString()
                            ?: builder.symbol.name?.asString()
                            ?: SpecialNames.ANONYMOUS_STRING
                }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10JvmTypeMapperContext.kt

                    if (parentInternalName != null) "$parentInternalName$$selfName" else null
                }
                else -> selfName.asString()
            }
        }
    
        private fun computeSupertypeInternalName(descriptor: ClassDescriptor): String {
            var interfaceSupertypeInternalName: String? = null
    
            for (supertype in descriptor.typeConstructor.supertypes) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top