Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for ipString (0.85 sec)

  1. android/guava/src/com/google/common/net/InetAddresses.java

        if (hasColon) {
          if (hasDot) {
            ipString = convertDottedQuadToHex(ipString);
            if (ipString == null) {
              return null;
            }
          }
          if (percentIndex != -1) {
            if (scope != null) {
              scope.scope = ipString.substring(percentIndex + 1);
            }
            ipString = ipString.substring(0, percentIndex);
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  2. pkg/proxy/util/utils_test.go

    		desc            string
    		ipString        []string
    		wantIPv6        bool
    		expectCorrect   []string
    		expectIncorrect []string
    	}{
    		{
    			desc:            "empty input IPv4",
    			ipString:        []string{},
    			wantIPv6:        false,
    			expectCorrect:   nil,
    			expectIncorrect: nil,
    		},
    		{
    			desc:            "empty input IPv6",
    			ipString:        []string{},
    			wantIPv6:        true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/net/InetAddresses.java

        if (hasColon) {
          if (hasDot) {
            ipString = convertDottedQuadToHex(ipString);
            if (ipString == null) {
              return null;
            }
          }
          if (percentIndex != -1) {
            if (scope != null) {
              scope.scope = ipString.substring(percentIndex + 1);
            }
            ipString = ipString.substring(0, percentIndex);
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        ImmutableSet<String> ipStrings =
            ImmutableSet.of("7::0.128.0.127", "7::0.128.0.128", "7::128.128.0.127", "7::0.128.128.127");
    
        for (String ipString : ipStrings) {
          // Shouldn't hit DNS, because it's an IP string literal.
          InetAddress ipv6Addr = InetAddress.getByName(ipString);
          assertEquals(ipv6Addr, InetAddresses.forString(ipString));
          assertTrue(InetAddresses.isInetAddress(ipString));
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    )
    
    func TestGetClientIP(t *testing.T) {
    	ipString := "10.0.0.1"
    	ip := netutils.ParseIPSloppy(ipString)
    	invalidIPString := "invalidIPString"
    	testCases := []struct {
    		Request    http.Request
    		ExpectedIP net.IP
    	}{
    		{
    			Request: http.Request{},
    		},
    		{
    			Request: http.Request{
    				Header: map[string][]string{
    					"X-Real-Ip": {ipString},
    				},
    			},
    			ExpectedIP: ip,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  6. operator/pkg/validate/common.go

    // each element.
    func validateStringList(vf ValidatorFunc) ValidatorFunc {
    	return func(path util.Path, val any) util.Errors {
    		msg := fmt.Sprintf("validateStringList %v", val)
    		if !util.IsString(val) {
    			err := fmt.Errorf("validateStringList %s got %T, want string", path, val)
    			printError(err)
    			return util.NewErrs(err)
    		}
    		var errs util.Errors
    		for _, s := range strings.Split(val.(string), ",") {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 11K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java

        }
    
        private static String replaceAll(String regex, CharSequence inString, String byString) {
            return replaceAll(Pattern.compile(regex), inString, byString);
        }
    
        private static String replaceAll(Pattern pattern, CharSequence inString, String byString) {
            return pattern.matcher(inString).replaceAll(byString);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. cmd/postpolicyform.go

    		return int64(v), nil
    	case string:
    		i, err := strconv.Atoi(v)
    		return int64(i), err
    	default:
    		return 0, errors.New("Invalid number format")
    	}
    }
    
    // isString - Safely check if val is of type string without causing panic.
    func isString(val interface{}) bool {
    	_, ok := val.(string)
    	return ok
    }
    
    // ContentLengthRange - policy content-length-range field.
    type contentLengthRange struct {
    	Min   int64
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 10:52:41 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/const.go

    	switch ct := v.Kind(); ct {
    	case constant.Bool:
    		if t.IsBoolean() {
    			return v
    		}
    
    	case constant.String:
    		if t.IsString() {
    			return v
    		}
    
    	case constant.Int:
    		if explicit && t.IsString() {
    			return tostr(v)
    		}
    		fallthrough
    	case constant.Float, constant.Complex:
    		switch {
    		case t.IsInteger():
    			v = toint(v)
    			return v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. src/go/types/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.6K bytes
    - Viewed (0)
Back to top