Home
last modified time | relevance | path

Searched refs:getIndex (Results 1 – 25 of 138) sorted by relevance

123456

/external/icu4c/test/intltest/
Dcitrtest.cpp167 if(test->getIndex()!=1){ in TestCoverage()
174 if(test->getIndex()!=0){ in TestCoverage()
178 if(test->getIndex()!=testText.length()){ in TestCoverage()
211 if (test1d->getIndex() < test1d->startIndex() || test1d->endIndex() < test1d->getIndex()) in TestConstructionAndEquality()
308 if (test8c->getIndex() < test8c->startIndex() || test8c->endIndex() < test8c->getIndex()) in TestConstructionAndEqualityUChariter()
352 if (test8b->getIndex()!=5) in TestConstructionAndEqualityUChariter()
407 if (iter.getIndex() != i) in TestIteration()
436 if (iter.getIndex() != i) in TestIteration()
458 if(iter.getIndex() != i+1) in TestIteration()
477 if(iter.getIndex() != i) in TestIteration()
[all …]
Dpptest.cpp53 if (pp1.getIndex() == 0) { in TestParsePosition()
62 if (pp2.getIndex() == 5) { in TestParsePosition()
68 if (pp2.getIndex() == 3) { in TestParsePosition()
87 … errln(UnicodeString("*** PP equals fails (") + pp3.getIndex() + " != " + pp4.getIndex() + ")"); in TestParsePosition()
/external/chromium/third_party/icu/source/test/intltest/
Dcitrtest.cpp167 if(test->getIndex()!=1){ in TestCoverage()
174 if(test->getIndex()!=0){ in TestCoverage()
178 if(test->getIndex()!=testText.length()){ in TestCoverage()
211 if (test1d->getIndex() < test1d->startIndex() || test1d->endIndex() < test1d->getIndex()) in TestConstructionAndEquality()
308 if (test8c->getIndex() < test8c->startIndex() || test8c->endIndex() < test8c->getIndex()) in TestConstructionAndEqualityUChariter()
352 if (test8b->getIndex()!=5) in TestConstructionAndEqualityUChariter()
407 if (iter.getIndex() != i) in TestIteration()
436 if (iter.getIndex() != i) in TestIteration()
458 if(iter.getIndex() != i+1) in TestIteration()
477 if(iter.getIndex() != i) in TestIteration()
[all …]
Dpptest.cpp53 if (pp1.getIndex() == 0) { in TestParsePosition()
62 if (pp2.getIndex() == 5) { in TestParsePosition()
68 if (pp2.getIndex() == 3) { in TestParsePosition()
87 … errln(UnicodeString("*** PP equals fails (") + pp3.getIndex() + " != " + pp4.getIndex() + ")"); in TestParsePosition()
/external/icu4c/samples/uciter8/
Duciter8.c51 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators()
52 pos2=iter2->getIndex(iter2, UITER_LENGTH); in compareIterators()
86 … U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
96 …04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
126 …%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
191 …ious()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
275 i=iter1->getIndex(iter1, UITER_CURRENT); in testIteratorState()
276 j=iter2->getIndex(iter2, UITER_CURRENT); in testIteratorState()
285 i=iter1->getIndex(iter1, UITER_LENGTH); in testIteratorState()
286 j=iter2->getIndex(iter2, UITER_LENGTH); in testIteratorState()
/external/icu4c/i18n/
Dnfrule.cpp791 fprintf(stderr, "' pl: %d ppi: %d s1p: %d\n", prefixLength, pp.getIndex(), sub1->getPos()); in doParse()
794 if (pp.getIndex() == 0 && sub1->getPos() != 0) { in doParse()
853 if (pp.getIndex() != 0 || sub1->isNullSubstitution()) { in doParse()
854 start = pp.getIndex(); in doParse()
857 workText2.setTo(workText, pp.getIndex(), workText.length() - pp.getIndex()); in doParse()
872 if (pp2.getIndex() != 0 || sub2->isNullSubstitution()) { in doParse()
873 if (prefixLength + pp.getIndex() + pp2.getIndex() > highWaterMark) { in doParse()
874 highWaterMark = prefixLength + pp.getIndex() + pp2.getIndex(); in doParse()
881 int32_t temp = pp2.getErrorIndex() + sub1->getPos() + pp.getIndex(); in doParse()
899 && pp.getIndex() > 0 in doParse()
[all …]
Dnfsubs.cpp701 if (lenientParse && !ruleSet->isFractionRuleSet() && parsePosition.getIndex() == 0) { in doParse()
719 if (parsePosition.getIndex() != 0) { in doParse()
944 if (parsePosition.getIndex() != 0) { in doParse()
1117 while (workText.length() > 0 && workPos.getIndex() != 0) { in doParse()
1127 if (lenientParse && workPos.getIndex() == 0) { in doParse()
1142 if (workPos.getIndex() != 0) { in doParse()
1146 parsePosition.setIndex(parsePosition.getIndex() + workPos.getIndex()); in doParse()
1147 workText.removeBetween(0, workPos.getIndex()); in doParse()
1150 parsePosition.setIndex(parsePosition.getIndex() + 1); in doParse()
1245 while (workText.length() > 0 && workPos.getIndex() != 0) { in doParse()
[all …]
Dtimezone.cpp1168 if (id[pos.getIndex()] == MINUS /*'-'*/) { in parseCustomID()
1170 } else if (id[pos.getIndex()] != PLUS /*'+'*/) { in parseCustomID()
1173 pos.setIndex(pos.getIndex() + 1); in parseCustomID()
1183 int32_t start = pos.getIndex(); in parseCustomID()
1186 if (pos.getIndex() == start) { in parseCustomID()
1192 if (pos.getIndex() < id.length()) { in parseCustomID()
1193 if (pos.getIndex() - start > 2 in parseCustomID()
1194 || id[pos.getIndex()] != COLON) { in parseCustomID()
1199 pos.setIndex(pos.getIndex() + 1); in parseCustomID()
1200 int32_t oldPos = pos.getIndex(); in parseCustomID()
[all …]
Dnfrs.cpp618 … fprintf(stderr, " <nfrs after negative> success: %d wpi: %d\n", success, workingPos.getIndex()); in parse()
620 if (success && workingPos.getIndex() > highWaterMark.getIndex()) { in parse()
629 fprintf(stderr, "' hwm: %d\n", highWaterMark.getIndex()); in parse()
637 if (success && (workingPos.getIndex() > highWaterMark.getIndex())) { in parse()
648 fprintf(stderr, "' hwm: %d\n", highWaterMark.getIndex()); in parse()
671 for (int32_t i = rules.size(); --i >= 0 && highWaterMark.getIndex() < text.length();) { in parse()
677 if (success && workingPos.getIndex() > highWaterMark.getIndex()) { in parse()
Dsmpdtfmt.cpp953 int32_t start = pos.getIndex(); in parseGMT()
972 (pos.getIndex() - start) >= fGMTFormatHmsMinLen[kGMTNegativeHMSMinLenIdx]) { in parseGMT()
986 (pos.getIndex() - start) >= fGMTFormatHmsMinLen[kGMTPositiveHMSMinLenIdx]) { in parseGMT()
999 if (pos.getErrorIndex() == -1 && pos.getIndex() > start) { in parseGMT()
1012 if (pos.getErrorIndex() == -1 && pos.getIndex() > start) { in parseGMT()
1056 int32_t start = pos.getIndex(); in parseGMTDefault()
1090 numLen = pos.getIndex() - cur; in parseGMTDefault()
1112 numLen = pos.getIndex() - cur; in parseGMTDefault()
1121 numLen = pos.getIndex() - cur; in parseGMTDefault()
1777 int32_t pos = parsePos.getIndex(); in parse()
[all …]
/external/chromium/third_party/icu/source/i18n/
Dnfrule.cpp791 fprintf(stderr, "' pl: %d ppi: %d s1p: %d\n", prefixLength, pp.getIndex(), sub1->getPos()); in doParse()
794 if (pp.getIndex() == 0 && sub1->getPos() != 0) { in doParse()
853 if (pp.getIndex() != 0 || sub1->isNullSubstitution()) { in doParse()
854 start = pp.getIndex(); in doParse()
857 workText2.setTo(workText, pp.getIndex(), workText.length() - pp.getIndex()); in doParse()
872 if (pp2.getIndex() != 0 || sub2->isNullSubstitution()) { in doParse()
873 if (prefixLength + pp.getIndex() + pp2.getIndex() > highWaterMark) { in doParse()
874 highWaterMark = prefixLength + pp.getIndex() + pp2.getIndex(); in doParse()
881 int32_t temp = pp2.getErrorIndex() + sub1->getPos() + pp.getIndex(); in doParse()
899 && pp.getIndex() > 0 in doParse()
[all …]
Dnfsubs.cpp701 if (lenientParse && !ruleSet->isFractionRuleSet() && parsePosition.getIndex() == 0) { in doParse()
719 if (parsePosition.getIndex() != 0) { in doParse()
944 if (parsePosition.getIndex() != 0) { in doParse()
1120 while (workText.length() > 0 && workPos.getIndex() != 0) { in doParse()
1130 if (lenientParse && workPos.getIndex() == 0) { in doParse()
1145 if (workPos.getIndex() != 0) { in doParse()
1149 parsePosition.setIndex(parsePosition.getIndex() + workPos.getIndex()); in doParse()
1150 workText.removeBetween(0, workPos.getIndex()); in doParse()
1153 parsePosition.setIndex(parsePosition.getIndex() + 1); in doParse()
1248 while (workText.length() > 0 && workPos.getIndex() != 0) { in doParse()
[all …]
Dtimezone.cpp1279 if (id[pos.getIndex()] == MINUS /*'-'*/) { in parseCustomID()
1281 } else if (id[pos.getIndex()] != PLUS /*'+'*/) { in parseCustomID()
1284 pos.setIndex(pos.getIndex() + 1); in parseCustomID()
1294 int32_t start = pos.getIndex(); in parseCustomID()
1297 if (pos.getIndex() == start) { in parseCustomID()
1303 if (pos.getIndex() < id.length()) { in parseCustomID()
1304 if (pos.getIndex() - start > 2 in parseCustomID()
1305 || id[pos.getIndex()] != COLON) { in parseCustomID()
1310 pos.setIndex(pos.getIndex() + 1); in parseCustomID()
1311 int32_t oldPos = pos.getIndex(); in parseCustomID()
[all …]
Dnfrs.cpp618 … fprintf(stderr, " <nfrs after negative> success: %d wpi: %d\n", success, workingPos.getIndex()); in parse()
620 if (success && workingPos.getIndex() > highWaterMark.getIndex()) { in parse()
629 fprintf(stderr, "' hwm: %d\n", highWaterMark.getIndex()); in parse()
637 if (success && (workingPos.getIndex() > highWaterMark.getIndex())) { in parse()
648 fprintf(stderr, "' hwm: %d\n", highWaterMark.getIndex()); in parse()
671 for (int32_t i = rules.size(); --i >= 0 && highWaterMark.getIndex() < text.length();) { in parse()
677 if (success && workingPos.getIndex() > highWaterMark.getIndex()) { in parse()
Dsmpdtfmt.cpp955 int32_t start = pos.getIndex(); in parseGMT()
974 (pos.getIndex() - start) >= fGMTFormatHmsMinLen[kGMTNegativeHMSMinLenIdx]) { in parseGMT()
988 (pos.getIndex() - start) >= fGMTFormatHmsMinLen[kGMTPositiveHMSMinLenIdx]) { in parseGMT()
1001 if (pos.getErrorIndex() == -1 && pos.getIndex() > start) { in parseGMT()
1014 if (pos.getErrorIndex() == -1 && pos.getIndex() > start) { in parseGMT()
1058 int32_t start = pos.getIndex(); in parseGMTDefault()
1092 numLen = pos.getIndex() - cur; in parseGMTDefault()
1114 numLen = pos.getIndex() - cur; in parseGMTDefault()
1123 numLen = pos.getIndex() - cur; in parseGMTDefault()
1774 int32_t pos = parsePos.getIndex(); in parse()
[all …]
/external/icu4c/common/
Druleiter.cpp32 return buf == 0 && pos.getIndex() == text.length(); in atEnd()
91 p.pos = pos.getIndex(); in getPos()
118 text.extract(pos.getIndex(), maxLookAhead, result); in lookahead()
139 int i = pos.getIndex(); in _current()
151 pos.setIndex(pos.getIndex() + count); in _advance()
152 if (pos.getIndex() > text.length()) { in _advance()
/external/chromium/third_party/icu/source/common/
Druleiter.cpp32 return buf == 0 && pos.getIndex() == text.length(); in atEnd()
91 p.pos = pos.getIndex(); in getPos()
118 text.extract(pos.getIndex(), maxLookAhead, result); in lookahead()
139 int i = pos.getIndex(); in _current()
151 pos.setIndex(pos.getIndex() + count); in _advance()
152 if (pos.getIndex() > text.length()) { in _advance()
/external/webkit/JavaScriptCore/runtime/
DJSVariableObject.h108 slot.setRegisterSlot(&registerAt(entry.getIndex())); in symbolTableGet()
118 slot.setRegisterSlot(&registerAt(entry.getIndex())); in symbolTableGet()
134 registerAt(entry.getIndex()) = value; in symbolTablePut()
148 registerAt(entry.getIndex()) = value; in symbolTablePutWithAttributes()
DJSByteArray.cpp65 slot.setValue(getIndex(exec, index)); in getOwnPropertySlot()
76 descriptor.setDescriptor(getIndex(exec, index), DontDelete); in getOwnPropertyDescriptor()
85 slot.setValue(getIndex(exec, propertyName)); in getOwnPropertySlot()
/external/protobuf/java/src/test/java/com/google/protobuf/
DDescriptorsTest.java105 assertEquals(i, file.getMessageTypes().get(i).getIndex()); in testFileDescriptor()
116 assertEquals(i, file.getEnumTypes().get(i).getIndex()); in testFileDescriptor()
127 assertEquals(i, file.getServices().get(i).getIndex()); in testFileDescriptor()
141 assertEquals(i, file.getExtensions().get(i).getIndex()); in testFileDescriptor()
170 assertEquals(i, messageType.getFields().get(i).getIndex()); in testDescriptor()
177 assertEquals(i, messageType.getNestedTypes().get(i).getIndex()); in testDescriptor()
185 assertEquals(i, messageType.getEnumTypes().get(i).getIndex()); in testDescriptor()
312 assertEquals(i, enumType.getValues().get(i).getIndex()); in testEnumDescriptor()
344 assertEquals(i, service.getMethods().get(i).getIndex()); in testServiceDescriptor()
/external/icu4c/samples/citer/
Dciter.cpp92 if (iter.getIndex() != i) { in TestUChariter()
155 if (iter.getIndex() != i) { in TestStringiter()
156 … u_fprintf(out, "getIndex() isn't working right [%d should be %d]\n", iter.getIndex(), i); in TestStringiter()
/external/srec/tools/grxmlcompile/
Dgrxmldoc.cpp880 return m_RuleList.getIndex( i, &s ); in findRule()
895 return m_SubgraphList.getIndex( p_SubGraph, &s ); in findSubGraphIndex()
904 return m_TagList.getIndex( s, &i ); in findTagIndex()
908 return m_LabelList.getIndex( s, &i ); in findLabelIndex()
937 bool bRes = m_LabelList.getIndex( s, &index ); in addLabelToList()
1071 if ( !orderedList.getIndex( label, &index ) ) { in writeMapFile()
1075 if ( !orderedList.getIndex( label, &index ) ) { in writeMapFile()
1086 m_LabelList.getIndex( label, &origIndex ); in writeMapFile()
1185 m_LabelList.getIndex( label, &origIndex ); in sortLabels()
1208 if ( m_SortedLabelList.getIndex(s, &sortedIndex )) { in findSortedLabelIndex()
[all …]
Dtesthashmap.cpp50 myHash.getIndex( 10, &i ); in test1()
77 myHash.getIndex( value, &i ); in test2()
157 if ( myHash.getIndex(s, &i) ) { in findi()
/external/chromium/third_party/icu/source/test/cintltst/
Dcustrtst.c1198 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators()
1199 pos2=iter2->getIndex(iter2, UITER_LENGTH); in compareIterators()
1233 … U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
1243 …04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
1273 …%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
1338 …ious()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
1422 i=iter1->getIndex(iter1, UITER_CURRENT); in testIteratorState()
1423 j=iter2->getIndex(iter2, UITER_CURRENT); in testIteratorState()
1432 i=iter1->getIndex(iter1, UITER_LENGTH); in testIteratorState()
1433 j=iter2->getIndex(iter2, UITER_LENGTH); in testIteratorState()
[all …]
/external/icu4c/test/cintltst/
Dcustrtst.c1198 length=iter1->getIndex(iter1, UITER_LENGTH); in compareIterators()
1199 pos2=iter2->getIndex(iter2, UITER_LENGTH); in compareIterators()
1233 … U+%04x=%s->next() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
1243 …04x=%s->previous() at %d (started in middle)\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
1273 …%s->next()=U+%04x != U+%04x=%s->next() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
1338 …ious()=U+%04x != U+%04x=%s->previous() at %d\n", n1, c1, c2, n2, iter1->getIndex(iter1, UITER_CURR… in compareIterators()
1422 i=iter1->getIndex(iter1, UITER_CURRENT); in testIteratorState()
1423 j=iter2->getIndex(iter2, UITER_CURRENT); in testIteratorState()
1432 i=iter1->getIndex(iter1, UITER_LENGTH); in testIteratorState()
1433 j=iter2->getIndex(iter2, UITER_LENGTH); in testIteratorState()
[all …]

123456