php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
converter.c File Reference
#include "converter.h"
#include "zend_exceptions.h"
#include <unicode/utypes.h>
#include <unicode/utf8.h>
#include <unicode/utf16.h>
#include <unicode/ucnv.h>
#include <unicode/ustring.h>
#include "../intl_error.h"
#include "../intl_common.h"
#include "converter_arginfo.h"

Go to the source code of this file.

Data Structures

struct  _php_converter_object
 

Macros

#define Z_INTL_CONVERTER_P(zv)
 
#define CONV_GET(pzv)
 
#define THROW_UFAILURE(obj, fname, error)
 
#define TARGET_CHECK(cnvargs, needed)
 
#define UCNV_REASON_CASE(v)
 

Typedefs

typedef struct _php_converter_object php_converter_object
 

Functions

 PHP_METHOD (UConverter, toUCallback)
 
 PHP_METHOD (UConverter, fromUCallback)
 
 PHP_METHOD (UConverter, setSourceEncoding)
 
 PHP_METHOD (UConverter, setDestinationEncoding)
 
 PHP_METHOD (UConverter, getSourceEncoding)
 
 PHP_METHOD (UConverter, getDestinationEncoding)
 
 PHP_METHOD (UConverter, getSourceType)
 
 PHP_METHOD (UConverter, getDestinationType)
 
 PHP_METHOD (UConverter, __construct)
 
 PHP_METHOD (UConverter, setSubstChars)
 
 PHP_METHOD (UConverter, getSubstChars)
 
 PHP_METHOD (UConverter, reasonText)
 
 PHP_METHOD (UConverter, convert)
 
 PHP_METHOD (UConverter, transcode)
 
 PHP_METHOD (UConverter, getErrorCode)
 
 PHP_METHOD (UConverter, getErrorMessage)
 
 PHP_METHOD (UConverter, getAvailable)
 
 PHP_METHOD (UConverter, getAliases)
 
 PHP_METHOD (UConverter, getStandards)
 
int php_converter_minit (INIT_FUNC_ARGS)
 

Macro Definition Documentation

◆ CONV_GET

#define CONV_GET ( pzv)
Value:
#define Z_INTL_CONVERTER_P(zv)
Definition converter.c:40

Definition at line 45 of file converter.c.

◆ TARGET_CHECK

#define TARGET_CHECK ( cnvargs,
needed )
Value:
php_converter_check_limits(objval, cnvargs->targetLimit - cnvargs->target, needed)

Definition at line 150 of file converter.c.

◆ THROW_UFAILURE

#define THROW_UFAILURE ( obj,
fname,
error )
Value:
php_converter_throw_failure(obj, error, \
fname "() returned error " ZEND_LONG_FMT ": %s", (zend_long)error, u_errorName(error))
error($message)
Definition ext_skel.php:22
int32_t zend_long
Definition zend_long.h:42
#define ZEND_LONG_FMT
Definition zend_long.h:87

Definition at line 46 of file converter.c.

◆ UCNV_REASON_CASE

#define UCNV_REASON_CASE ( v)
Value:
case (UCNV_ ## v) : RETURN_STRINGL( "REASON_" #v , sizeof( "REASON_" #v ) - 1);
uint32_t v
Definition cdf.c:1237
#define RETURN_STRINGL(s, l)
Definition zend_API.h:1044

Definition at line 682 of file converter.c.

◆ Z_INTL_CONVERTER_P

#define Z_INTL_CONVERTER_P ( zv)
Value:
php_converter_fetch_object(Z_OBJ_P(zv))
zval * zv
Definition ffi.c:3975
#define Z_OBJ_P(zval_p)
Definition zend_types.h:990

Definition at line 40 of file converter.c.

Typedef Documentation

◆ php_converter_object

Function Documentation

◆ php_converter_minit()

int php_converter_minit ( INIT_FUNC_ARGS )

Definition at line 966 of file converter.c.

◆ PHP_METHOD() [1/19]

PHP_METHOD ( UConverter ,
__construct  )

Definition at line 533 of file converter.c.

◆ PHP_METHOD() [2/19]

PHP_METHOD ( UConverter ,
convert  )

Definition at line 706 of file converter.c.

◆ PHP_METHOD() [3/19]

PHP_METHOD ( UConverter ,
fromUCallback  )

Definition at line 124 of file converter.c.

◆ PHP_METHOD() [4/19]

PHP_METHOD ( UConverter ,
getAliases  )

Definition at line 835 of file converter.c.

◆ PHP_METHOD() [5/19]

PHP_METHOD ( UConverter ,
getAvailable  )

Definition at line 818 of file converter.c.

◆ PHP_METHOD() [6/19]

PHP_METHOD ( UConverter ,
getDestinationEncoding  )

Definition at line 467 of file converter.c.

◆ PHP_METHOD() [7/19]

PHP_METHOD ( UConverter ,
getDestinationType  )

Definition at line 502 of file converter.c.

◆ PHP_METHOD() [8/19]

PHP_METHOD ( UConverter ,
getErrorCode  )

Definition at line 793 of file converter.c.

◆ PHP_METHOD() [9/19]

PHP_METHOD ( UConverter ,
getErrorMessage  )

Definition at line 803 of file converter.c.

◆ PHP_METHOD() [10/19]

PHP_METHOD ( UConverter ,
getSourceEncoding  )

Definition at line 460 of file converter.c.

◆ PHP_METHOD() [11/19]

PHP_METHOD ( UConverter ,
getSourceType  )

Definition at line 495 of file converter.c.

◆ PHP_METHOD() [12/19]

PHP_METHOD ( UConverter ,
getStandards  )

Definition at line 869 of file converter.c.

◆ PHP_METHOD() [13/19]

PHP_METHOD ( UConverter ,
getSubstChars  )

Definition at line 597 of file converter.c.

◆ PHP_METHOD() [14/19]

PHP_METHOD ( UConverter ,
reasonText  )

Definition at line 683 of file converter.c.

◆ PHP_METHOD() [15/19]

PHP_METHOD ( UConverter ,
setDestinationEncoding  )

Definition at line 431 of file converter.c.

◆ PHP_METHOD() [16/19]

PHP_METHOD ( UConverter ,
setSourceEncoding  )

Definition at line 424 of file converter.c.

◆ PHP_METHOD() [17/19]

PHP_METHOD ( UConverter ,
setSubstChars  )

Definition at line 556 of file converter.c.

◆ PHP_METHOD() [18/19]

PHP_METHOD ( UConverter ,
toUCallback  )

Definition at line 107 of file converter.c.

◆ PHP_METHOD() [19/19]

PHP_METHOD ( UConverter ,
transcode  )

Definition at line 733 of file converter.c.