Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 351 for dtoi (0.05 sec)

  1. pkg/util/env/env.go

    // the given key and falls back to the given defaultValue if not set
    func GetEnvAsIntOrFallback(key string, defaultValue int) (int, error) {
    	if v := os.Getenv(key); v != "" {
    		value, err := strconv.Atoi(v)
    		if err != nil {
    			return defaultValue, err
    		}
    		return value, nil
    	}
    	return defaultValue, nil
    }
    
    // GetEnvAsFloat64OrFallback returns the env variable (parsed as float64) for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 27 15:25:19 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/string_test.go

    			test := &atoi32tests[i]
    			out, ok := runtime.Atoi(test.in)
    			if test.out != int32(out) || test.ok != ok {
    				t.Errorf("atoi(%q) = (%v, %v) want (%v, %v)",
    					test.in, out, ok, test.out, test.ok)
    			}
    		}
    	case 64:
    		for i := range atoi64tests {
    			test := &atoi64tests[i]
    			out, ok := runtime.Atoi(test.in)
    			if test.out != int64(out) || test.ok != ok {
    				t.Errorf("atoi(%q) = (%v, %v) want (%v, %v)",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyDto.class);
            final PropertyDesc pd = beanDesc.getPropertyDesc("myEnum");
            final MyDto dto = new MyDto();
            pd.setValue(dto, "ONE");
            assertEquals(MyEnum.ONE, dto.myEnum);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetBeanDesc() throws Exception {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/base/limit.go

    // be allowed.
    func NetLimit() (int, bool) {
    	netLimitOnce.Do(func() {
    		s := NetLimitGodebug.Value()
    		if s == "" {
    			return
    		}
    
    		n, err := strconv.Atoi(s)
    		if err != nil {
    			Fatalf("invalid %s: %v", NetLimitGodebug.Name(), err)
    		}
    		if n < 0 {
    			// Treat negative values as unlimited.
    			return
    		}
    		netLimitSem = make(chan struct{}, n)
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 02:47:12 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    	}
    	h, err1 := strconv.Atoi(f[1])
    	isData := false
    	if f[2] == "data" {
    		isData = true
    		f[2] = "0"
    	}
    	l, err2 := strconv.Atoi(f[2])
    	if err1 != nil || err2 != nil || h < 1 || l < 0 || h > 30 {
    		return Tile{}, &badPathError{path}
    	}
    	w := 1 << uint(h)
    	if dotP := f[len(f)-2]; strings.HasSuffix(dotP, ".p") {
    		ww, err := strconv.Atoi(f[len(f)-1])
    		if err != nil || ww <= 0 || ww >= w {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/stackcheck_test.go

    	// Get expected limit.
    	limitRe := regexp.MustCompile(`nosplit stack over (\d+) byte limit`)
    	m := limitRe.FindStringSubmatch(out)
    	if m == nil {
    		t.Fatalf("no overflow errors in output")
    	}
    	limit, _ := strconv.Atoi(m[1])
    
    	wantMap := map[string]string{
    		"main.startSelf": fmt.Sprintf(
    			`main.startSelf<0>
        grows 1008 bytes
        %d bytes over limit
    `, 1008-limit),
    		"main.startChain": fmt.Sprintf(
    			`main.startChain<0>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  7. cmd/admin-handlers-pools.go

    	byID := vars["by-id"] == "true"
    
    	pools := strings.Split(v, ",")
    	poolIndices := make([]int, 0, len(pools))
    
    	for _, pool := range pools {
    		var idx int
    		if byID {
    			var err error
    			idx, err = strconv.Atoi(pool)
    			if err != nil {
    				// We didn't find any matching pools, invalid input
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    				return
    			}
    		} else {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. src/go/build/constraint/vers.go

    		return minVersion(z.X, -sign)
    	case *TagExpr:
    		if sign < 0 {
    			// !foo implies nothing
    			return -1
    		}
    		if z.Tag == "go1" {
    			return 0
    		}
    		_, v, _ := strings.Cut(z.Tag, "go1.")
    		n, err := strconv.Atoi(v)
    		if err != nil {
    			// not a go1.N tag
    			return -1
    		}
    		return n
    	}
    }
    
    // andVersion returns the minimum Go version
    // implied by the AND of two minimum Go versions,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 14:19:00 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. operator/pkg/util/path.go

    }
    
    // IsNPathElement report whether pe is an index path element.
    func IsNPathElement(pe string) bool {
    	pe, ok := RemoveBrackets(pe)
    	if !ok {
    		return false
    	}
    
    	n, err := strconv.Atoi(pe)
    	return err == nil && n >= InsertIndex
    }
    
    // PathKV returns the key and value string parts of the entire key/value path element.
    // It returns an error if pe is not a key/value path element.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. src/main/resources/fess_indices/fess/en-ie/stopwords.txt

    arna
    as
    b'
    ba
    beirt
    bhúr
    caoga
    ceathair
    ceathrar
    chomh
    chtó
    chuig
    chun
    cois
    céad
    cúig
    cúigear
    d'
    daichead
    dar
    de
    deich
    deichniúr
    den
    dhá
    do
    don
    dtí
    dá
    dár
    dó
    faoi
    faoin
    faoina
    faoinár
    fara
    fiche
    gach
    gan
    go
    gur
    haon
    hocht
    i
    iad
    idir
    in
    ina
    ins
    inár
    is
    le
    leis
    lena
    lenár
    m'
    mar
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Jul 19 06:31:02 UTC 2018
    - 685 bytes
    - Viewed (0)
Back to top