Lines Matching refs:pos
336 int32_t pos;
339 for (pos=bi->first(); pos!= BreakIterator::DONE; pos=bi->next()) {
340 if (pos != bounds1[i]) {
341 errln("FAIL: expected break at %d, got %d\n", bounds1[i], pos);
347 errln("FAIL: break at %d, expected tag %d, got tag %d\n", pos, brkStatus[i], tag);
816 int pos = bi->next();
817 TEST_ASSERT(pos == 6);
818 pos = bi->next();
819 TEST_ASSERT(pos == 10);
820 pos = bi->previous();
821 TEST_ASSERT(pos == 6);
858 errln("Forward Iteration, no forward progress. Break Pos=%4d File line,col=%4d,%4d",
869 errln("Forward Iteration, break expected, but not found. Pos=%4d File line,col= %4d,%4d",
878 errln("Forward Iteration, break found, but not expected. Pos=%4d File line,col= %4d,%4d",
890 errln("Incorrect status for forward break. Pos=%4d File line,col= %4d,%4d.\n"
903 errln("Forward Iteration, break expected, but not found. Pos=%4d File line,col= %4d,%4d",
911 prevBP = t->dataToBreak.length()+2; // start with a phony value for the last break pos seen.
915 errln("Reverse Iteration, no progress. Break Pos=%4d File line,col=%4d,%4d",
924 errln("Reverse Itertion, break expected, but not found. Pos=%4d File line,col= %4d,%4d",
931 errln("Reverse Itertion, break found, but not expected. Pos=%4d File line,col= %4d,%4d",
943 errln("Incorrect status for reverse break. Pos=%4d File line,col= %4d,%4d.\n"
955 errln("Forward Itertion, break expected, but not found. Pos=%4d File line,col= %4d,%4d",
1724 int32_t pos; // Break Position in the test string
1729 pos = bi->first();
1730 pos = bi->next();
1732 while (pos != BreakIterator::DONE) {
1735 testFileName, lineNumber, pos);
1739 if (pos < expectedPos) {
1741 testFileName, lineNumber, pos);
1744 if (pos > expectedPos) {
1749 pos = bi->next();
1753 if (pos==BreakIterator::DONE && expectedI<breakPositions->size()) {
2360 UChar32 cAt(int pos);
2487 UChar32 RBBISentMonkey::cAt(int pos) {
2488 if (pos<0 || pos>=fText->length()) {
2491 return fText->char32At(pos);
2680 virtual void rule9Adjust(int32_t pos, UChar32 *posChar, int32_t *nextPos, UChar32 *nextChar);
2871 void RBBILineMonkey::rule9Adjust(int32_t pos, UChar32 *posChar, int32_t *nextPos, UChar32 *nextChar) {
2872 if (pos == -1) {
2914 int32_t pos; // Index of the char following a potential break position
2915 UChar32 thisChar; // Character at above position "pos"
2925 int32_t nextPos; // Index of the next character following pos.
2927 int32_t nextCPPos; // Index of the code point following "pos."
2944 pos = prevPos = prevPosX2 = -1; // Invalid value, serves as flag for initial loop iteration.
2955 prevPos = pos;
2958 pos = nextPos;
2959 thisChar = fText->char32At(pos);
2961 nextCPPos = fText->moveIndex32(pos, 1);
2965 if (pos >= fText->length()) {
2973 rule9Adjust(prevPos, &prevChar, &pos, &thisChar);
2974 nextCPPos = nextPos = fText->moveIndex32(pos, 1);
2976 rule9Adjust(pos, &thisChar, &nextPos, &c);
3208 if (numEndIdx > pos) {
3211 // Number match includes additional chars. Update pos and nextPos
3214 pos = nextPos = numEndIdx;
3216 pos = fText->moveIndex32(pos, -1);
3217 thisChar = fText->char32At(pos);
3292 return pos;
4262 int pos = 0;
4276 pos = bi->last();
4279 printf("%d\t%d\n", pos, ruleStatus);
4280 pos = bi->previous();
4281 } while (pos != BreakIterator::DONE);