HomeSort by relevance Sort by last modified time
    Searched refs:parsePosition (Results 1 - 25 of 73) sorted by null

1 2 3

  /external/icu/android_icu4j/src/main/java/android/icu/text/
NFSubstitution.java 10 import java.text.ParsePosition;
385 * @param parsePosition On entry, ignored, but assumed to be 0.
403 * no match this is new Long(0) (not null), and parsePosition
406 public Number doParse(String text, ParsePosition parsePosition, double baseValue,
425 tempResult = ruleSet.parse(text, parsePosition, upperBound);
426 if (lenientParse && !ruleSet.isFractionSet() && parsePosition.getIndex() == 0) {
427 tempResult = ruleSet.owner.getDecimalFormat().parse(text, parsePosition);
432 tempResult = numberFormat.parse(text, parsePosition);
439 if (parsePosition.getIndex() != 0)
    [all...]
NFRuleSet.java 10 import java.text.ParsePosition;
735 * @param parsePosition The initial position is ignored and assumed
750 public Number parse(String text, ParsePosition parsePosition, double upperBound) {
755 ParsePosition highWaterMark = new ParsePosition(0);
767 tempResult = fractionRule.doParse(text, parsePosition, false, upperBound);
768 if (parsePosition.getIndex() > highWaterMark.getIndex()) {
770 highWaterMark.setIndex(parsePosition.getIndex());
772 // commented out because the error-index API on ParsePosition isn't there in 1.1.
    [all...]
NumberFormat.java 19 import java.text.ParsePosition;
127 * methods with <code>ParsePosition</code> and <code>FieldPosition</code> to
270 * @param parsePosition the position at which to start the parse
272 * @see java.text.NumberFormat#parseObject(String, ParsePosition)
276 ParsePosition parsePosition) {
277 return parse(source, parsePosition);
393 * @see java.text.Format#parseObject(String, ParsePosition)
395 public abstract Number parse(String text, ParsePosition parsePosition);
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
NFSubstitution.java 9 import java.text.ParsePosition;
384 * @param parsePosition On entry, ignored, but assumed to be 0.
402 * no match this is new Long(0) (not null), and parsePosition
405 public Number doParse(String text, ParsePosition parsePosition, double baseValue,
424 tempResult = ruleSet.parse(text, parsePosition, upperBound);
425 if (lenientParse && !ruleSet.isFractionSet() && parsePosition.getIndex() == 0) {
426 tempResult = ruleSet.owner.getDecimalFormat().parse(text, parsePosition);
431 tempResult = numberFormat.parse(text, parsePosition);
438 if (parsePosition.getIndex() != 0)
    [all...]
NFRuleSet.java 9 import java.text.ParsePosition;
734 * @param parsePosition The initial position is ignored and assumed
749 public Number parse(String text, ParsePosition parsePosition, double upperBound) {
754 ParsePosition highWaterMark = new ParsePosition(0);
766 tempResult = fractionRule.doParse(text, parsePosition, false, upperBound);
767 if (parsePosition.getIndex() > highWaterMark.getIndex()) {
769 highWaterMark.setIndex(parsePosition.getIndex());
771 // commented out because the error-index API on ParsePosition isn't there in 1.1.
    [all...]
NumberFormat.java 18 import java.text.ParsePosition;
126 * methods with <code>ParsePosition</code> and <code>FieldPosition</code> to
283 * @param parsePosition the position at which to start the parse
285 * @see java.text.NumberFormat#parseObject(String, ParsePosition)
290 ParsePosition parsePosition) {
291 return parse(source, parsePosition);
419 * @see java.text.Format#parseObject(String, ParsePosition)
422 public abstract Number parse(String text, ParsePosition parsePosition);
    [all...]
  /external/icu/icu4c/source/i18n/
format.cpp 15 * 07/20/98 stephen Added explicit init values for Field/ParsePosition
147 ParsePosition parsePosition(0);
148 parseObject(source, result, parsePosition);
149 if (parsePosition.getIndex() == 0) {
nfsubs.cpp 156 ParsePosition& parsePosition,
222 ParsePosition& parsePosition,
293 ParsePosition& parsePosition,
652 * @param parsePosition On entry, ignored, but assumed to be 0.
670 * no match this is new Long(0) (not null), and parsePosition
675 ParsePosition& parsePosition,
    [all...]
winnmfmt.h 99 virtual void parse(const UnicodeString& text, Formattable& result, ParsePosition& parsePosition) const;
decimfmt.cpp 22 * 07/09/97 helena Made ParsePosition into a class.
885 ParsePosition& parsePosition) const {
886 parse(text, result, parsePosition, NULL);
890 ParsePosition& pos) const {
911 * @param parsePosition input-output position; on input, the
923 ParsePosition& parsePosition,
    [all...]
nfsubs.h 166 * @param parsePosition On entry, ignored, but assumed to be 0.
184 * no match this is new Long(0) (not null), and parsePosition
188 ParsePosition& parsePosition,
nfrule.cpp     [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
BigFractionFormat.java 25 import java.text.ParsePosition;
193 final ParsePosition parsePosition = new ParsePosition(0);
194 final BigFraction result = parse(source, parsePosition);
195 if (parsePosition.getIndex() == 0) {
197 parsePosition.getErrorIndex(),
211 public BigFraction parse(final String source, final ParsePosition pos) {
271 final ParsePosition pos) {
FractionFormat.java 23 import java.text.ParsePosition;
204 final ParsePosition parsePosition = new ParsePosition(0);
205 final Fraction result = parse(source, parsePosition);
206 if (parsePosition.getIndex() == 0) {
208 parsePosition.getErrorIndex(),
222 public Fraction parse(final String source, final ParsePosition pos) {
  /external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
RealVectorFormat.java 23 import java.text.ParsePosition;
263 ParsePosition parsePosition = new ParsePosition(0);
264 ArrayRealVector result = parse(source, parsePosition);
265 if (parsePosition.getIndex() == 0) {
267 parsePosition.getErrorIndex(),
279 public ArrayRealVector parse(String source, ParsePosition pos) {
334 * @see java.text.Format#parseObject(java.lang.String, java.text.ParsePosition)
337 public Object parseObject(String source, ParsePosition pos)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DateUtils.java 24 import java.text.ParsePosition;
74 ParsePosition parsePosition = new ParsePosition(0);
83 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition);
85 noYearParsed = parsePosition.getIndex() == string.length();
95 parsePosition.setIndex(0);
96 date = f.parse(string, parsePosition);
97 if (parsePosition.getIndex() == string.length()) {
  /external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
RbnfDemo.java 42 import java.text.ParsePosition;
89 parsePosition = new ParsePosition(0);
106 parsePosition.setIndex(0);
107 Number temp = numberFormatter.parse(fieldText, parsePosition);
108 if (temp == null || parsePosition.getIndex() == 0) {
135 parsePosition.setIndex(0);
136 theNumber = spelloutFormatter.parse(fieldText, parsePosition)
138 if (parsePosition.getIndex() == 0) {
143 else if (parsePosition.getIndex() < fieldText.length())
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
ComplexFormat.java 23 import java.text.ParsePosition;
255 ParsePosition parsePosition = new ParsePosition(0);
256 Complex result = parse(source, parsePosition);
257 if (parsePosition.getIndex() == 0) {
259 parsePosition.getErrorIndex(),
272 public Complex parse(String source, ParsePosition pos) {
338 * @see java.text.Format#parseObject(java.lang.String, java.text.ParsePosition)
341 public Object parseObject(String source, ParsePosition pos)
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/
Vector3DFormat.java 23 import java.text.ParsePosition;
258 ParsePosition parsePosition = new ParsePosition(0);
259 Vector3D result = parse(source, parsePosition);
260 if (parsePosition.getIndex() == 0) {
262 parsePosition.getErrorIndex(),
274 public Vector3D parse(String source, ParsePosition pos) {
336 * @see java.text.Format#parseObject(java.lang.String, java.text.ParsePosition)
339 public Object parseObject(String source, ParsePosition pos)
    [all...]
  /libcore/ojluni/src/main/java/java/text/
NumberFormat.java 145 * methods with <code>ParsePosition</code> and <code>FieldPosition</code> to
266 * See the {@link #parse(String, ParsePosition)} method for more information
270 * @param pos A <code>ParsePosition</code> object with index and error
276 public final Object parseObject(String source, ParsePosition pos) {
333 public abstract Number parse(String source, ParsePosition parsePosition);
339 * See the {@link #parse(String, ParsePosition)} method for more information
348 ParsePosition parsePosition = new ParsePosition(0)
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
DateNumberFormat.java 14 import java.text.ParsePosition;
199 public Number parse(String text, ParsePosition parsePosition) {
203 int base = parsePosition.getIndex();
236 parsePosition.setIndex(base + offset);
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DateNumberFormat.java 13 import java.text.ParsePosition;
195 public Number parse(String text, ParsePosition parsePosition) {
199 int base = parsePosition.getIndex();
232 parsePosition.setIndex(base + offset);
  /external/icu/icu4c/source/i18n/unicode/
choicfmt.h 430 * If no string matches, then the parsePosition is unchanged.
435 * @param parsePosition The position to start parsing at on input.
442 ParsePosition& parsePosition) const;
511 const UnicodeString &source, ParsePosition &pos);
compactdecimalformat.h 326 * @param parsePosition Does not change.
332 ParsePosition& parsePosition) const;
368 ParsePosition& pos) const;
  /external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
NumberFormatJDK.java 13 import java.text.ParsePosition;
198 public Number parse(String text, ParsePosition parsePosition) {
199 return fJdkNfmt.parse(text, parsePosition);
202 //public Object parseObject(String source, ParsePosition parsePosition)

Completed in 741 milliseconds

1 2 3