Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for lineFor (0.28 sec)

  1. src/cmd/internal/obj/line_test.go

    	lfile := src.NewLinePragmaBase(src.MakePos(afile, 8, 1), "linedir", "linedir", 100, 1)
    
    	var tests = []struct {
    		pos  src.Pos
    		want string
    	}{
    		{src.NoPos, "??:0"},
    		{src.MakePos(afile, 1, 0), "a.go:1"},
    		{src.MakePos(afile, 2, 0), "a.go:2"},
    		{src.MakePos(bfile, 10, 4), "/foo/bar/b.go:10"},
    		{src.MakePos(lfile, 10, 0), "linedir:102"}, // 102 == 100 + (10 - (7+1))
    	}
    
    	for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/strconv/fp_test.go

    	}
    	defer f.Close()
    
    	s := bufio.NewScanner(f)
    
    	for lineno := 1; s.Scan(); lineno++ {
    		line := s.Text()
    		if len(line) == 0 || line[0] == '#' {
    			continue
    		}
    		a := strings.Split(line, " ")
    		if len(a) != 4 {
    			t.Error("testdata/testfp.txt:", lineno, ": wrong field count")
    			continue
    		}
    		var s string
    		var v float64
    		switch a[0] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/PropertiesUtils.java

            int lastCommentLine = -1;
            for (int lineNo = 0, len = lines.size(); lineNo < len; lineNo++) {
                String line = lines.get(lineNo);
                if (line.startsWith("#")) {
                    lastCommentLine = lineNo;
                }
            }
    
            // The last comment line is the timestamp
            List<String> nonCommentLines;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 14:17:21 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/framepointer/framepointer.go

    		content, tf, err := analysisutil.ReadFile(pass, fname)
    		if err != nil {
    			return nil, err
    		}
    
    		lines := strings.SplitAfter(string(content), "\n")
    		active := false
    		for lineno, line := range lines {
    			lineno++
    
    			// Ignore comments and commented-out code.
    			if i := strings.Index(line, "//"); i >= 0 {
    				line = line[:i]
    			}
    			line = strings.TrimSpace(line)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/SmallCharMatcher.java

    import com.google.common.base.CharMatcher.NamedFastMatcher;
    import java.util.BitSet;
    
    /**
     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    @ElementTypesAreNonnullByDefault
    final class SmallCharMatcher extends NamedFastMatcher {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. src/net/parse_test.go

    	if file == nil {
    		t.Fatal(err)
    	}
    	defer file.close()
    
    	lineno := 1
    	byteno := 0
    	for {
    		bline, berr := br.ReadString('\n')
    		if n := len(bline); n > 0 {
    			bline = bline[0 : n-1]
    		}
    		line, ok := file.readLine()
    		if (berr != nil) != !ok || bline != line {
    			t.Fatalf("%s:%d (#%d)\nbufio => %q, %v\nnet => %q, %v", filename, lineno, byteno, bline, berr, line, ok)
    		}
    		if !ok {
    			break
    		}
    		lineno++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 00:04:48 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/SmallCharMatcher.java

    import com.google.common.base.CharMatcher.NamedFastMatcher;
    import java.util.BitSet;
    
    /**
     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    @ElementTypesAreNonnullByDefault
    final class SmallCharMatcher extends NamedFastMatcher {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/helper/shape_score.go

    type FunctionShapePoint struct {
    	// Utilization is function argument.
    	Utilization int64
    	// Score is function value.
    	Score int64
    }
    
    // BuildBrokenLinearFunction creates a function which is built using linear segments. Segments are defined via shape array.
    // Shape[i].Utilization slice represents points on "Utilization" axis where different segments meet.
    // Shape[i].Score represents function values at meeting points.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/internal/objfile/objfile.go

    func (x byAddr) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }
    
    func (e *Entry) PCLineTable() (Liner, error) {
    	// If the raw file implements Liner directly, use that.
    	// Currently, only Go intermediate objects and archives (goobj) use this path.
    	if pcln, ok := e.raw.(Liner); ok {
    		return pcln, nil
    	}
    	// Otherwise, read the pcln tables and build a Liner out of that.
    	textStart, symtab, pclntab, err := e.raw.pcln()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 24 16:01:55 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/rsc.io/markdown/break.go

    	buf.WriteString(s.prefix)
    	buf.WriteString(b.raw)
    	buf.WriteByte('\n')
    }
    
    func newHR(p *parseState, s line) (line, bool) {
    	if isHR(s) {
    		p.doneBlock(&ThematicBreak{Position{p.lineno, p.lineno}, s.string()})
    		return line{}, true
    	}
    	return s, false
    }
    
    func isHR(s line) bool {
    	t := s
    	t.trimSpace(0, 3, false)
    	switch c := t.peek(); c {
    	case '-', '_', '*':
    		for i := 0; ; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top