#include "unicode/utypes.h"
Go to the source code of this file.
Compounds | |
struct | UParseError |
A UParseError struct is used to returned detailed information about parsing errors. More... | |
Typedefs | |
typedef UParseError | UParseError |
A UParseError struct is used to returned detailed information about parsing errors. More... | |
Enumerations | |
enum | { U_PARSE_CONTEXT_LEN = 16 } |
The capacity of the context strings in UParseError. More... |
|
A UParseError struct is used to returned detailed information about parsing errors. It is used by ICU parsing engines that parse long rules, patterns, or programs, where the text being parsed is long enough that more information than a UErrorCode is needed to localize the error.
The code field is an integer error code specific to each parsing engine, but globally unique. See the engine header file for possible values. The line, offset, and context fields are optional; parsing engines may choose not to use to use them.
Examples of engines which use UParseError (or may use it in the future) are RuleBasedTransliterator and RuleBasedBreakIterator.
|
|
The capacity of the context strings in UParseError.
Definition at line 21 of file parseerr.h. |