Lines Matching defs:col

65     static UCollator *  col;            // for qsort callback function
77 UCollator * DataIndex::col;
84 UCollator * col;
96 CmdKeyGen(UErrorCode, UCollator * col,DWORD win_langid, int32_t count, DataIndex * data,Func fn,int32_t)
97 :col(col),win_langid(win_langid), count(count), data(data), fn(fn){}
108 ucol_getSortKey(col, data[i].icu_data, -1, icu_key, MAX_KEY_LENGTH);
112 ucol_getSortKey(col, data[i].icu_data, data[i].icu_data_len, icu_key, MAX_KEY_LENGTH);
141 CmdIter(UErrorCode & status, UCollator * col, int32_t count, CA_uchar *data, Func fn, int32_t,int32_t)
145 iter = ucol_openElements(col, NULL, 0, &status);
196 CmdIterAll(UErrorCode & status, UCollator * col, int32_t count, UChar * data, CALL call,int32_t,int32_t)
201 iter = ucol_openElements(col, data, -1, &status);
203 iter = ucol_openElements(col, data, count, &status);
284 return ucol_strcoll(da->col, da->icu_data, -1, db->icu_data, -1) - UCOL_EQUAL;
289 return ucol_strcoll(da->col, da->icu_data, da->icu_data_len, db->icu_data, db->icu_data_len) - UCOL_EQUAL;
396 UCollator * col;
404 CmdBinSearch(UErrorCode, UCollator * col,DWORD win_langid,int32_t count,DataIndex * rnd,DataIndex * ord,Func fn)
405 :col(col),win_langid(win_langid), count(count), rnd(rnd), ord(ord), fn(fn),exec_count(0){}
441 return ucol_strcoll(col, rnd[i].icu_data, -1, ord[j].icu_data,-1);
445 return ucol_strcoll(col, rnd[i].icu_data, rnd[i].icu_data_len, ord[j].icu_data, ord[j].icu_data_len);
489 UCollator * col;
515 ucol_close(col);
536 col = NULL;
607 col = ucol_open(locale, &status);
614 ucol_setAttribute(col, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
616 ucol_setAttribute(col, UCOL_FRENCH_COLLATION, UCOL_OFF, &status);
620 ucol_setAttribute(col, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status);
625 ucol_setAttribute(col, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, &status);
627 ucol_setAttribute(col, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, &status);
635 ucol_setAttribute(col, UCOL_CASE_LEVEL, UCOL_ON, &status);
639 ucol_setAttribute(col, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
650 case 1: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_PRIMARY, &status); break;
651 case 2: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_SECONDARY, &status); break;
652 case 3: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_TERTIARY, &status); break;
653 case 4: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_QUATERNARY, &status); break;
654 case 5: ucol_setAttribute(col, UCOL_STRENGTH, UCOL_IDENTICAL, &status); break;
685 TEST(testname, CmdKeyGen, col, win_langid, count, rnd_index, &CmdKeyGen::func, 0)
695 TEST(testname, CmdIter, col, count, icu_data, &CmdIter::func,0,0)
702 TEST(testname, CmdIterAll, col, icu_data_all_len, icu_data_all, CmdIterAll::func,0,0)
722 TEST(testname, CmdBinSearch, col, win_langid, count, rnd_index, ord_icu_key, &CmdBinSearch::func)
790 DataIndex::col = col;
805 s = ucol_getSortKey(col, icu_data->dataOf(i), -1,NULL, 0);
807 t = ucol_getSortKey(col, icu_data->dataOf(i), -1,icu_key->last(), s);