/external/libwebsockets/lib/misc/ |
D | lejp.c | 91 ctx->pst[0].ppos = 0; in lejp_construct() 188 ctx->path_match_len = ctx->pst[ctx->pst_sp].ppos; in lejp_check_path_match() 206 while (--len && n < ctx->pst[ctx->pst_sp].ppos && in lejp_get_wildcard() 240 if (!ctx->sp && !ctx->pst[ctx->pst_sp].ppos) in lejp_parse() 409 ctx->path[ctx->pst[ctx->pst_sp].ppos] = '\0'; in lejp_parse() 455 ctx->path[ctx->pst[ctx->pst_sp].ppos++] = '['; in lejp_parse() 456 ctx->path[ctx->pst[ctx->pst_sp].ppos++] = ']'; in lejp_parse() 457 ctx->path[ctx->pst[ctx->pst_sp].ppos] = '\0'; in lejp_parse() 482 ctx->pst[ctx->pst_sp].ppos = ctx->st[ctx->sp - 1].p; in lejp_parse() 485 ctx->path[ctx->pst[ctx->pst_sp].ppos] = '\0'; in lejp_parse() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | NumberFormatDataDrivenTest.java | 45 private static String compareParseResult(String expected, Number actual, ParsePosition ppos) { in compareParseResult() argument 46 if (actual == null && ppos.getIndex() != 0) { in compareParseResult() 49 if (ppos.getIndex() == 0) { in compareParseResult() 98 ParsePosition ppos) { in compareParseCurrencyResult() argument 99 if (ppos.getIndex() == 0 || actual.getCurrency().getCurrencyCode().equals("XXX")) { in compareParseCurrencyResult() 159 ParsePosition ppos = new ParsePosition(0); 160 Number actual = fmt.parse(tuple.parse, ppos); 161 return compareParseResult(tuple.output, actual, ppos); 167 ParsePosition ppos = new ParsePosition(0); 168 CurrencyAmount actual = fmt.parseCurrency(tuple.parse, ppos); [all …]
|
D | NumberFormatJavaCompatilityTest.java | 96 ParsePosition ppos = new ParsePosition(0); in assertParsedICU4J() local 97 Number actual = df.parse(input, ppos); in assertParsedICU4J() 105 ParsePosition ppos = new ParsePosition(0); in assertParsedOpenJDK() local 106 Number actual = df.parse(input, ppos); in assertParsedOpenJDK()
|
D | NumberFormatTest.java | 508 ParsePosition ppos = new ParsePosition(0); in TestSpaceParsingStrict() local 509 df.parse(input, ppos); in TestSpaceParsingStrict() 510 assertEquals("Failed on index: '" + input + "'", expectedIndex, ppos.getIndex()); in TestSpaceParsingStrict() 511 … assertEquals("Failed on error: '" + input + "'", expectedErrorIndex, ppos.getErrorIndex()); in TestSpaceParsingStrict() 632 ParsePosition ppos = new ParsePosition(0); in TestMismatchedCurrencyFormatFail() local 633 df.parse("1.23\u20AC", ppos); in TestMismatchedCurrencyFormatFail() 634 assertEquals("Should fail to parse", 0, ppos.getIndex()); in TestMismatchedCurrencyFormatFail() 637 ParsePosition ppos = new ParsePosition(0); in TestMismatchedCurrencyFormatFail() local 638 df.parseCurrency("1.23\u20AC", ppos); in TestMismatchedCurrencyFormatFail() 639 assertEquals("Should fail to parse currency", 0, ppos.getIndex()); in TestMismatchedCurrencyFormatFail() [all …]
|
D | IntlTestDateFormatAPIC.java | 54 ParsePosition ppos = new ParsePosition(0); in TestNameHiding() local 80 sdf.parse(str, ppos); in TestNameHiding() 110 Number obj = fmt.parse(str, ppos); in TestNameHiding()
|
D | TimeUnitTest.java | 52 ParsePosition ppos = new ParsePosition(0); in Test10219FactionalPluralsParse() local 54 tuf.parseObject(parseString, ppos); in Test10219FactionalPluralsParse() 59 assertEquals("Test10219FractionalPluralParse", parseString.length(), ppos.getIndex()); in Test10219FactionalPluralsParse()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | NumberFormatDataDrivenTest.java | 48 private static String compareParseResult(String expected, Number actual, ParsePosition ppos) { in compareParseResult() argument 49 if (actual == null && ppos.getIndex() != 0) { in compareParseResult() 52 if (ppos.getIndex() == 0) { in compareParseResult() 101 ParsePosition ppos) { in compareParseCurrencyResult() argument 102 if (ppos.getIndex() == 0 || actual.getCurrency().getCurrencyCode().equals("XXX")) { in compareParseCurrencyResult() 162 ParsePosition ppos = new ParsePosition(0); 163 Number actual = fmt.parse(tuple.parse, ppos); 164 return compareParseResult(tuple.output, actual, ppos); 170 ParsePosition ppos = new ParsePosition(0); 171 CurrencyAmount actual = fmt.parseCurrency(tuple.parse, ppos); [all …]
|
D | NumberFormatJavaCompatilityTest.java | 99 ParsePosition ppos = new ParsePosition(0); in assertParsedICU4J() local 100 Number actual = df.parse(input, ppos); in assertParsedICU4J() 108 ParsePosition ppos = new ParsePosition(0); in assertParsedOpenJDK() local 109 Number actual = df.parse(input, ppos); in assertParsedOpenJDK()
|
D | NumberFormatTest.java | 511 ParsePosition ppos = new ParsePosition(0); in TestSpaceParsingStrict() local 512 df.parse(input, ppos); in TestSpaceParsingStrict() 513 assertEquals("Failed on index: '" + input + "'", expectedIndex, ppos.getIndex()); in TestSpaceParsingStrict() 514 … assertEquals("Failed on error: '" + input + "'", expectedErrorIndex, ppos.getErrorIndex()); in TestSpaceParsingStrict() 635 ParsePosition ppos = new ParsePosition(0); in TestMismatchedCurrencyFormatFail() local 636 df.parse("1.23\u20AC", ppos); in TestMismatchedCurrencyFormatFail() 637 assertEquals("Should fail to parse", 0, ppos.getIndex()); in TestMismatchedCurrencyFormatFail() 640 ParsePosition ppos = new ParsePosition(0); in TestMismatchedCurrencyFormatFail() local 641 df.parseCurrency("1.23\u20AC", ppos); in TestMismatchedCurrencyFormatFail() 642 assertEquals("Should fail to parse currency", 0, ppos.getIndex()); in TestMismatchedCurrencyFormatFail() [all …]
|
D | IntlTestDateFormatAPIC.java | 57 ParsePosition ppos = new ParsePosition(0); in TestNameHiding() local 83 sdf.parse(str, ppos); in TestNameHiding() 113 Number obj = fmt.parse(str, ppos); in TestNameHiding()
|
D | TimeUnitTest.java | 55 ParsePosition ppos = new ParsePosition(0); in Test10219FactionalPluralsParse() local 57 tuf.parseObject(parseString, ppos); in Test10219FactionalPluralsParse() 62 assertEquals("Test10219FractionalPluralParse", parseString.length(), ppos.getIndex()); in Test10219FactionalPluralsParse()
|
/external/icu/icu4c/source/test/intltest/ |
D | numfmtdatadriventest.cpp | 339 ParsePosition ppos; in isParsePass() local 340 fmtPtr->parse(tuple.parse, result, ppos); in isParsePass() 341 if (ppos.getIndex() == 0) { in isParsePass() 343 appendErrorMessage = appendErrorMessage + ppos.getErrorIndex(); in isParsePass() 392 actualString + " (" + ppos.getIndex() + ":" + ppos.getErrorIndex() + ")"); in isParsePass() 414 ParsePosition ppos; in isParseCurrencyPass() local 416 fmtPtr->parseCurrency(tuple.parse, ppos)); in isParseCurrencyPass() 417 if (ppos.getIndex() == 0) { in isParseCurrencyPass() 419 appendErrorMessage = appendErrorMessage + ppos.getErrorIndex(); in isParseCurrencyPass() 444 resultStr + " (" + ppos.getIndex() + ":" + ppos.getErrorIndex() + ")"); in isParseCurrencyPass()
|
D | dtfmapts.cpp | 291 ParsePosition ppos; in TestNameHiding() local 319 sdf.parse(str, ppos); in TestNameHiding() 354 fmt.parse(str, obj, ppos); in TestNameHiding() 374 fmt.parse(str, obj, ppos); in TestNameHiding()
|
D | numfmtst.cpp | 295 ParsePosition ppos; in TestAPI() local 296 LocalPointer<CurrencyAmount> currAmt(test->parseCurrency("",ppos)); in TestAPI() 298 if (ppos.getIndex()) { in TestAPI() 3111 ParsePosition ppos; in expectParseCurrency() local 3113 LocalPointer<CurrencyAmount> currencyAmount(fmt.parseCurrency(utext, ppos)); in expectParseCurrency() 3114 if (!ppos.getIndex()) { in expectParseCurrency() 3768 ParsePosition ppos; in TestMismatchedCurrencyFormatFail() local 3769 df->parseCurrency(u"1.23\u20AC", ppos); in TestMismatchedCurrencyFormatFail() 3770 assertEquals("Should fail to parse currency", 0, ppos.getIndex()); in TestMismatchedCurrencyFormatFail() 7661 ParsePosition ppos; in TestParseNegativeWithFaLocale() local [all …]
|
/external/icu/icu4c/source/i18n/ |
D | numparse_currency.cpp | 135 ParsePosition ppos(0); in matchCurrency() local 140 ppos, in matchCurrency() 147 if (U_SUCCESS(status) && ppos.getIndex() != 0) { in matchCurrency() 150 segment.adjustOffset(ppos.getIndex()); in matchCurrency()
|
D | tridpars.cpp | 278 ParsePosition ppos(pos); in parseGlobalFilter() local 280 filter = new UnicodeSet(id, ppos, USET_IGNORE_SPACE, NULL, ec); in parseGlobalFilter() 293 id.extractBetween(pos, ppos.getIndex(), pattern); in parseGlobalFilter() 294 pos = ppos.getIndex(); in parseGlobalFilter() 729 ParsePosition ppos(pos); in parseFilterID() local 731 UnicodeSet set(id, ppos, USET_IGNORE_SPACE, NULL, ec); in parseFilterID() 736 id.extractBetween(pos, ppos.getIndex(), filter); in parseFilterID() 737 pos = ppos.getIndex(); in parseFilterID()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | TransliteratorIDParser.java | 286 ParsePosition ppos = new ParsePosition(pos[0]); in parseGlobalFilter() local 288 filter = new UnicodeSet(id, ppos, null); in parseGlobalFilter() 294 String pattern = id.substring(pos[0], ppos.getIndex()); in parseGlobalFilter() 295 pos[0] = ppos.getIndex(); in parseGlobalFilter() 617 ParsePosition ppos = new ParsePosition(pos[0]); in parseFilterID() local 619 new UnicodeSet(id, ppos, null); in parseFilterID() 620 filter = id.substring(pos[0], ppos.getIndex()); in parseFilterID() 621 pos[0] = ppos.getIndex(); in parseFilterID()
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
D | TransliteratorIDParser.java | 285 ParsePosition ppos = new ParsePosition(pos[0]); in parseGlobalFilter() local 287 filter = new UnicodeSet(id, ppos, null); in parseGlobalFilter() 293 String pattern = id.substring(pos[0], ppos.getIndex()); in parseGlobalFilter() 294 pos[0] = ppos.getIndex(); in parseGlobalFilter() 616 ParsePosition ppos = new ParsePosition(pos[0]); in parseFilterID() local 618 new UnicodeSet(id, ppos, null); in parseFilterID() 619 filter = id.substring(pos[0], ppos.getIndex()); in parseFilterID() 620 pos[0] = ppos.getIndex(); in parseFilterID()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | NumberParserImpl.java | 82 ParsePosition ppos, in parseStatic() argument 89 ppos.setIndex(result.charEnd); in parseStatic() 92 ppos.setErrorIndex(result.charEnd); in parseStatic() 102 ParsePosition ppos, in parseStaticCurrency() argument 109 ppos.setIndex(result.charEnd); in parseStaticCurrency() 113 ppos.setErrorIndex(result.charEnd); in parseStaticCurrency()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | NumberParserImpl.java | 80 ParsePosition ppos, in parseStatic() argument 87 ppos.setIndex(result.charEnd); in parseStatic() 90 ppos.setErrorIndex(result.charEnd); in parseStatic() 100 ParsePosition ppos, in parseStaticCurrency() argument 107 ppos.setIndex(result.charEnd); in parseStaticCurrency() 111 ppos.setErrorIndex(result.charEnd); in parseStaticCurrency()
|
/external/icu/icu4c/source/test/cintltst/ |
D | cnmdptst.c | 192 int32_t ppos; in TestExponential() local 287 ppos=0; in TestExponential() 288 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status); in TestExponential() 289 if (ppos== u_strlen(str)) { in TestExponential() 294 log_err(" FAIL: Partial parse ( %d chars ) -> %e\n", ppos, a); in TestExponential() 317 ppos=0; in TestExponential() 318 a=unum_parseDouble(fmt, str, u_strlen(str), &ppos, &status); in TestExponential() 319 if (ppos== u_strlen(str)) { in TestExponential() 325 log_err(" FAIL: Partial parse ( %d chars ) -> %e\n", ppos, a); in TestExponential()
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | C_P_A_L_.py | 36 ppos = goffsetFirstColorRecord + startIndex * 4 38 palette.append( Color(*struct.unpack(">BBBB", data[ppos:ppos+4])) ) 39 ppos += 4
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | ikev2.c | 203 const u8 *pend, *ppos; in ikev2_parse_proposal() local 250 ppos = (const u8 *) (p + 1); in ikev2_parse_proposal() 252 if (p->spi_size > pend - ppos) { in ikev2_parse_proposal() 259 ppos, p->spi_size); in ikev2_parse_proposal() 260 ppos += p->spi_size; in ikev2_parse_proposal() 280 int tlen = ikev2_parse_transform(prop, ppos, pend); in ikev2_parse_proposal() 283 ppos += tlen; in ikev2_parse_proposal() 286 if (ppos != pend) { in ikev2_parse_proposal()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | ikev2.c | 213 const u8 *pend, *ppos; in ikev2_parse_proposal() local 257 ppos = (const u8 *) (p + 1); in ikev2_parse_proposal() 259 if (p->spi_size > pend - ppos) { in ikev2_parse_proposal() 266 ppos, p->spi_size); in ikev2_parse_proposal() 267 ppos += p->spi_size; in ikev2_parse_proposal() 286 int tlen = ikev2_parse_transform(data, prop, ppos, pend); in ikev2_parse_proposal() 289 ppos += tlen; in ikev2_parse_proposal() 292 if (ppos != pend) { in ikev2_parse_proposal()
|
/external/python/cpython2/Doc/c-api/ |
D | dict.rst | 151 .. c:function:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) 154 :c:type:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` 160 them are borrowed. *ppos* should not be altered during iteration. Its 195 This function used an :c:type:`int *` type for *ppos*. This might require
|