Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for trimLeftByte (0.06 seconds)

  1. src/bytes/bytes.go

    		return nil
    	}
    	if cutset == "" {
    		return s
    	}
    	if len(cutset) == 1 && cutset[0] < utf8.RuneSelf {
    		return trimLeftByte(s, cutset[0])
    	}
    	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 {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 16:42:15 GMT 2025
    - 35.5K bytes
    - Click Count (0)
Back to Top