]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_8_1_1/main/classes/core/src/com/ibm/icu/impl/locale/ParseStatus.java
Added flags.
[Dictionary.git] / jars / icu4j-4_8_1_1 / main / classes / core / src / com / ibm / icu / impl / locale / ParseStatus.java
1 /*
2  *******************************************************************************
3  * Copyright (C) 2010, International Business Machines Corporation and         *
4  * others. All Rights Reserved.                                                *
5  *******************************************************************************
6  */
7 package com.ibm.icu.impl.locale;
8
9 public class ParseStatus {
10     int _parseLength = 0;
11     int _errorIndex = -1;
12     String _errorMsg = null;
13
14     public void reset() {
15         _parseLength = 0;
16         _errorIndex = -1;
17         _errorMsg = null;
18     }
19
20     public boolean isError() {
21         return (_errorIndex >= 0);
22     }
23
24     public int getErrorIndex() {
25         return _errorIndex;
26     }
27
28     public int getParseLength() {
29         return _parseLength;
30     }
31
32     public String getErrorMessage() {
33         return _errorMsg;
34     }
35 }