Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for trimLeftASCII (0.05 seconds)

  1. src/bytes/bytes.go

    	}
    	if as, ok := makeASCIISet(cutset); ok {
    		return trimLeftASCII(s, &as)
    	}
    	return trimLeftUnicode(s, cutset)
    }
    
    func trimLeftByte(s []byte, c byte) []byte {
    	for len(s) > 0 && s[0] == c {
    		s = s[1:]
    	}
    	if len(s) == 0 {
    		// This is what we've historically done.
    		return nil
    	}
    	return s
    }
    
    func trimLeftASCII(s []byte, as *asciiSet) []byte {
    	for len(s) > 0 {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Mar 12 17:56:55 GMT 2026
    - 36.3K bytes
    - Click Count (0)
Back to Top