Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 183 for parseLink (0.15 sec)

  1. src/strconv/doc.go

    //	s := strconv.Itoa(-42)
    //
    // These assume decimal and the Go int type.
    //
    // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values:
    //
    //	b, err := strconv.ParseBool("true")
    //	f, err := strconv.ParseFloat("3.1415", 64)
    //	i, err := strconv.ParseInt("-42", 10, 64)
    //	u, err := strconv.ParseUint("42", 10, 64)
    //
    // The parse functions return the widest type (float64, int64, and uint64),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/strconv/atoi.go

    // IntSize is the size in bits of an int or uint value.
    const IntSize = intSize
    
    const maxUint64 = 1<<64 - 1
    
    // ParseUint is like [ParseInt] but for unsigned numbers.
    //
    // A sign prefix is not permitted.
    func ParseUint(s string, base int, bitSize int) (uint64, error) {
    	const fnParseUint = "ParseUint"
    
    	if s == "" {
    		return 0, syntaxError(fnParseUint, s)
    	}
    
    	base0 := base == 0
    
    	s0 := s
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. src/cmd/trace/jsontrace.go

    		if startStr, endStr := r.FormValue("start"), r.FormValue("end"); startStr != "" && endStr != "" {
    			var err error
    			start, err = strconv.ParseInt(startStr, 10, 64)
    			if err != nil {
    				log.Printf("failed to parse start parameter %q: %v", startStr, err)
    				return
    			}
    
    			end, err = strconv.ParseInt(endStr, 10, 64)
    			if err != nil {
    				log.Printf("failed to parse end parameter %q: %v", endStr, err)
    				return
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go

    				p.PeriodType = &ValueType{
    					Type: "contentions", Unit: "count",
    				}
    				if p.Period, err = strconv.ParseInt(value, 0, 64); err != nil {
    					return nil, fmt.Errorf("failed to parse attribute %s: %v", line, err)
    				}
    			case "contention/ms since reset":
    				millis, err := strconv.ParseInt(value, 0, 64)
    				if err != nil {
    					return nil, fmt.Errorf("failed to parse attribute %s: %v", line, err)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/JvmUtil.java

            if (javaVersion != null) {
                final String[] split = javaVersion.split("[\\._]");
                if (split.length > 0) {
                    version = Integer.parseInt(split[0]);
                    if (version == 1 && split.length > 1) {
                        version = Integer.parseInt(split[1]);
                    }
                }
            }
            return version;
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/labels.go

    	// Just set the value to 0
    	return 0, nil
    }
    
    func getUint64ValueFromLabel(labels map[string]string, label string) (uint64, error) {
    	if strValue, found := labels[label]; found {
    		intValue, err := strconv.ParseUint(strValue, 16, 64)
    		if err != nil {
    			// This really should not happen. Just set value to 0 to handle this abnormal case
    			return 0, err
    		}
    		return intValue, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. internal/config/notify/parse.go

    		}
    		queueLimit, err := strconv.ParseUint(env.Get(queueLimitEnv, kv.Get(target.MqttQueueLimit)), 10, 64)
    		if err != nil {
    			return nil, err
    		}
    
    		qosEnv := target.EnvMQTTQoS
    		if k != config.Default {
    			qosEnv = qosEnv + config.Default + k
    		}
    
    		// Parse uint8 value
    		qos, err := strconv.ParseUint(env.Get(qosEnv, kv.Get(target.MqttQoS)), 10, 8)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  8. src/net/http/pprof/pprof.go

    	} else {
    		b = bufio.NewReader(strings.NewReader(r.URL.RawQuery))
    	}
    
    	for {
    		word, err := b.ReadSlice('+')
    		if err == nil {
    			word = word[0 : len(word)-1] // trim +
    		}
    		pc, _ := strconv.ParseUint(string(word), 0, 64)
    		if pc != 0 {
    			f := runtime.FuncForPC(uintptr(pc))
    			if f != nil {
    				fmt.Fprintf(&buf, "%#x %s\n", pc, f.Name())
    			}
    		}
    
    		// Wait until here to check for err; the last
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:34:05 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. schema/field.go

    		field.DataType = Uint
    		if field.HasDefaultValue && !skipParseDefaultValue {
    			if field.DefaultValueInterface, err = strconv.ParseUint(field.DefaultValue, 0, 64); err != nil {
    				schema.err = fmt.Errorf("failed to parse %s as default value for uint, got error: %v", field.DefaultValue, err)
    			}
    		}
    	case reflect.Float32, reflect.Float64:
    		field.DataType = Float
    		if field.HasDefaultValue && !skipParseDefaultValue {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java

            final String minKey = constraintAnnotation.minKey();
            if (StringUtil.isNotBlank(minKey)) {
                min = Integer.parseInt(fessConfig.get(minKey));
            }
            final String maxKey = constraintAnnotation.maxKey();
            if (StringUtil.isNotBlank(maxKey)) {
                max = Integer.parseInt(fessConfig.get(maxKey));
            }
            message = constraintAnnotation.message();
            validateParameters();
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top