Home | History | Annotate | Download | only in i18n

Lines Matching refs:ch

1364     UChar ch = 0;
1376 ch = *collationSource->pos++;
1377 if (ch != 0) {
1392 ch = *collationSource->pos++;
1399 ch = (UChar)iterCh;
1404 ch = *collationSource->pos++;
1405 if (ch == 0) {
1436 if(((ch>=0x3040 && ch<=0x3096) || (ch >= 0x309d && ch <= 0x309f)) ||
1437 ((collationSource->flags & UCOL_WAS_HIRAGANA) && (ch >= 0x3099 && ch <= 0x309C))) {
1456 if (ch < ZERO_CC_LIMIT_ ) {
1461 if (ch < NFC_ZERO_CC_BLOCK_LIMIT_) {
1491 if (ch <= 0xFF) {
1494 order = coll->latinOneMapping[ch];
1496 order = ucol_prv_getSpecialCE(coll, ch, order, collationSource, status);
1505 (ch >= UCOL_FIRST_HAN_A && ch <= UCOL_LAST_HANGUL)) {
1506 if (ch > UCOL_LAST_HAN && ch < UCOL_FIRST_HANGUL) {
1512 order = UTRIE_GET32_FROM_LEAD(&coll->mapping, ch);
1518 order = UTRIE_GET32_FROM_LEAD(&coll->mapping, ch);
1522 order = ucol_prv_getSpecialCE(coll, ch, order, collationSource, status); /* and try to get the special CE */
1527 order = UTRIE_GET32_FROM_LEAD(&coll->UCA->mapping, ch);
1530 order = ucol_prv_getSpecialCE(coll->UCA, ch, order, collationSource, status);
1535 order = getImplicit(ch, collationSource);
1843 UChar ch = 0;
1861 ch = *data->pos;
1869 ch = (UChar)iterCh;
1874 ch = *data->pos;
1876 if (ch == 0) {
1899 if(ch>=0x3040 && ch<=0x309f) {
1914 if (ch < ZERO_CC_LIMIT_ ||
1922 if (ch < NFC_ZERO_CC_BLOCK_LIMIT_) {
1954 if (ucol_contractionEndCP(ch, coll) && !isAtStartPrevIterate(data)) {
1955 result = ucol_prv_getSpecialPrevCE(coll, ch, UCOL_CONTRACTION, data, status);
1957 if (ch <= 0xFF) {
1958 result = coll->latinOneMapping[ch];
1964 (ch >= 0x3400 && ch <= 0xD7AF)) {
1965 if (ch > 0x9FFF && ch < 0xAC00) {
1971 result = UTRIE_GET32_FROM_LEAD(&coll->mapping, ch);
1976 result = UTRIE_GET32_FROM_LEAD(&coll->mapping, ch);
1980 result = ucol_prv_getSpecialPrevCE(coll, ch, result, data, status);
1984 ucol_contractionEndCP(ch, data->coll))
1989 result = UTRIE_GET32_FROM_LEAD(&coll->UCA->mapping, ch);
1995 result = ucol_prv_getSpecialPrevCE(coll->UCA, ch, result, data, status);
2002 result = getPrevImplicit(ch, data);
2034 * @param ch character to be appended
2038 inline UChar * insertBufferEnd(collIterate *data, UChar *pNull, UChar ch)
2045 *pNull = ch;
2065 *newbuffer = ch;
2187 UChar ch;
2270 ch = *data->pos ++;
2279 ch >= NFC_ZERO_CC_BLOCK_LIMIT_)) {
2308 data->pos = insertBufferEnd(data, pEndWritableBuffer, ch) + 1;
2316 return ch;
2507 * @param ch character to be appended
2511 inline UChar * insertBufferFront(collIterate *data, UChar *pNull, UChar ch)
2519 *pNull = ch;
2536 *end = ch;
2639 UChar ch;
2665 ch = *start;
2681 ch = *start;
2689 (ch >= NFC_ZERO_CC_BLOCK_LIMIT_ || prevch >= NFC_ZERO_CC_BLOCK_LIMIT_))
2710 ch);
2714 return ch;
2723 uint32_t ucol_prv_getSpecialCE(const UCollator *coll, UChar ch, uint32_t CE, collIterate *source, UErrorCode *status) {
2726 UChar32 cp = ch;
3033 if (U16_IS_LEAD(ch)){
3038 char32 = U16_GET_SUPPLEMENTARY(ch, trail);
3041 char32 = ch;
3044 char32 = ch;
3047 char32 = ch;
3114 ch = getNextNormalizedChar(source);
3115 if (U16_IS_LEAD(ch)){
3120 char32 = U16_GET_SUPPLEMENTARY(ch, trail);
3123 char32 = ch;
3127 char32 = ch;
3216 uint32_t L = ch - SBase;
3296 cp = ((((uint32_t)ch)<<10UL)+(trail)-(((uint32_t)0xd800<<10UL)+0xdc00-0x10000));
3304 cp = U16_GET_SUPPLEMENTARY(ch, nextChar);
3312 cp = U16_GET_SUPPLEMENTARY(ch, nextChar);
3377 uint32_t ucol_prv_getSpecialPrevCE(const UCollator *coll, UChar ch, uint32_t CE,
3842 UChar initial_ch = ch;
3851 if (U16_IS_TRAIL (ch)) {
3855 char32 = U16_GET_SUPPLEMENTARY(lead,ch);
3858 char32 = ch;
3861 char32 = ch;
3864 char32 = ch;
3929 ch = getPrevNormalizedChar(source, status);
3931 if (U16_IS_TRAIL(ch)) {
3938 char32 = U16_GET_SUPPLEMENTARY(lead,ch);
3941 char32 = ch;
3945 char32 = ch;
3973 ch = initial_ch;
4048 uint32_t L = ch - SBase;
4138 return getPrevImplicit(ch, source);
4142 return getPrevImplicit(ch, source);
4171 cp = ((((uint32_t)prevChar)<<10UL)+(ch)-(((uint32_t)0xd800<<10UL)+0xdc00-0x10000));
6740 ucol_addLatinOneEntry(UCollator *coll, UChar ch, uint32_t CE,
6760 coll->latinOneCEs[ch] |= (primary1 << *primShift);
6765 coll->latinOneCEs[ch] = UCOL_BAIL_OUT_CE;
6766 coll->latinOneCEs[coll->latinOneTableLen+ch
6767 coll->latinOneCEs[2*coll->latinOneTableLen+ch] = UCOL_BAIL_OUT_CE;
6770 coll->latinOneCEs[ch] |= (primary2 << *primShift);
6775 coll->latinOneCEs[coll->latinOneTableLen+ch] >>= 8; // make space for secondary
6776 coll->latinOneCEs[coll->latinOneTableLen+ch] |= (secondary << 24);
6778 coll->latinOneCEs[coll->latinOneTableLen+ch] |= (secondary << *secShift);
6783 coll->latinOneCEs[2*coll->latinOneTableLen+ch] |= (tertiary << *terShift);
6818 UChar ch = 0;
6819 UCollationElements *it = ucol_openElements(coll, &ch, 1, status);
6831 for(ch = 0; ch <= UCOL_ENDOFLATINONERANGE; ch++) {
6833 if(ch < 0x100) {
6834 CE = coll->latinOneMapping[ch];
6836 CE = UTRIE_GET32_FROM_LEAD(&coll->mapping, ch);
6838 CE = UTRIE_GET32_FROM_LEAD(&coll->UCA->mapping, ch);
6842 ucol_addLatinOneEntry(coll, ch, CE, &primShift, &secShift, &terShift);
6847 ucol_setText(it, &ch, 1, status);
6850 coll->latinOneCEs[ch] = UCOL_BAIL_OUT_CE;
6851 coll->latinOneCEs[coll->latinOneTableLen+ch] = UCOL_BAIL_OUT_CE;
6852 coll->latinOneCEs[2*coll->latinOneTableLen+ch] = UCOL_BAIL_OUT_CE;
6855 ucol_addLatinOneEntry(coll, ch, CE, &primShift, &secShift, &terShift);
6874 coll->latinOneCEs[ch] = CE;
6875 coll->latinOneCEs[coll->latinOneTableLen+ch] = CE;
6876 coll->latinOneCEs[2*coll->latinOneTableLen+ch] = CE;
6934 if (ch==0xb7) {
6935 ucol_addLatinOneEntry(coll, ch, CE, &primShift, &secShift, &terShift);