Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 820 for lineB (0.04 sec)

  1. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        TestCharSource lines = new TestCharSource(LINES);
        assertEquals("foo", lines.readFirstLine());
        assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
      }
    
      public void testReadLines_toList() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        assertEquals(ImmutableList.of("foo", "bar", "baz", "something"), lines.readLines());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. src/net/textproto/reader.go

    		return
    	}
    	peek, _ := r.R.Peek(s)
    	for len(peek) > 0 && n < 1000 {
    		var line []byte
    		line, peek, _ = bytes.Cut(peek, nl)
    		if len(line) == 0 || (len(line) == 1 && line[0] == '\r') {
    			// Blank line separating headers from the body.
    			break
    		}
    		if line[0] == ' ' || line[0] == '\t' {
    			// Folded continuation of the previous line.
    			continue
    		}
    		n++
    	}
    	return n
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/envcmd/env.go

    		base.Fatalf("go: reading go env config: %v", err)
    	}
    	lines := strings.SplitAfter(string(data), "\n")
    	if lines[len(lines)-1] == "" {
    		lines = lines[:len(lines)-1]
    	} else {
    		lines[len(lines)-1] += "\n"
    	}
    	return lines
    }
    
    func updateEnvFile(add map[string]string, del map[string]bool) {
    	lines := readEnvFileLines(len(add) == 0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. src/net/net_windows_test.go

    		want[cname] = addr
    		group = make(map[string]string)
    	}
    	lines := bytes.Split(out, []byte{'\r', '\n'})
    	for _, line := range lines {
    		if len(line) == 0 {
    			processGroup()
    			continue
    		}
    		i := bytes.IndexByte(line, ':')
    		if i == -1 {
    			t.Fatalf("line %q has no : in it", line)
    		}
    		group[string(line[:i])] = string(bytes.TrimSpace(line[i+1:]))
    	}
    	processGroup()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    		var line *Line
    		if r.Syntax == nil {
    			line = &Line{Token: []string{AutoQuote(r.Mod.Path), r.Mod.Version}}
    			r.Syntax = line
    			if r.Indirect {
    				r.setIndirect(true)
    			}
    		} else {
    			line = new(Line)
    			*line = *r.Syntax
    			if !line.InBlock && len(line.Token) > 0 && line.Token[0] == "require" {
    				line.Token = line.Token[1:]
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  6. src/internal/trace/raw/doc.go

    trace parsers.
    
    # Text format specification
    
    The trace text format produced and consumed by this package is a line-oriented
    format.
    
    The first line in each text trace is the header line.
    
    	Trace Go1.XX
    
    Following that is a series of event lines. Each event begins with an
    event name, followed by zero or more named unsigned integer arguments.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprog/syscalls_linux.go

    		return false, false, err
    	}
    	status, err := io.ReadAll(os.NewFile(uintptr(fd), statusFile))
    	if err != nil {
    		return false, false, err
    	}
    	lines := bytes.Split(status, []byte{'\n'})
    	// Find the State line.
    	stateLineIdx := -1
    	for i, line := range lines {
    		if bytes.HasPrefix(line, []byte("State:")) {
    			stateLineIdx = i
    			break
    		}
    	}
    	if stateLineIdx < 0 {
    		// Malformed status file?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/cmd/dist/buildtool.go

    		}
    		if path != m[2] {
    			lines[i] = strings.ReplaceAll(line, `"`+m[2]+`"`, `"`+path+`"`)
    		}
    	}
    
    	lines[0] = generatedHeader + "// This is a bootstrap copy of " + srcFile + "\n\n//line " + srcFile + ":1\n" + lines[0]
    
    	return strings.Join(lines, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. operator/pkg/util/progress/progress.go

    // around the limitations of the pb library, which will only support single lines. To do this, we aggregate
    // the current components into a single line, and as components complete there final state is persisted to a new line.
    type Log struct {
    	components map[string]*ManifestLog
    	bar        *pb.ProgressBar
    	template   string
    	mu         sync.Mutex
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/ops/gen/common/source_code.cc

      string code;
      for (const Line& line : lines_) {
        absl::StrAppend(&code, string(line.indent * spaces_per_indent_, ' '),
                        line.text, "\n");
      }
      return code;
    }
    
    void SourceCode::AddLineWithIndent(const string& line) {
      ValidateAndAddLine(current_indent_, line);
    }
    
    void SourceCode::AddLineWithoutIndent(const string& line) {
      ValidateAndAddLine(0, line);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top