Lines Matching defs:code
378 break; /* done with code points, got a string or -1 */
929 * This test fails incorrectly if the First or Last code point of a repetitive area
936 * code points' properties.
938 * For this, it would have had to set a flag for which code points were listed explicitly.
952 /* get the character code, field 0 */
959 log_err("error in UnicodeData.txt: code point %lu out of range\n", c);
976 log_err("error: syntax error in field 3 at code 0x%lx\n", c);
1010 log_err("error: syntax error in field 12 at code 0x%lx\n", c);
1017 /* no case mapping: the API must map the code point to itself */
1027 log_err("error: syntax error in field 13 at code 0x%lx\n", c);
1034 /* no case mapping: the API must map the code point to itself */
1044 log_err("error: syntax error in field 14 at code 0x%lx\n", c);
1051 /* no case mapping: the API must map the code point to itself */
1082 /* stop at the range that includes the last test code point (increases code coverage for enumeration) */
1098 /* default Bidi classes for unassigned code points */
1147 * See also DerivedBidiClass.txt for Cn code points!
1151 * In particular, non-characters and unassigned Default Ignorable Code Points
1416 log_err("The no: of code units for U+%04x:- Expected: %d Got: %d\n", c, codepoint[i], UTF_CHAR_LENGTH(c));
1456 uint32_t code;
1487 UChar32 code, UCharNameChoice nameChoice,
1501 if(code==(UChar32)names[i].code) {
1505 log_err("u_enumCharName(0x%lx - Extended)=%s instead of %s\n", code, name, names[i].extName);
1510 log_err("u_enumCharName(0x%lx)=%s instead of %s\n", code, name, names[i].name);
1516 log_err("u_enumCharName(0x%lx - 1.0)=%s instead of %s\n", code, name, expected);
1522 log_err("u_enumCharName(0x%lx - alias)=%s instead of %s\n", code, name, expected);
1541 UChar32 code, UCharNameChoice nameChoice,
1545 if (ecncp->last != (int32_t) code - 1) {
1547 log_err("u_enumCharName(0x%lx - Ext) after u_enumCharName(0x%lx - Ext) instead of u_enumCharName(0x%lx - Ext)\n", code, ecncp->last, ecncp->last + 1);
1549 log_err("u_enumCharName(0x%lx - Ext) instead of u_enumCharName(0x0 - Ext)\n", code);
1552 ecncp->last = (int32_t) code;
1555 log_err("u_enumCharName(0x%lx - Ext) should not be an empty string\n", code);
1558 return enumCharNamesFn(&ecncp->length, code, nameChoice, name, length);
1597 length=u_charName(names[i].code, U_UNICODE_CHAR_NAME, name, sizeof(name), &errorCode);
1599 log_err("u_charName(0x%lx) error %s\n", names[i].code, u_errorName(errorCode));
1603 log_err("u_charName(0x%lx) gets: %s (length %ld) instead of: %s\n", names[i].code, name, length, names[i].name);
1613 if(c!=(UChar32)names[i].code) {
1614 log_err("u_charFromName(%s) gets 0x%lx instead of 0x%lx\n", names[i].name, c, names[i].code);
1619 length=u_charName(names[i].code, U_UNICODE_10_CHAR_NAME, name, sizeof(name), &errorCode);
1621 log_err("u_charName(0x%lx - 1.0) error %s\n", names[i].code, u_errorName(errorCode));
1625 log_err("u_charName(0x%lx - 1.0) gets %s length %ld instead of nothing or %s\n", names[i].code, name, length, names[i].oldName);
1635 if(c!=(UChar32)names[i].code) {
1636 log_err("u_charFromName(%s - 1.0) gets 0x%lx instead of 0x%lx\n", names[i].oldName, c, names[i].code);
1641 length=u_charName(names[i].code, U_CHAR_NAME_ALIAS, name, sizeof(name), &errorCode);
1643 log_err("u_charName(0x%lx - alias) error %s\n", names[i].code, u_errorName(errorCode));
1652 names[i].code, name, length, expected);
1663 if(c!=(UChar32)names[i].code) {
1665 expected, c, names[i].code);
1757 log_err("u_charName() returned a name with a TAB for some code point\n", cp);
1836 u_charMirror(0xbb)==0xab && u_charMirror(0x2215)==0x29F5 && u_charMirror(0x29F5)==0x2215 && /* large delta between the code points */
2099 props[][3]={ /* code point, property, value */
2274 /* test default Bidi classes for unassigned code points */
2851 /* Script should return USCRIPT_INVALID_CODE for an invalid code point. */
2997 break; /* done with code points, got a string or -1 */
3086 /* new in Unicode 5.0: exactly all unassigned+PUA+surrogate code points have script=Unknown */
3272 /* get code point */
3296 /* there is a simple mapping only if there is exactly one code point (count is in UChars) */
3303 * Test remaining mappings for the previous code point.
3386 /* verify that all code points that are not mentioned in CaseFolding.txt fold to themselves */