| /nv-g11n/g11n/src/lib/locale/common/layout/ |
| LOtypes.C | 60 int idx; local 66 idx= key-0x20; 68 idx= (key-0x40); 70 idx= -1; 72 idx= (key-0x064b)+191; // was 192 74 idx= (key-0xfc5e)+199; // was 200 76 idx= (key-0xfef5)+204; // was 205 79 idx = binSearch( key, 0 ,(sizeof(charDataIndex)/sizeof(charDataIndex[0]))-1 , charDataIndex); 80 if (idx != -1 && idx <=(sizeof(charData)/sizeof(charData[0]))-1 ) 89 int idx = binSearch( key, 0, sizeof (swapDataIndex)\/sizeof(swapDataIndex[0]-1) , swapDataIndex); local 105 int idx; local 129 int idx = binSearch( key, 0, sizeof(comboDataIndex)\/sizeof(comboDataIndex[0]-1) , comboDataIndex); local [all...] |
| /nv-g11n/g11n/src/lib/iconv/common/ |
| tab_lookup.c | 46 int n, idx, data_size; local 89 idx = bisearch(search_val, st, st->table_size); 91 fprintf(stderr, "Match idx: %d \n", idx); 94 if ( idx >= 0 ) { 98 match_val = st->table[idx].right_code; 142 idx = bisearch(search_val, st, st->table_size); 145 fprintf(stderr, "Match idx: %d \n", idx); 148 if ( idx >= 0 ) [all...] |
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/ |
| sim_sen.h | 51 : reader(the_reader), idx(the_idx) { } 57 int idx; member in class:SIMCharReaderIterator
|
| slm.cpp | 169 * or the history's level should be 0. when level == 0 but idx != 0, the 196 unsigned int idx = find_id(pBase, pn->ch(), t, wid); local 197 if (idx != t) { 198 result.setIdx(idx); 200 double pr = m_prTable[pBase[idx].pr()]; 206 unsigned int idx = find_id(pBase, pn->ch(), t, wid); local 207 if (idx != t) { 208 result.setIdx(idx); 210 double pr = m_prTable[pBase[idx].pr()]; 264 unsigned int idx = st.getIdx() local [all...] |
| sim_slmbuilder.cpp | 422 int idx[16]; //it should be lvl+1, yet some compiler does not support it local 425 idx[i] = 0; 430 for (; idx[lvl] < sz; ++idx[lvl]) { 431 words[lvl] = base[lvl][idx[lvl]].id; 433 while (base[k][idx[k]+1].child <= idx[k+1]) 434 ++idx[k]; 435 words[k] = base[k][idx[k]].id; 437 TNode & node = base[lvl][idx[lvl]] [all...] |
| /nv-g11n/inputmethod/sunpinyin2/src/slm/ |
| sim_sen.h | 51 : reader(the_reader), idx(the_idx) { } 57 int idx; member in class:SIMCharReaderIterator
|
| slm.cpp | 175 * or the history's level should be 0. when level == 0 but idx != 0, the 202 unsigned int idx = find_id(pBase, pn->ch(), t, wid); local 203 if (idx != t) { 204 result.setIdx(idx); 206 double pr = m_prTable[pBase[idx].pr()]; 212 unsigned int idx = find_id(pBase, pn->ch(), t, wid); local 213 if (idx != t) { 214 result.setIdx(idx); 216 double pr = m_prTable[pBase[idx].pr()]; 270 unsigned int idx = st.getIdx() local [all...] |
| sim_slmbuilder.cpp | 422 int idx[16]; //it should be lvl+1, yet some compiler does not support it local 425 idx[i] = 0; 430 for (; idx[lvl] < sz; ++idx[lvl]) { 431 words[lvl] = base[lvl][idx[lvl]].id; 433 while (base[k][idx[k]+1].child <= idx[k+1]) 434 ++idx[k]; 435 words[k] = base[k][idx[k]].id; 437 TNode & node = base[lvl][idx[lvl]] [all...] |
| /nv-g11n/g11n/src/lib/iconv/vi/ |
| tcvn%viscii.c | 87 int idx = -1; local 114 idx = binsearch(st->last, tcvn_comb_data, VOWEL_NUM); 115 if (idx >= 0) { 116 ch = tcvn_comb_data[idx].composed[(unsigned char)**inbuf - 0xb0];
|
| /nv-g11n/g11n/src/lib/iconv/zh/ |
| HZ-GB-2312%UTF-8.c | 179 int idx; local 188 idx = (((in_byte1 & 0xff) - 0xa1) * 94) + (in_byte2 & 0xff) - 0xa1; 189 if (idx >= 0) { 190 unicode = Unicode[idx];
|
| zh_CN.euc%UTF-8.c | 229 int idx; local 233 idx = (((in_byte1 & 0xff) - 0xa1) * 94) + (in_byte2 & 0xff) - 0xa1; 240 if (idx < 0 || idx >= GBMAX) { 244 unicode = Unicode[idx]; 265 if (idx >= 0 && idx < GBMAX ) { 266 unicode = Unicode[idx];
|
| zh_TW-big5%zh_TW-iso2022-CN-EXT.c | 167 int n, idx; local 251 if ((idx = hascns(st->keepc)) >= 0){ 252 n = big5_to_iso(idx, st, outbuf, outbytesleft); 342 int idx; local 348 idx = binsearch(big5code, big5_cns_tab, MAX_BIG5_NUM); 350 return (idx); /* binsearch returns -1 if not found, else index */ 394 /* big5_to_iso() : Converts the Big5 code, for which the index idx in 402 static int big5_to_iso(int idx, _iconv_st *st, char **outbuf, 410 ret = getcnsbytes(idx, cnsbytes, &cnsplane); 559 static int getcnsbytes(int idx, char *cnsbytes, int *cnsplane [all...] |
| zh_CN.gbk%zh_CN.iso2022-CN.c | 520 int idx; local 526 idx = binsearch_gbk_big5(gbkcode); 527 if (idx < 0) 530 big5code = gbk_big5_tab[idx].value;
|
| zh_CN.iso2022-CN%UTF-8.c | 638 int idx; local 649 idx = (((in_byte1 & 0xff) - 0x21) * 94) + (in_byte2 & 0xff) - 0x21; 650 if (idx < 0 || idx > GBMAX - 1) { 654 unicode = Unicode[idx]; 694 int idx; local
|
| zh_CN.iso2022-CN%zh_CN.euc.c | 629 int idx; local 675 idx = binsearch_big5_gb((((*buf) & ONEBYTE) << 8) | ((*(buf+1)) & ONEBYTE)); 676 if (idx < 0) { 680 *buf = (big5_gb_tab[idx].value >> 8) & ONEBYTE; 681 *(buf+1) = big5_gb_tab[idx].value & ONEBYTE;
|
| zh_CN.iso2022-CN%zh_CN.gbk.c | 649 int idx; local 695 idx = binsearch_big5_gbk((((*buf) & ONEBYTE) << 8) | ((*(buf+1)) & ONEBYTE)); 696 if (idx < 0) { 700 *buf = (big5_gbk_tab[idx].value >> 8) & ONEBYTE; 701 *(buf+1) = big5_gbk_tab[idx].value & ONEBYTE;
|
| /nv-g11n/inputmethod/sunpinyin/ime/src/slm/ |
| slm.cpp | 167 * or the history's level should be 0. when level == 0 but idx != 0, the 194 unsigned int idx = find_id(pBase, pn->ch(), t, wid); local 195 if (idx != t) { 196 result.setIdx(idx); 198 double pr = m_prTable[pBase[idx].pr()]; 204 unsigned int idx = find_id(pBase, pn->ch(), t, wid); local 205 if (idx != t) { 206 result.setIdx(idx); 208 double pr = m_prTable[pBase[idx].pr()]; 262 unsigned int idx = st.getIdx() local [all...] |
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/slmprune/ |
| slmprune.cpp | 57 unsigned idx : 31; 59 unsigned idx : 31; 65 { idx = pos; child = (children==0)?0:1; } 89 double CalcDistance(int lvl, int* idx, TSIMWordId* hw); 170 int idx[16]; // it should be lvl+1, yet some compiler do not support it local 174 idx[i] = 0; 175 while (idx[lvl] < n) { 177 hw[lvl] = (((TLeaf*)level[lvl])+idx[lvl])->id; 179 hw[lvl] = (((TNode*)level[lvl])+idx[lvl])->id; 182 TNode* pnode = ((TNode*)level[j])+idx[j] 255 int idx[16]; \/\/it should be lvl+1, yet some compiler do not support it local [all...] |
| /nv-g11n/inputmethod/sunpinyin2/src/slm/slmprune/ |
| slmprune.cpp | 57 unsigned idx : 31; 59 unsigned idx : 31; 65 { idx = pos; child = (children==0)?0:1; } 89 double CalcDistance(int lvl, int* idx, TSIMWordId* hw); 170 int idx[16]; // it should be lvl+1, yet some compiler do not support it local 174 idx[i] = 0; 175 while (idx[lvl] < n) { 177 hw[lvl] = (((TLeaf*)level[lvl])+idx[lvl])->id; 179 hw[lvl] = (((TNode*)level[lvl])+idx[lvl])->id; 182 TNode* pnode = ((TNode*)level[j])+idx[j] 255 int idx[16]; \/\/it should be lvl+1, yet some compiler do not support it local [all...] |
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/thread/ |
| slmthread.cpp | 129 int idx = findState(n, hw); local 130 if (idx >= 0 && ((TNode*)(level[n]))[idx].child < ((TNode*)(level[n]))[idx+1].child) { 131 bol = n; bon = idx; return; 143 int idx = it.m_history[i]; local 145 history.push_back(((TLeaf*)(level[i]))[idx].id); 147 history.push_back(((TNode*)(level[i]))[idx].id); 191 int idx = it.m_history.back(); local 193 return (((TLeaf*)(level[lvl]))+idx); [all...] |
| /nv-g11n/inputmethod/sunpinyin2/src/slm/thread/ |
| slmthread.cpp | 129 int idx = findState(n, hw); local 130 if (idx >= 0 && ((TNode*)(level[n]))[idx].child < ((TNode*)(level[n]))[idx+1].child) { 131 bol = n; bon = idx; return; 143 int idx = it.m_history[i]; local 145 history.push_back(((TLeaf*)(level[i]))[idx].id); 147 history.push_back(((TNode*)(level[i]))[idx].id); 191 int idx = it.m_history.back(); local 193 return (((TLeaf*)(level[lvl]))+idx); [all...] |
| /nv-g11n/g11n/src/cmd/mp/ |
| ttf.c | 88 static long get_glyphd_num_ctr_offset(ushort_t idx, ttffont_t * ttfont) ; 341 tt2ps_load_simple_glyph(ushort_t idx, float *dx, int size, 359 fseek(fn, fontd->loca + (long) idx * 2L, SEEK_SET); 363 fseek(fn, fontd->loca + (long) idx * 4L, SEEK_SET); 369 ret=tt2ps_load_compound_glyph(idx, dx, size, ttfont, glyphd, (subglyph_t*)NULL, level+1 ); 378 *dx = (float) fontd->hmetrics[idx].aw / cmapd->unitsPerEm * size; 459 tt2ps_load_compound_glyph(ushort_t idx, float *dx, int size, 570 get_glyphd_num_ctr_offset(ushort_t idx, ttffont_t * ttfont) { 577 fseek(fn, fontd->loca + (long) idx * 2L, SEEK_SET); 581 fseek(fn, fontd->loca + (long) idx * 4L, SEEK_SET) 780 ushort_t idx = 0xffff; local [all...] |
| /nv-g11n/inputmethod/sunpinyin/ime/src/ |
| imi_context.cpp | 52 TPos(CSkeletonIter bone=CSkeletonIter(), int idx=0) 53 : m_bone(bone), m_idx(idx) { } 459 int idx, lastValid = - 1; local 460 for (idx = 0; str[idx] != 0; ++idx) { 461 pyn = m_pPinyinTrie->transfer(pyn, (unsigned char)(str[idx])); 462 pathNodes[idx] = pyn; 463 if (validSyllable[idx] = m_pPinyinTrie->isValid(pyn, m_bNonCompleteSyllable, m_bGBK)) 464 lastValid = idx; [all...] |