Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 713 for lineB (1.43 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. cmd/kubeadm/app/util/users/users_linux.go

    		"SYS_GID_MAX": &l.maxGID,
    	}
    	lines := strings.Split(file, "\n")
    	for i, line := range lines {
    		for k, v := range mapping {
    			// A line must start with one of the definitions
    			if !strings.HasPrefix(line, k) {
    				continue
    			}
    			line = strings.TrimPrefix(line, k)
    			line = strings.TrimSpace(line)
    			val, err := strconv.ParseInt(line, 10, 64)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  3. src/cmd/internal/test2json/test2json.go

    // input-processing callbacks on whole lines or (for long lines that
    // have been split) line fragments.
    //
    // It should be initialized with b set to a buffer of length 0 but non-zero capacity,
    // and line and part set to the desired input processors.
    // The lineBuffer will call line(x) for any whole line x (including the final newline)
    // that fits entirely in cap(b). It will handle input lines longer than cap(b) by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/internal/profile/merge.go

    		key.mappingID = l.Mapping.ID
    	}
    	lines := make([]string, len(l.Line)*2)
    	for i, line := range l.Line {
    		if line.Function != nil {
    			lines[i*2] = strconv.FormatUint(line.Function.ID, 16)
    		}
    		lines[i*2+1] = strconv.FormatInt(line.Line, 16)
    	}
    	key.lines = strings.Join(lines, "|")
    	return key
    }
    
    type locationKey struct {
    	addr, mappingID uint64
    	lines           string
    	isFolded        bool
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 17 19:35:56 UTC 2020
    - 11.3K bytes
    - Viewed (0)
  9. src/go/printer/testdata/declarations.golden

    	)
    }
    
    // formatting of multi-line variable declarations
    var a1, b1, c1 int	// all on one line
    
    var a2, b2,
    	c2 int	// this line should be indented
    
    var (
    	a3, b3,
    	c3, d3	int	// this line should be indented
    	a4, b4, c4	int	// this line should be indented
    )
    
    // Test case from issue 3304: multi-line declarations must end
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  10. 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)
Back to top