php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
intl_error.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | This source file is subject to version 3.01 of the PHP license, |
4 | that is bundled with this package in the file LICENSE, and is |
5 | available through the world-wide-web at the following url: |
6 | https://www.php.net/license/3_01.txt |
7 | If you did not receive a copy of the PHP license and are unable to |
8 | obtain it through the world-wide-web, please send a note to |
9 | license@php.net so we can mail you a copy immediately. |
10 +----------------------------------------------------------------------+
11 | Authors: Vadim Savchuk <vsavchuk@productengine.com> |
12 | Dmitry Lakhtyuk <dlakhtyuk@productengine.com> |
13 | Stanislav Malyshev <stas@zend.com> |
14 +----------------------------------------------------------------------+
15 */
16
17#ifndef INTL_ERROR_H
18#define INTL_ERROR_H
19
20#include <unicode/utypes.h>
21#include <unicode/parseerr.h>
22#include <zend_smart_str.h>
23
24#define INTL_ERROR_CODE(e) (e).code
25
31
35void intl_error_set_code( intl_error* err, UErrorCode err_code );
36void intl_error_set_custom_msg( intl_error* err, const char* msg, int copyMsg );
37void intl_error_set( intl_error* err, UErrorCode code, const char* msg, int copyMsg );
40
41// Wrappers to synchonize object's and global error structures.
43void intl_errors_set_custom_msg( intl_error* err, const char* msg, int copyMsg );
44void intl_errors_set_code( intl_error* err, UErrorCode err_code );
45void intl_errors_set( intl_error* err, UErrorCode code, const char* msg, int copyMsg );
46
47// Other error helpers
48smart_str intl_parse_error_to_string( UParseError* pe );
49
50#endif // INTL_ERROR_H
char * err
Definition ffi.c:3029
void intl_errors_set_custom_msg(intl_error *err, const char *msg, int copyMsg)
Definition intl_error.c:187
void intl_error_init(intl_error *err)
Definition intl_error.c:66
void intl_errors_set(intl_error *err, UErrorCode code, const char *msg, int copyMsg)
Definition intl_error.c:169
void intl_error_set(intl_error *err, UErrorCode code, const char *msg, int copyMsg)
Definition intl_error.c:161
struct _intl_error intl_error
void intl_error_reset(intl_error *err)
Definition intl_error.c:78
intl_error * intl_error_create(void)
Definition intl_error.c:55
void intl_errors_reset(intl_error *err)
Definition intl_error.c:177
void intl_error_set_code(intl_error *err, UErrorCode err_code)
Definition intl_error.c:141
UErrorCode intl_error_get_code(intl_error *err)
Definition intl_error.c:151
void intl_error_set_custom_msg(intl_error *err, const char *msg, int copyMsg)
Definition intl_error.c:90
smart_str intl_parse_error_to_string(UParseError *pe)
Definition intl_error.c:206
void intl_errors_set_code(intl_error *err, UErrorCode err_code)
Definition intl_error.c:197
zend_string * intl_error_get_message(intl_error *err)
Definition intl_error.c:116
char * msg
Definition phpdbg.h:289
int free_custom_error_message
Definition intl_error.h:28
char * custom_error_message
Definition intl_error.h:29
UErrorCode code
Definition intl_error.h:27
struct _zend_string zend_string