Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 267 for parseList (0.15 sec)

  1. src/archive/tar/strconv.go

    	// spaces or NULs.
    	// So we remove leading and trailing NULs and spaces to
    	// be sure.
    	b = bytes.Trim(b, " \x00")
    
    	if len(b) == 0 {
    		return 0
    	}
    	x, perr := strconv.ParseUint(p.parseString(b), 8, 64)
    	if perr != nil {
    		p.err = ErrHeader
    	}
    	return int64(x)
    }
    
    func (f *formatter) formatOctal(b []byte, x int64) {
    	if !fitsInOctal(len(b), x) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/TransformBackedProviderTest.groovy

            def provider = property.map { Integer.parseInt(it) }
    
            when:
            provider.get()
    
            then:
            0 * progressEventEmitter._
        }
    
        def "fails when calling getOrNull() before producer task has completed"() {
            given:
            def property = propertyWithProducer()
            def provider = property.map { Integer.parseInt(it) }
    
            when:
            provider.getOrNull()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:06:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/IntegerBuildOption.java

            OptionValue<String> propertyValue = getFromProperties(properties);
            String value = propertyValue.getValue();
            if (value != null) {
                applyTo(Integer.parseInt(value), settings, propertyValue.getOrigin());
            }
        }
    
        @Override
        public void configure(CommandLineParser parser) {
            for (CommandLineOptionConfiguration config : commandLineOptionConfigurations) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 31 11:25:33 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/binutils/disasm.go

    			}
    			if input == "" {
    				break
    			}
    		}
    		input = strings.TrimSpace(input)
    
    		if fields := objdumpAsmOutputRE.FindStringSubmatch(input); len(fields) == 3 {
    			if address, err := strconv.ParseUint(fields[1], 16, 64); err == nil {
    				assembly = append(assembly,
    					plugin.Inst{
    						Addr:     address,
    						Text:     fields[2],
    						Function: function,
    						File:     file,
    						Line:     line,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. platforms/jvm/jacoco/src/testFixtures/groovy/org/gradle/testing/jacoco/plugins/fixtures/JacocoReportXmlFixture.groovy

                    if (it.counter.size() > 0) {
                        def classCounter = it.counter.find { it.@type == "CLASS" }
                        missed = Integer.parseInt(******@****.***ng())
                        covered = Integer.parseInt(******@****.***ng())
                    }
    
                    return new Coverage(name, covered, missed)
                })
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/pidlimit/pidlimit_linux.go

    	// system-wide limit on the number of tasks.
    	for _, file := range []string{"/proc/sys/kernel/pid_max", "/proc/sys/kernel/threads-max"} {
    		if content, err := os.ReadFile(file); err == nil {
    			if limit, err := strconv.ParseInt(string(content[:len(content)-1]), 10, 64); err == nil {
    				if taskMax == -1 || taskMax > limit {
    					taskMax = limit
    				}
    			}
    		}
    	}
    	// Both reads did not fail.
    	if taskMax >= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:24:29 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. src/regexp/syntax/parse_test.go

    // license that can be found in the LICENSE file.
    
    package syntax
    
    import (
    	"fmt"
    	"strings"
    	"testing"
    	"unicode"
    )
    
    type parseTest struct {
    	Regexp string
    	Dump   string
    }
    
    var parseTests = []parseTest{
    	// Base cases
    	{`a`, `lit{a}`},
    	{`a.`, `cat{lit{a}dot{}}`},
    	{`a.b`, `cat{lit{a}dot{}lit{b}}`},
    	{`ab`, `str{ab}`},
    	{`a.b.c`, `cat{lit{a}dot{}lit{b}dot{}lit{c}}`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/util/internal/DefaultGradleVersion.java

            for (int i = 0; i < majorVersionParts.length && i < otherMajorVersionParts.length; i++) {
                int part = Integer.parseInt(majorVersionParts[i]);
                int otherPart = Integer.parseInt(otherMajorVersionParts[i]);
    
                if (part > otherPart) {
                    return 1;
                }
                if (otherPart > part) {
                    return -1;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top