Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for trimRightUnicode (0.23 sec)

  1. src/bytes/bytes.go

    		return trimLeftByte(trimRightByte(s, cutset[0]), cutset[0])
    	}
    	if as, ok := makeASCIISet(cutset); ok {
    		return trimLeftASCII(trimRightASCII(s, &as), &as)
    	}
    	return trimLeftUnicode(trimRightUnicode(s, cutset), cutset)
    }
    
    // TrimLeft returns a subslice of s by slicing off all leading
    // UTF-8-encoded code points contained in cutset.
    func TrimLeft(s []byte, cutset string) []byte {
    	if len(s) == 0 {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
Back to top