ICU 50.1.2  50.1.2
parseerr.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (C) 1999-2005, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Date Name Description
7 * 03/14/00 aliu Creation.
8 * 06/27/00 aliu Change from C++ class to C struct
9 **********************************************************************
10 */
11 #ifndef PARSEERR_H
12 #define PARSEERR_H
13 
14 #include "unicode/utypes.h"
15 
16 
25 enum { U_PARSE_CONTEXT_LEN = 16 };
26 
56 typedef struct UParseError {
57 
65  int32_t line;
66 
74  int32_t offset;
75 
81  UChar preContext[U_PARSE_CONTEXT_LEN];
82 
88  UChar postContext[U_PARSE_CONTEXT_LEN];
89 
90 } UParseError;
91 
92 #endif
UChar preContext[U_PARSE_CONTEXT_LEN]
Textual context before the error.
Definition: parseerr.h:81
int32_t offset
The character offset to the error.
Definition: parseerr.h:74
UChar postContext[U_PARSE_CONTEXT_LEN]
The error itself and/or textual context after the error.
Definition: parseerr.h:88
int32_t line
The line on which the error occured.
Definition: parseerr.h:65
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
Definition: umachine.h:278
A UParseError struct is used to returned detailed information about parsing errors.
Definition: parseerr.h:56
Basic definitions for ICU, for both C and C++ APIs.
struct UParseError UParseError
A UParseError struct is used to returned detailed information about parsing errors.