Home | History | Annotate | Download | only in intltest

Lines Matching refs:bcp

82 /* flagged(bcp) tests whether a basic code point is flagged */
83 /* (uppercase). The behavior is undefined if bcp is not a */
86 #define flagged(bcp) ((punycode_uint)(bcp) - 65 < 26)
88 /* encode_basic(bcp,flag) forces a basic code point to lowercase */
91 /* is caseless. The behavior is undefined if bcp is not a basic */
94 static char encode_basic(punycode_uint bcp, int flag)
96 bcp -= (bcp - 97 < 26) << 5;
97 return (char) bcp + ((!flag && (bcp - 65 < 26)) << 5);