Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Split (0.12 sec)

  1. src/archive/zip/reader.go

    			}
    		}
    
    		sort.Slice(r.fileList, func(i, j int) bool { return fileEntryLess(r.fileList[i].name, r.fileList[j].name) })
    	})
    }
    
    func fileEntryLess(x, y string) bool {
    	xdir, xelem, _ := split(x)
    	ydir, yelem, _ := split(y)
    	return xdir < ydir || xdir == ydir && xelem < yelem
    }
    
    // Open opens the named file in the ZIP archive,
    // using the semantics of fs.FS.Open:
    // paths are always slash separated, with no
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    	if err != nil || numEntries < 0 || int(2*numEntries) < int(numEntries) {
    		return nil, ErrHeader
    	}
    
    	// There should be two numbers in sparseMap for each entry.
    	sparseMap := strings.Split(paxHdrs[paxGNUSparseMap], ",")
    	if len(sparseMap) == 1 && sparseMap[0] == "" {
    		sparseMap = sparseMap[:0]
    	}
    	if int64(len(sparseMap)) != 2*numEntries {
    		return nil, ErrHeader
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top