ICU 76.1 76.1
Loading...
Searching...
No Matches
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
27enum { U_PARSE_CONTEXT_LEN = 16 };
28
58typedef 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
93
94#endif
A UParseError struct is used to returned detailed information about parsing errors.
Definition parseerr.h:58
UChar postContext[U_PARSE_CONTEXT_LEN]
The error itself and/or textual context after the error.
Definition parseerr.h:90
UChar preContext[U_PARSE_CONTEXT_LEN]
Textual context before the error.
Definition parseerr.h:83
int32_t line
The line on which the error occurred.
Definition parseerr.h:67
int32_t offset
The character offset to the error.
Definition parseerr.h:76
char16_t UChar
The base type for UTF-16 code units and pointers.
Definition umachine.h:378
Basic definitions for ICU, for both C and C++ APIs.