Home | History | Annotate | Download | only in common

Lines Matching refs:code

50  * and we don't want to make it less compact, so we changed the access code.
98 UChar32 code;
202 /* check error code from previous attempt */
471 static uint16_t getExtName(uint32_t code, char *buffer, uint16_t bufferLength) {
472 const char *catname = getCharCatName(code);
483 for (cp = code, ndigits = 0; cp; ++ndigits, cp >>= 4)
487 for (cp = code, i = ndigits; (cp || i > 0) && bufferLength; cp >>= 4, bufferLength--) {
500 * Unicode code point "code".
501 * The return value is always a valid Group* that may contain "code"
502 * or else is the highest group before "code".
503 * If the lowest group is after "code", then that one is returned.
506 getGroup(UCharNames *names, uint32_t code) {
508 uint16_t groupMSB=(uint16_t)(code>>GROUP_SHIFT),
513 /* binary search for the group of names that contains the one for code */
601 getName(UCharNames *names, uint32_t code, UCharNameChoice nameChoice,
603 const uint16_t *group=getGroup(names, code);
604 if((uint16_t)(code>>GROUP_SHIFT)==group[GROUP_MSB]) {
605 return expandGroupName(names, group, (uint16_t)(code&GROUP_MASK), nameChoice,
651 ((FindName *)context)->code=start;
798 uint32_t code,
816 indexes[i]=(uint16_t)(code%factor);
817 code/=factor;
820 * we don't need to calculate the last modulus because start<=code<=end
821 * guarantees here that code<=factors[0]
823 indexes[0]=(uint16_t)code;
875 getAlgName(AlgorithmicRange *range, uint32_t code, UCharNameChoice nameChoice,
901 /* write hexadecimal code point value */
911 c=(char)(code&0xf);
919 code>>=4;
939 s, code-range->start, indexes, NULL, NULL, buffer, bufferLength);
1097 * returns the code point for a name if it fits into the range.
1102 UChar32 code;
1123 /* read hexadecimal code point value */
1125 code=0;
1129 code=(code<<4)|(c-'0');
1131 code=(code<<4)|(c-'A'+10);
1138 if(*otherName==0 && range->start<=(uint32_t)code && (uint32_t)code<=range->end) {
1139 return code;
1309 * 6 for most hex digits per code point
1469 u_charName(UChar32 code, UCharNameChoice nameChoice,
1487 if((uint32_t)code>UCHAR_MAX_VALUE || !isDataLoaded(pErrorCode)) {
1498 if(algRange->start<=(uint32_t)code && (uint32_t)code<=algRange->end) {
1499 length=getAlgName(algRange, (uint32_t)code, nameChoice, buffer, (uint16_t)bufferLength);
1508 length = getName(uCharNames, (uint32_t )code, U_EXTENDED_CHAR_NAME, buffer, (uint16_t) bufferLength);
1511 length = getExtName((uint32_t) code, buffer, (uint16_t) bufferLength);
1515 length=getName(uCharNames, (uint32_t)code, nameChoice, buffer, (uint16_t)bufferLength);
1637 findName.code=error;
1639 if (findName.code == error) {
1642 return findName.code;