Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ipstr (0.01 sec)

  1. guava-tests/test/com/google/common/net/InetAddressesTest.java

        String ipStr = "192.168.0.1";
        // Shouldn't hit DNS, because it's an IP string literal.
        InetAddress ipv4Addr = InetAddress.getByName(ipStr);
        assertEquals(ipv4Addr, InetAddresses.forString(ipStr));
        assertTrue(InetAddresses.isInetAddress(ipStr));
      }
    
      public void testForStringIPv4NonAsciiInput() throws UnknownHostException {
        String ipStr = "૧૯૨.૧૬૮.૦.૧"; // 192.168.0.1 in Gujarati digits
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  2. callbacks/associations.go

    					var (
    						rValLen   = db.Statement.ReflectValue.Len()
    						objs      = make([]reflect.Value, 0, rValLen)
    						fieldType = rel.Field.FieldType
    						isPtr     = fieldType.Kind() == reflect.Ptr
    					)
    
    					if !isPtr {
    						fieldType = reflect.PtrTo(fieldType)
    					}
    
    					elems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  3. scan.go

    		}
    
    		reflectValueType := reflectValue.Type()
    		switch reflectValueType.Kind() {
    		case reflect.Array, reflect.Slice:
    			reflectValueType = reflectValueType.Elem()
    		}
    		isPtr := reflectValueType.Kind() == reflect.Ptr
    		if isPtr {
    			reflectValueType = reflectValueType.Elem()
    		}
    
    		if sch != nil {
    			if reflectValueType != sch.ModelType && reflectValueType.Kind() == reflect.Struct {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top