Lines Matching refs:i
102 for (sal_Unicode i = start; i <= end; i++) { in init() local
105 if (keys[j].key > 0 && (i == keys[j].key || index->compare(i, keys[j].key) == 0)) { in init()
106 table[i-start] = sal::static_int_cast<sal_uInt8>(j); in init()
111 table[i-start] = 0xFF; in init()
137 for (sal_Int16 i = 0; i < mkey_count; i++) { in getIndexWeight() local
138 sal_Int32 len = keys[mkeys[i]].mkey.getLength(); in getIndexWeight()
140 keys[mkeys[i]].mkey, 0, len) == 0) in getIndexWeight()
141 return mkeys[i]; in getIndexWeight()
145 for (sal_Int16 i = 0; i < table_count; i++) { in getIndexWeight() local
146 if (tables[i].start <= code && code <= tables[i].end) in getIndexWeight()
147 return tables[i].table[code-tables[i].start]; in getIndexWeight()
184 sal_Int16 i, j; in makeIndexKeys() local
186 for (i = 0; i < len && key_count < MAX_KEYS; i++) in makeIndexKeys()
188 sal_Unicode curr = keyStr[i]; in makeIndexKeys()
196 if (key_count > 0 && i + 1 < len ) { in makeIndexKeys()
197 … for (curr = keyStr[++i]; key_count < MAX_KEYS && keys[key_count-1].key < curr; key_count++) { in makeIndexKeys()
205 for (i++; i < len && keyStr[i] != sal_Unicode(']'); i++) { in makeIndexKeys()
206 if (unicode::isWhiteSpace(keyStr[i])) { in makeIndexKeys()
208 } else if (keyStr[i] == sal_Unicode('_')) { in makeIndexKeys()
209 for (curr=keyStr[i-1]+1; curr <= keyStr[i+1]; curr++) in makeIndexKeys()
211 i+=2; in makeIndexKeys()
213 skipping_chars+=OUString(keyStr[i]); in makeIndexKeys()
221 sal_Int16 end = i+1; in makeIndexKeys()
222 for (end=i+1; end < len && keyStr[end] != close; end++) ; in makeIndexKeys()
227 keys[key_count-1].desc = keyStr.copy(i+1, end-i-1); in makeIndexKeys()
231 keys[key_count].mkey = keyStr.copy(i+1, end-i-1); in makeIndexKeys()
234 i=end+1; in makeIndexKeys()
244 for (i = 0; i < mkey_count; i++) { in makeIndexKeys()
245 for (j=i+1; j < mkey_count; j++) { in makeIndexKeys()
246 if (keys[mkeys[i]].mkey.getLength() < keys[mkeys[j]].mkey.getLength()) { in makeIndexKeys()
247 sal_Int16 k = mkeys[i]; in makeIndexKeys()
248 mkeys[i] = mkeys[j]; in makeIndexKeys()
275 for (sal_Int16 i= (scriptList[0] == (UnicodeScript)0) ? 1 : 0; i< scriptList.getLength(); i++) { in init() local
276 if (unicode::getUnicodeScriptStart(scriptList[i]) != end+1) { in init()
278 start = unicode::getUnicodeScriptStart(scriptList[i]); in init()
280 end = unicode::getUnicodeScriptEnd(scriptList[i]); in init()