Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for trimLeftASCII (0.35 sec)

  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 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top