Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for prefixIsLessThan (0.17 sec)

  1. src/strconv/decimal.go

    	{19, "867361737988403547205962240695953369140625"}, // * 1152921504606846976
    }
    
    // Is the leading prefix of b lexicographically less than s?
    func prefixIsLessThan(b []byte, s string) bool {
    	for i := 0; i < len(s); i++ {
    		if i >= len(b) {
    			return true
    		}
    		if b[i] != s[i] {
    			return b[i] < s[i]
    		}
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 15 19:41:25 UTC 2017
    - 11K bytes
    - Viewed (0)
Back to top