Lines Matching refs:cp
52 /* basic(cp) tests whether cp is a basic code point: */
53 #define basic(cp) ((punycode_uint)(cp) < 0x80)
55 /* delim(cp) tests whether cp is a delimiter: */
56 #define delim(cp) ((cp) == delimiter)
59 /* decode_digit(cp) returns the numeric value of a basic code */
61 /* base-1, or base if cp is does not represent a value. */
63 static punycode_uint decode_digit(punycode_uint cp)
65 return cp - 48 < 10 ? cp - 22 : cp - 65 < 26 ? cp - 65 :
66 cp - 97 < 26 ? cp - 97 : base;