Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 184 for parseLine (0.22 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/internal/locking/LockFileReaderWriter.java

                                return false;
                            } else {
                                return true;
                            }
                        }).forEach(line -> parseLine(line, uniqueLockState));
                } catch (IOException e) {
                    throw new RuntimeException("Unable to load unique lockfile", e);
                }
                for (String emptyLockId : emptyLockIds) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    			}
    			in.lex()
    			return x
    		default:
    			l := in.parseLine()
    			x.Line = append(x.Line, l)
    			l.Comment().Before = comments
    			comments = nil
    		}
    	}
    }
    
    func (in *input) parseLine() *Line {
    	tok := in.lex()
    	if tok.kind.isEOL() {
    		in.Error("internal parse error: parseLine at end of line")
    	}
    	start := tok.pos
    	end := tok.endPos
    	tokens := []string{tok.text}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. src/strconv/atoi_test.go

    		testErr := test.errStub("ParseInt", test.arg)
    		_, err := ParseInt("0", 0, test.arg)
    		if !equalError(testErr, err) {
    			t.Errorf("ParseInt(\"0\", 0, %v) = 0, %v want 0, %v",
    				test.arg, err, testErr)
    		}
    	}
    }
    
    func TestParseUintBitSize(t *testing.T) {
    	for i := range parseBitSizeTests {
    		test := &parseBitSizeTests[i]
    		testErr := test.errStub("ParseUint", test.arg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 05:09:21 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  4. src/internal/fuzz/encoding.go

    	}
    }
    
    // parseUint returns an unsigned integer of value val and type typ.
    func parseUint(val, typ string) (any, error) {
    	switch typ {
    	case "uint":
    		i, err := strconv.ParseUint(val, 0, 64)
    		return uint(i), err
    	case "uint8", "byte":
    		i, err := strconv.ParseUint(val, 0, 8)
    		return uint8(i), err
    	case "uint16":
    		i, err := strconv.ParseUint(val, 0, 16)
    		return uint16(i), err
    	case "uint32":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    		// Skip non-executable entries.
    		return nil, nil
    	}
    	if mapping.Start, err = strconv.ParseUint(start, 16, 64); err != nil {
    		return nil, errUnrecognized
    	}
    	if mapping.Limit, err = strconv.ParseUint(end, 16, 64); err != nil {
    		return nil, errUnrecognized
    	}
    	if offset != "" {
    		if mapping.Offset, err = strconv.ParseUint(offset, 16, 64); err != nil {
    			return nil, errUnrecognized
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
  6. src/go/parser/parser_test.go

    	} {
    		fset := token.NewFileSet()
    		f, err := ParseFile(fset, "", src, 0)
    		if err == nil {
    			t.Errorf("ParseFile(%s) succeeded unexpectedly", src)
    			continue
    		}
    
    		const wantErr = "expected selector or type assertion"
    		if !strings.Contains(err.Error(), wantErr) {
    			t.Errorf("ParseFile returned wrong error %q, want %q", err, wantErr)
    		}
    
    		var sel *ast.SelectorExpr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                final long parseTime = System.currentTimeMillis();
                final SuggestIndexResponse response = index(array);
                final long indexTime = System.currentTimeMillis();
    
                if (logger.isInfoEnabled()) {
                    printProcessingInfo("queries", queryLogs.length, array, parseTime - start, indexTime - parseTime);
                }
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. src/go/printer/printer_test.go

    // src is syntactically correct, and returns the resulting src or an error
    // if any.
    func format(src []byte, mode checkMode) ([]byte, error) {
    	// parse src
    	f, err := parser.ParseFile(fset, "", src, parser.ParseComments)
    	if err != nil {
    		return nil, fmt.Errorf("parse: %s\n%s", err, src)
    	}
    
    	// filter exports if necessary
    	if mode&export != 0 {
    		ast.FileExports(f) // ignore result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. 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)
  10. src/net/http/fs.go

    				return nil, errors.New("invalid range")
    			}
    			i, err := strconv.ParseInt(end, 10, 64)
    			if i < 0 || err != nil {
    				return nil, errors.New("invalid range")
    			}
    			if i > size {
    				i = size
    			}
    			r.start = size - i
    			r.length = size - r.start
    		} else {
    			i, err := strconv.ParseInt(start, 10, 64)
    			if err != nil || i < 0 {
    				return nil, errors.New("invalid range")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top