Lines Matching refs:aCache

241         WordBreakCache& aCache = cache[text[0] & 0x1f];  in getCache()  local
243 if (aCache.size != 0 && aCache.equals(text, wordBoundary)) in getCache()
244 return aCache; in getCache()
248 if (aCache.size == 0 || len > aCache.size) { in getCache()
249 if (aCache.size != 0) { in getCache()
250 delete aCache.contents; in getCache()
251 delete aCache.wordboundary; in getCache()
252 aCache.size = len; in getCache()
255 aCache.size = len > DEFAULT_SIZE ? len : DEFAULT_SIZE; in getCache()
256 aCache.contents = new sal_Unicode[aCache.size + 1]; in getCache()
257 aCache.wordboundary = new sal_Int32[aCache.size + 2]; in getCache()
259 aCache.length = len; in getCache()
260 memcpy(aCache.contents, text + wordBoundary.startPos, len * sizeof(sal_Unicode)); in getCache()
261 *(aCache.contents + len) = 0x0000; in getCache()
263 memset(aCache.wordboundary, '\0', sizeof(sal_Int32)*(len + 2)); in getCache()
266 while (aCache.wordboundary[i] < aCache.length) { in getCache()
269 … while (u_isWhitespace((sal_uInt32)text[wordBoundary.startPos + aCache.wordboundary[i] + len])) in getCache()
273 const sal_Unicode *str = text + wordBoundary.startPos + aCache.wordboundary[i]; in getCache()
274 sal_Int32 slen = aCache.length - aCache.wordboundary[i]; in getCache()
291 aCache.wordboundary[i+1] = aCache.wordboundary[i] + count; in getCache()
296 … sal_Int32 cBoundary = cellBoundary[aCache.wordboundary[i] + wordBoundary.startPos - 1]; in getCache()
298 aCache.wordboundary[i] = cBoundary - wordBoundary.startPos; in getCache()
305 aCache.wordboundary[i+1] = aCache.wordboundary[i] + len; in getCache()
310 … sal_Int32 cBoundary = cellBoundary[aCache.wordboundary[i] + wordBoundary.startPos - 1]; in getCache()
312 aCache.wordboundary[i] = cBoundary - wordBoundary.startPos; in getCache()
317 aCache.wordboundary[i + 1] = aCache.length + 1; in getCache()
319 return aCache; in getCache()
353 WordBreakCache& aCache = getCache(text, boundary); in getWordBoundary() local
356 while (aCache.wordboundary[i] <= anyPos - boundary.startPos) i++; in getWordBoundary()
358 sal_Int32 startPos = aCache.wordboundary[i - 1]; in getWordBoundary()
368 rText.iterateCodePoints(&boundary.endPos, aCache.wordboundary[i]); in getWordBoundary()
369 rText.iterateCodePoints(&boundary.startPos, aCache.wordboundary[i-1]); in getWordBoundary()