Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for trimLeftASCII (0.2 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 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top