Lines Matching refs:col
71 static UCollator * col; // for qsort callback function
83 UCollator * DataIndex::col;
90 UCollator * col;
102 CmdKeyGen(UErrorCode, UCollator * col,DWORD win_langid, int32_t count, DataIndex * data,Func fn,int32_t)
103 :col(col),win_langid(win_langid), count(count), data(data), fn(fn){}
114 ucol_getSortKey(col, data[i].icu_data, -1, icu_key, MAX_KEY_LENGTH);
118 ucol_getSortKey(col, data[i].icu_data, data[i].icu_data_len, icu_key, MAX_KEY_LENGTH);
147 CmdIter(UErrorCode & status, UCollator * col, int32_t count, CA_uchar *data, Func fn, int32_t,int32_t)
151 iter = ucol_openElements(col, NULL, 0, &status);
202 CmdIterAll(UErrorCode & status, UCollator * col, int32_t count, UChar * data, CALL call,int32_t,int32_t)
207 iter = ucol_openElements(col, data, -1, &status);
209 iter = ucol_openElements(col, data, count, &status);
290 return ucol_strcoll(da->col, da->icu_data, -1, db->icu_data, -1) - UCOL_EQUAL;
295 return ucol_strcoll(da->col, da->icu_data, da->icu_data_len, db->icu_data, db->icu_data_len) - UCOL_EQUAL;
402 UCollator * col;
410 CmdBinSearch(UErrorCode, UCollator * col,DWORD win_langid,int32_t count,DataIndex * rnd,DataIndex * ord,Func fn)
411 :col(col),win_langid(win_langid), count(count), rnd(rnd), ord(ord), fn(fn),exec_count(0){}
447 return ucol_strcoll(col, rnd[i].icu_data, -1, ord[j].icu_data,-1);
451 return ucol_strcoll(col, rnd[i].icu_data, rnd[i].icu_data_len, ord[j].icu_data, ord[j].icu_data_len);
495 UCollator * col;
521 ucol_close(col);
542 col = NULL;
613 col = ucol_open(locale, &status);
620 ucol_setAttribute(col, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
622 ucol_setAttribute(col, UCOL_FRENCH_COLLATION, UCOL_OFF, &status);
626 ucol_setAttribute(col, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status);
631 ucol_setAttribute(col, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, &status);
633 ucol_setAttribute(col, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, &status);
641 ucol_setAttribute(col, UCOL_CASE_LEVEL, UCOL_ON, &status);
645 ucol_setAttribute(col, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
656 case 1: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_PRIMARY, &status); break;
657 case 2: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_SECONDARY, &status); break;
658 case 3: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_TERTIARY, &status); break;
659 case 4: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_QUATERNARY, &status); break;
660 case 5: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_IDENTICAL, &status); break;
691 TEST(testname, CmdKeyGen, col, win_langid, count, rnd_index, &CmdKeyGen::func, 0)
701 TEST(testname, CmdIter, col, count, icu_data, &CmdIter::func,0,0)
708 TEST(testname, CmdIterAll, col, icu_data_all_len, icu_data_all, CmdIterAll::func,0,0)
728 TEST(testname, CmdBinSearch, col, win_langid, count, rnd_index, ord_icu_key, &CmdBinSearch::func)
796 DataIndex::col = col;
811 s = ucol_getSortKey(col, icu_data->dataOf(i), -1,NULL, 0);
813 t = ucol_getSortKey(col, icu_data->dataOf(i), -1,icu_key->last(), s);