ICU 71.1 71.1

parseerr.h
Go to the documentation of this file.
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 **********************************************************************
5 * Copyright (C) 1999-2005, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
8 * Date Name Description
9 * 03/14/00 aliu Creation.
10 * 06/27/00 aliu Change from C++ class to C struct
11 **********************************************************************
12 */
13 #ifndef PARSEERR_H
14 #define PARSEERR_H
15
16 #include "unicode/utypes.h"
17
18
27 enum { U_PARSE_CONTEXT_LEN = 16 };
28
58 typedef struct UParseError {
59
67 int32_t line;
68
76 int32_t offset;
77
83 UChar preContext[U_PARSE_CONTEXT_LEN];
84
90 UChar postContext[U_PARSE_CONTEXT_LEN];
91
92 } UParseError;
93
94 #endif
UParseError
struct UParseError UParseError
A UParseError struct is used to returned detailed information about parsing errors.
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UParseError
A UParseError struct is used to returned detailed information about parsing errors.
Definition: parseerr.h:58
UParseError::offset
int32_t offset
The character offset to the error.
Definition: parseerr.h:76
UParseError::preContext
UChar preContext[U_PARSE_CONTEXT_LEN]
Textual context before the error.
Definition: parseerr.h:83
UParseError::postContext
UChar postContext[U_PARSE_CONTEXT_LEN]
The error itself and/or textual context after the error.
Definition: parseerr.h:90
UParseError::line
int32_t line
The line on which the error occurred.
Definition: parseerr.h:67
UChar
char16_t UChar
Definition: umachine.h:418