Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for hasPrefix (0.07 seconds)

  1. src/cmd/asm/internal/asm/endtoend_test.go

    	lines := strings.SplitAfter(string(data), "\n")
    Diff:
    	for _, line := range lines {
    		lineno++
    
    		// Ignore include of textflag.h.
    		if strings.HasPrefix(line, "#include ") {
    			continue
    		}
    
    		// Ignore GLOBL.
    		if strings.HasPrefix(line, "GLOBL ") {
    			continue
    		}
    
    		// The general form of a test input line is:
    		//	// comment
    		//	INST args [// printed form] [// hex encoding]
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 23 18:45:48 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  2. src/archive/tar/writer_test.go

    		copy(blk[:], b.Bytes())
    		prefix := string(blk.toUSTAR().prefix())
    		prefix, _, _ = strings.Cut(prefix, "\x00") // Truncate at the NUL terminator
    		if blk.getFormat() == FormatGNU && len(prefix) > 0 && strings.HasPrefix(name, prefix) {
    			t.Errorf("test %d, found prefix in GNU format: %s", i, prefix)
    		}
    
    		tr := NewReader(&b)
    		hdr, err := tr.Next()
    		if err != nil && err != ErrInsecurePath {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Mon Dec 15 16:34:13 GMT 2025
    - 40.2K bytes
    - Click Count (0)
  3. src/bytes/bytes_test.go

    			var out Buffer
    			if n < 0 {
    				n = math.MaxInt
    			}
    			for i := 0; i < len(in); {
    				if n == 0 {
    					out.Write(in[i:])
    					break
    				}
    				if HasPrefix(in[i:], old) {
    					out.Write(new)
    					i += len(old)
    					n--
    					if len(old) != 0 {
    						continue
    					}
    					if i == len(in) {
    						break
    					}
    				}
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 23 23:54:14 GMT 2025
    - 62.9K bytes
    - Click Count (0)
Back to Top