Home | History | Annotate | Download | only in i18n

Lines Matching refs:limit

114              index.limit < index.start ||
115 index.contextLimit < index.limit ||
184 * <= limit</code>.
185 * @param limit the ending index, exclusive; <code>start <= limit
187 * @return the new limit index, or -1
190 int32_t start, int32_t limit) const {
192 limit < start ||
193 text.length() < limit) {
199 offsets.contextLimit = limit;
201 offsets.limit = limit;
203 return offsets.limit;
272 * @see #LIMIT
366 text.handleReplaceBetween(index.limit, index.limit, *insertion);
367 index.limit += insertion->length();
371 if (index.limit > 0 &&
372 U16_IS_LEAD(text.charAt(index.limit - 1))) {
442 // The start and limit Position values are narrowed to each run.
454 // globalLimit is the limit value for the entire operation. We
455 // set index.limit
457 // value of index.limit here. After each transliteration, we
460 int32_t globalLimit = index.limit;
486 index.limit = index.start;
487 while (index.limit < globalLimit &&
488 filter->contains(c=text.char32At(index.limit))) {
489 index.limit += U16_LENGTH(c);
496 if (index.limit == index.start) {
502 // filtered text (if limit < globalLimit) then we pass in
506 (index.limit < globalLimit ? FALSE : incremental);
534 // any point we block (upon return, start < limit) then we roll
536 // limit) then we commit that run.
541 int32_t runLimit = index.limit;
556 // The limit for each pass; we advance by one code point with
579 index.limit = passLimit;
583 // transliterated text, and limit and contextLimit will be
587 delta = index.limit - passLimit; // change in length
592 if (index.start != index.limit) {
595 int32_t rs = rollbackStart + delta - (index.limit - passStart);
598 text.handleReplaceBetween(passStart, index.limit, UnicodeString());
605 index.limit = passLimit;
629 // Adjust overall limit and rollbackOrigin for insertions and
644 int32_t limit = index.limit;
646 delta = index.limit - limit; // change in length
648 // In a properly written transliterator, start == limit after
651 // an exception. (Just pinning start to limit is a bad idea,
655 if (!incremental && index.start != index.limit) {
657 index.start = index.limit;
660 // Adjust overall limit for insertions/deletions. Don't need
674 // Start is valid where it is. Limit needs to be put back where
676 index.limit = globalLimit;
1093 int32_t limit = parser.idBlockVector.size();
1094 if (parser.dataVector.size() > limit)
1095 limit = parser.dataVector.size();
1097 for (int32_t i = 0; i < limit; i++) {