1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 3 /* 4 ******************************************************************************* 5 * Copyright (C) 2010, International Business Machines Corporation and * 6 * others. All Rights Reserved. * 7 ******************************************************************************* 8 */ 9 package com.ibm.icu.impl.locale; 10 11 public class ParseStatus { 12 int _parseLength = 0; 13 int _errorIndex = -1; 14 String _errorMsg = null; 15 reset()16 public void reset() { 17 _parseLength = 0; 18 _errorIndex = -1; 19 _errorMsg = null; 20 } 21 isError()22 public boolean isError() { 23 return (_errorIndex >= 0); 24 } 25 getErrorIndex()26 public int getErrorIndex() { 27 return _errorIndex; 28 } 29 getParseLength()30 public int getParseLength() { 31 return _parseLength; 32 } 33 getErrorMessage()34 public String getErrorMessage() { 35 return _errorMsg; 36 } 37 } 38