Loading...
Searching...
No Matches
parseerr.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
* Copyright (C) 1999-2005, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
* 03/14/00 aliu Creation.
* 06/27/00 aliu Change from C++ class to C struct
**********************************************************************
*/
#ifndef PARSEERR_H
#define PARSEERR_H
#include "unicode/utypes.h"
enum { U_PARSE_CONTEXT_LEN = 16 };
typedef struct UParseError {
int32_t line;
int32_t offset;
UChar preContext[U_PARSE_CONTEXT_LEN];
UChar postContext[U_PARSE_CONTEXT_LEN];
} UParseError;
#endif
UParseError
A UParseError struct is used to returned detailed information about parsing errors.
Definition parseerr.h:58
UParseError::postContext
UChar postContext[U_PARSE_CONTEXT_LEN]
The error itself and/or textual context after the error.
Definition parseerr.h:90
UParseError::preContext
UChar preContext[U_PARSE_CONTEXT_LEN]
Textual context before the error.
Definition parseerr.h:83
UParseError::line
int32_t line
The line on which the error occurred.
Definition parseerr.h:67
UParseError::offset
int32_t offset
The character offset to the error.
Definition parseerr.h:76
UChar
char16_t UChar
The base type for UTF-16 code units and pointers.
Definition umachine.h:400
utypes.h
Basic definitions for ICU, for both C and C++ APIs.