Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 103 for IsString (0.15 sec)

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

    				*rounded = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    				return true
    			}
    		case UntypedComplex:
    			return true
    		default:
    			panic("unreachable")
    		}
    
    	case isString(typ):
    		return x.Kind() == constant.String
    
    	case isBoolean(typ):
    		return x.Kind() == constant.Bool
    	}
    
    	return false
    }
    
    func fitsFloat32(x constant.Value) bool {
    	f32, _ := constant.Float32Val(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/go/types/const.go

    				*rounded = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    				return true
    			}
    		case UntypedComplex:
    			return true
    		default:
    			panic("unreachable")
    		}
    
    	case isString(typ):
    		return x.Kind() == constant.String
    
    	case isBoolean(typ):
    		return x.Kind() == constant.Bool
    	}
    
    	return false
    }
    
    func fitsFloat32(x constant.Value) bool {
    	f32, _ := constant.Float32Val(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/sizes.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."
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. src/go/types/sizes.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."
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. pilot/pkg/security/authz/matcher/string.go

    	matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3"
    )
    
    // StringMatcher creates a string matcher for v.
    func StringMatcher(v string) *matcher.StringMatcher {
    	return StringMatcherWithPrefix(v, "")
    }
    
    // StringOrMatcher creates an OR string matcher for a list of values.
    func StringOrMatcher(vs []string) *matcher.ValueMatcher {
    	matchers := []*matcher.ValueMatcher{}
    	for _, v := range vs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 10:39:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. 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)
  7. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h

    #ifdef __BORLANDC__
    // string.h is not guaranteed to provide strcpy on C++ Builder.
    # include <mem.h>
    #endif
    
    #include <string.h>
    #include <string>
    
    #include "gtest/internal/gtest-port.h"
    
    namespace testing {
    namespace internal {
    
    // String - an abstract class holding static string utilities.
    class GTEST_API_ String {
     public:
      // Static utility methods
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K 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/test/java/org/codelibs/fess/it/CrudTestBase.java

            String response = checkGetMethod(body, getListEndpointSuffix()).asString();
            return JsonPath.from(response).getList(getJsonPath() + "." + prop);
        }
    
        protected String getJsonPath() {
            return "response." + getListEndpointSuffix() + ".findAll {it." + getKeyProperty() + ".startsWith(\"" + getNamePrefix() + "\")}";
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. 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)
Back to top