Home | History | Annotate | Download | only in contacts

Lines Matching refs:index

38         final ImmutableIndex index = ai.buildImmutableIndex();
41 ContactLocaleUtils.dumpIndex(index);
43 return index;
46 private static String getBucket(ImmutableIndex index, String name) {
47 return index.getBucket(index.getBucketIndex(name)).getLabel();
50 private static boolean checkBucket(ImmutableIndex index, String expectedBucket, String str) {
62 final String actual = getBucket(index, ch);
78 final ImmutableIndex index = buildIndex("zh-Hant-TW");
81 // Data generated from: https://en.wiktionary.org/wiki/Index:Chinese_total_strokes
82 okay &= checkBucket(index, "1?", "??????????");
83 okay &= checkBucket(index, "2?", "??????????????????????????");
84 okay &= checkBucket(index, "3?", "??????????????????????????");
85 okay &= checkBucket(index, "4?", "??????????????????");
86 okay &= checkBucket(index, "5?", "??????????????????");
87 okay &= checkBucket(index, "10?", "??????????????");
88 okay &= checkBucket(index, "20?", "?????????????");
89 okay &= checkBucket(index, "39?", "?");
90 okay &= checkBucket(index, "48?", "?");