Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

parseerr.h File Reference

#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...


Typedef Documentation

typedef struct _UParseError UParseError
 

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.

Draft:
This API has been introduced in ICU 2.0. It is still in draft state and may be modified in a future release.


Enumeration Type Documentation

anonymous enum
 

The capacity of the context strings in UParseError.

Draft:
This API has been introduced in ICU 2.0. It is still in draft state and may be modified in a future release.
Enumeration values:
U_PARSE_CONTEXT_LEN 

Definition at line 21 of file parseerr.h.


Generated on Mon Dec 3 19:00:29 2001 for ICU 2.0 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001