• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GENERATED SOURCE. DO NOT MODIFY. */
2 // © 2016 and later: Unicode, Inc. and others.
3 // License & terms of use: http://www.unicode.org/copyright.html#License
4 /*
5  *******************************************************************************
6  * Copyright (C) 2010, International Business Machines Corporation and         *
7  * others. All Rights Reserved.                                                *
8  *******************************************************************************
9  */
10 package ohos.global.icu.impl.locale;
11 
12 /**
13  * @hide exposed on OHOS
14  */
15 public class ParseStatus {
16     int _parseLength = 0;
17     int _errorIndex = -1;
18     String _errorMsg = null;
19 
reset()20     public void reset() {
21         _parseLength = 0;
22         _errorIndex = -1;
23         _errorMsg = null;
24     }
25 
isError()26     public boolean isError() {
27         return (_errorIndex >= 0);
28     }
29 
getErrorIndex()30     public int getErrorIndex() {
31         return _errorIndex;
32     }
33 
getParseLength()34     public int getParseLength() {
35         return _parseLength;
36     }
37 
getErrorMessage()38     public String getErrorMessage() {
39         return _errorMsg;
40     }
41 }
42