Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 707 for parseInt (0.06 seconds)

  1. src/bufio/example_test.go

    	split := func(data []byte, atEOF bool) (advance int, token []byte, err error) {
    		advance, token, err = bufio.ScanWords(data, atEOF)
    		if err == nil && token != nil {
    			_, err = strconv.ParseInt(string(token), 10, 32)
    		}
    		return
    	}
    	// Set the split function for the scanning operation.
    	scanner.Split(split)
    	// Validate the input
    	for scanner.Scan() {
    		fmt.Printf("%s\n", scanner.Text())
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Nov 01 21:52:12 GMT 2024
    - 5.5K bytes
    - Click Count (0)
  2. cmd/httprange.go

    	if len(offsetBeginString) > 0 {
    		if offsetBeginString[0] == '+' {
    			return nil, fmt.Errorf("Byte position ('%s') must not have a sign", offsetBeginString)
    		} else if offsetBegin, err = strconv.ParseInt(offsetBeginString, 10, 64); err != nil {
    			return nil, fmt.Errorf("'%s' does not have a valid first byte position value", rangeString)
    		} else if offsetBegin < 0 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/Config.java

         */
        public static int getInt(final Properties props, final String key, int def) {
            final String s = props.getProperty(key);
            if (s != null) {
                try {
                    def = Integer.parseInt(s);
                } catch (final NumberFormatException nfe) {
                    log.error("Not a number", nfe);
                }
            }
            return def;
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcVersions.java

                    .filter(Matcher::matches)
                    .map(
                        match -> new Version(
                            Integer.parseInt(match.group(1)),
                            Integer.parseInt(match.group(2)),
                            Integer.parseInt(match.group(3))
                        )
                    )
                    .collect(Collectors.toCollection(TreeSet::new)),
                currentVersionProperty
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 16.8K bytes
    - Click Count (0)
  5. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/info/ParallelDetector.java

                        spec.setExecutable("sysctl");
                        spec.args("-n", "hw.physicalcpu");
                        spec.setStandardOutput(stdout);
                    });
    
                    _defaultParallel = Integer.parseInt(stdout.toString().trim());
                }
    
                _defaultParallel = Runtime.getRuntime().availableProcessors() / 2;
            }
    
            return _defaultParallel;
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Aug 09 07:39:30 GMT 2021
    - 3.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

            final int originalValue;
            if (limitPercentage.endsWith("%")) {
                originalValue = Integer.parseInt(limitPercentage.substring(0, limitPercentage.length() - 1));
            } else {
                originalValue = Integer.parseInt(limitPercentage);
            }
    
            if (originalValue > 100) {
                this.limitPercentage = 100;
            } else if (originalValue < 1) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                if (StringUtil.isBlank(start)) {
                    startPosition = fessConfig.getPagingSearchPageStartAsInteger();
                } else {
                    try {
                        startPosition = Integer.parseInt(start);
                    } catch (final NumberFormatException e) {
                        startPosition = fessConfig.getPagingSearchPageStartAsInteger();
                    }
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 27 13:56:32 GMT 2026
    - 55.4K bytes
    - Click Count (1)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseId.java

                int priority;
                if (priorityEnd < phaseEnd + 1) {
                    priority = 0;
                    hasPriority = false;
                } else {
                    try {
                        priority = Integer.parseInt(phase.substring(phaseEnd + 1, priorityEnd));
                        hasPriority = true;
                    } catch (NumberFormatException e) {
                        // priority must be an integer
                        priority = 0;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcSetupExtension.java

                        String minimumCompilerVersion = readFromFile(new File(checkoutDir.get(), compilerVersionInfoPath));
                        loggedExec.environment("JAVA_HOME", getJavaHome(Integer.parseInt(minimumCompilerVersion)));
                    }
                });
    
                if (Os.isFamily(Os.FAMILY_WINDOWS)) {
                    loggedExec.executable("cmd");
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Aug 18 09:11:28 GMT 2021
    - 6.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/Config.java

         */
    
        public static int getInt(final String key, int def) {
            final String s = prp.getProperty(key);
            if (s != null) {
                try {
                    def = Integer.parseInt(s);
                } catch (final NumberFormatException nfe) {
                    if (LogStream.level > 0) {
                        nfe.printStackTrace(log);
                    }
                }
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.5K bytes
    - Click Count (0)
Back to Top