Home
last modified time | relevance | path

Searched refs:parsePosition (Results 1 – 25 of 55) sorted by relevance

123

/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFSubstitution.java406 public Number doParse(String text, ParsePosition parsePosition, double baseValue, in doParse() argument
425 tempResult = ruleSet.parse(text, parsePosition, upperBound); in doParse()
426 if (lenientParse && !ruleSet.isFractionSet() && parsePosition.getIndex() == 0) { in doParse()
427 tempResult = ruleSet.owner.getDecimalFormat().parse(text, parsePosition); in doParse()
432 tempResult = numberFormat.parse(text, parsePosition); in doParse()
439 if (parsePosition.getIndex() != 0) { in doParse()
957 public Number doParse(String text, ParsePosition parsePosition, double baseValue, in doParse() argument
962 return super.doParse(text, parsePosition, baseValue, upperBound, lenientParse); in doParse()
968 Number tempResult = ruleToUse.doParse(text, parsePosition, false, upperBound); in doParse()
970 if (parsePosition.getIndex() != 0) { in doParse()
[all …]
DNFRuleSet.java750 public Number parse(String text, ParsePosition parsePosition, double upperBound) { in parse() argument
767 tempResult = fractionRule.doParse(text, parsePosition, false, upperBound); in parse()
768 if (parsePosition.getIndex() > highWaterMark.getIndex()) { in parse()
770 highWaterMark.setIndex(parsePosition.getIndex()); in parse()
776 parsePosition.setIndex(0); in parse()
794 tempResult = rules[i].doParse(text, parsePosition, isFractionRuleSet, upperBound); in parse()
795 if (parsePosition.getIndex() > highWaterMark.getIndex()) { in parse()
797 highWaterMark.setIndex(parsePosition.getIndex()); in parse()
803 parsePosition.setIndex(0); in parse()
809 parsePosition.setIndex(highWaterMark.getIndex()); in parse()
DNumberFormat.java276 ParsePosition parsePosition) { in parseObject() argument
277 return parse(source, parsePosition); in parseObject()
395 public abstract Number parse(String text, ParsePosition parsePosition); in parse() argument
409 ParsePosition parsePosition = new ParsePosition(0); in parse() local
410 Number result = parse(text, parsePosition); in parse()
411 if (parsePosition.getIndex() == 0) { in parse()
413 parsePosition.getErrorIndex()); in parse()
DDecimalFormat.java1942 public Number parse(String text, ParsePosition parsePosition) {
1943 return (Number) parse(text, parsePosition, null);
1977 private Object parse(String text, ParsePosition parsePosition, Currency[] currency) {
1979 int i = backup = parsePosition.getIndex();
1995 parsePosition.setIndex(i);
2004 if (!parseForCurrency(text, parsePosition, currency, status)) {
2008 if (!subparse(text, parsePosition, digitList, status, currency, negPrefixPattern,
2011 parsePosition.setIndex(backup);
2080 private boolean parseForCurrency(String text, ParsePosition parsePosition,
2082 int origPos = parsePosition.getIndex();
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFSubstitution.java405 public Number doParse(String text, ParsePosition parsePosition, double baseValue, in doParse() argument
424 tempResult = ruleSet.parse(text, parsePosition, upperBound); in doParse()
425 if (lenientParse && !ruleSet.isFractionSet() && parsePosition.getIndex() == 0) { in doParse()
426 tempResult = ruleSet.owner.getDecimalFormat().parse(text, parsePosition); in doParse()
431 tempResult = numberFormat.parse(text, parsePosition); in doParse()
438 if (parsePosition.getIndex() != 0) { in doParse()
956 public Number doParse(String text, ParsePosition parsePosition, double baseValue, in doParse() argument
961 return super.doParse(text, parsePosition, baseValue, upperBound, lenientParse); in doParse()
967 Number tempResult = ruleToUse.doParse(text, parsePosition, false, upperBound); in doParse()
969 if (parsePosition.getIndex() != 0) { in doParse()
[all …]
DNFRuleSet.java749 public Number parse(String text, ParsePosition parsePosition, double upperBound) { in parse() argument
766 tempResult = fractionRule.doParse(text, parsePosition, false, upperBound); in parse()
767 if (parsePosition.getIndex() > highWaterMark.getIndex()) { in parse()
769 highWaterMark.setIndex(parsePosition.getIndex()); in parse()
775 parsePosition.setIndex(0); in parse()
793 tempResult = rules[i].doParse(text, parsePosition, isFractionRuleSet, upperBound); in parse()
794 if (parsePosition.getIndex() > highWaterMark.getIndex()) { in parse()
796 highWaterMark.setIndex(parsePosition.getIndex()); in parse()
802 parsePosition.setIndex(0); in parse()
808 parsePosition.setIndex(highWaterMark.getIndex()); in parse()
DNumberFormat.java290 ParsePosition parsePosition) { in parseObject() argument
291 return parse(source, parsePosition); in parseObject()
422 public abstract Number parse(String text, ParsePosition parsePosition); in parse() argument
437 ParsePosition parsePosition = new ParsePosition(0); in parse() local
438 Number result = parse(text, parsePosition); in parse()
439 if (parsePosition.getIndex() == 0) { in parse()
441 parsePosition.getErrorIndex()); in parse()
DDecimalFormat.java1955 public Number parse(String text, ParsePosition parsePosition) {
1956 return (Number) parse(text, parsePosition, null);
1991 private Object parse(String text, ParsePosition parsePosition, Currency[] currency) {
1993 int i = backup = parsePosition.getIndex();
2009 parsePosition.setIndex(i);
2018 if (!parseForCurrency(text, parsePosition, currency, status)) {
2022 if (!subparse(text, parsePosition, digitList, status, currency, negPrefixPattern,
2025 parsePosition.setIndex(backup);
2094 private boolean parseForCurrency(String text, ParsePosition parsePosition,
2096 int origPos = parsePosition.getIndex();
[all …]
/external/icu/icu4c/source/i18n/
Dnfsubs.cpp156 ParsePosition& parsePosition,
222 ParsePosition& parsePosition,
293 ParsePosition& parsePosition,
675 ParsePosition& parsePosition, in doParse() argument
699 ruleSet->parse(text, parsePosition, upperBound, result); in doParse()
700 if (lenientParse && !ruleSet->isFractionRuleSet() && parsePosition.getIndex() == 0) { in doParse()
704 fmt->parse(text, result, parsePosition); in doParse()
711 numberFormat->parse(text, result, parsePosition); in doParse()
718 if (parsePosition.getIndex() != 0) { in doParse()
919 ParsePosition& parsePosition, in doParse() argument
[all …]
Ddecimfmt.cpp885 ParsePosition& parsePosition) const { in parse()
886 parse(text, result, parsePosition, NULL); in parse()
923 ParsePosition& parsePosition, in parse() argument
926 int32_t i = startIdx = backup = parsePosition.getIndex(); in parse()
961 parsePosition.setIndex(i); in parse()
968 parsePosition.setIndex(i); in parse()
979 if (!parseForCurrency(text, parsePosition, *digits, in parse()
990 parsePosition, *digits, status, currency)) { in parse()
992 parsePosition.setIndex(startIdx); in parse()
1041 ParsePosition& parsePosition, in parseForCurrency() argument
[all …]
Dformat.cpp147 ParsePosition parsePosition(0); in parseObject() local
148 parseObject(source, result, parsePosition); in parseObject()
149 if (parsePosition.getIndex() == 0) { in parseObject()
Dnfrule.cpp891 ParsePosition& parsePosition, in doParse() argument
934 parsePosition.setErrorIndex(pp.getErrorIndex()); in doParse()
940 parsePosition.setIndex(pp.getIndex()); in doParse()
946 parsePosition.setIndex(pp.getIndex()); in doParse()
1031 if (temp> parsePosition.getErrorIndex()) { in doParse()
1032 parsePosition.setErrorIndex(temp); in doParse()
1040 if (temp > parsePosition.getErrorIndex()) { in doParse()
1041 parsePosition.setErrorIndex(temp); in doParse()
1056 parsePosition.setIndex(highWaterMark); in doParse()
1060 parsePosition.setErrorIndex(0); in doParse()
Dwinnmfmt.h99 …virtual void parse(const UnicodeString& text, Formattable& result, ParsePosition& parsePosition) c…
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfDemo.java89 parsePosition = new ParsePosition(0); in createDemoFrame()
106 parsePosition.setIndex(0); in createDemoFrame()
107 Number temp = numberFormatter.parse(fieldText, parsePosition); in createDemoFrame()
108 if (temp == null || parsePosition.getIndex() == 0) { in createDemoFrame()
135 parsePosition.setIndex(0); in createDemoFrame()
136 theNumber = spelloutFormatter.parse(fieldText, parsePosition) in createDemoFrame()
138 if (parsePosition.getIndex() == 0) { in createDemoFrame()
143 else if (parsePosition.getIndex() < fieldText.length()) { in createDemoFrame()
144 textField.select(parsePosition.getIndex(), fieldText.length()); in createDemoFrame()
159 parsePosition.setIndex(0); in createDemoFrame()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFractionFormat.java204 final ParsePosition parsePosition = new ParsePosition(0); in parse() local
205 final Fraction result = parse(source, parsePosition); in parse()
206 if (parsePosition.getIndex() == 0) { in parse()
208 parsePosition.getErrorIndex(), in parse()
DBigFractionFormat.java193 final ParsePosition parsePosition = new ParsePosition(0); in parse() local
194 final BigFraction result = parse(source, parsePosition); in parse()
195 if (parsePosition.getIndex() == 0) { in parse()
197 parsePosition.getErrorIndex(), in parse()
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DRealVectorFormat.java263 ParsePosition parsePosition = new ParsePosition(0); in parse() local
264 ArrayRealVector result = parse(source, parsePosition); in parse()
265 if (parsePosition.getIndex() == 0) { in parse()
267 parsePosition.getErrorIndex(), in parse()
/external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/
DVector3DFormat.java258 ParsePosition parsePosition = new ParsePosition(0); in parse() local
259 Vector3D result = parse(source, parsePosition); in parse()
260 if (parsePosition.getIndex() == 0) { in parse()
262 parsePosition.getErrorIndex(), in parse()
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
DComplexFormat.java255 ParsePosition parsePosition = new ParsePosition(0); in parse() local
256 Complex result = parse(source, parsePosition); in parse()
257 if (parsePosition.getIndex() == 0) { in parse()
259 parsePosition.getErrorIndex(), in parse()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DDateNumberFormat.java195 public Number parse(String text, ParsePosition parsePosition) { in parse() argument
199 int base = parsePosition.getIndex(); in parse()
232 parsePosition.setIndex(base + offset); in parse()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DDateNumberFormat.java199 public Number parse(String text, ParsePosition parsePosition) { in parse() argument
203 int base = parsePosition.getIndex(); in parse()
236 parsePosition.setIndex(base + offset); in parse()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DNumberFormat.java260 ParsePosition parsePosition) { in parseObject() argument
261 return numberFormat.parse(source, parsePosition); in parseObject()
409 public Number parse(String text, ParsePosition parsePosition) { in parse() argument
410 return numberFormat.parse(text, parsePosition); in parse()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java160 public Number parse(String source, ParsePosition parsePosition) { in parse() argument
161 return fIcuNfmt.parse(source, parsePosition); in parse()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DNumberFormatJDK.java198 public Number parse(String text, ParsePosition parsePosition) { in parse() argument
199 return fJdkNfmt.parse(text, parsePosition); in parse()
/external/icu/icu4c/source/i18n/unicode/
Ddecimfmt.h1196 ParsePosition& parsePosition) const;
2120 ParsePosition& parsePosition,
2130 ParsePosition& parsePosition,

123