php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
uchar.c File Reference
#include "uchar.h"
#include "intl_data.h"
#include "intl_convert.h"
#include <unicode/uchar.h>
#include <unicode/utf8.h>
#include "uchar_arginfo.h"

Go to the source code of this file.

Data Structures

struct  _enumCharType_data
 
struct  _enumCharNames_data
 

Macros

#define IC_METHOD(mname)
 
#define IC_BOOL_METHOD_CHAR(name)
 
#define IC_INT_METHOD_CHAR(name)
 
#define IC_CHAR_METHOD_CHAR(name)
 

Typedefs

typedef struct _enumCharType_data enumCharType_data
 
typedef struct _enumCharNames_data enumCharNames_data
 

Functions

 IC_METHOD (chr)
 
 IC_METHOD (ord)
 
 IC_METHOD (hasBinaryProperty)
 
 IC_METHOD (getIntPropertyValue)
 
 IC_METHOD (getIntPropertyMinValue)
 
 IC_METHOD (getIntPropertyMaxValue)
 
 IC_METHOD (getNumericValue)
 
 IC_METHOD (enumCharTypes)
 
 IC_METHOD (getBlockCode)
 
 IC_METHOD (charName)
 
 IC_METHOD (charFromName)
 
 IC_METHOD (enumCharNames)
 
 IC_METHOD (getPropertyName)
 
 IC_METHOD (getPropertyEnum)
 
 IC_METHOD (getPropertyValueName)
 
 IC_METHOD (getPropertyValueEnum)
 
 IC_METHOD (foldCase)
 
 IC_METHOD (digit)
 
 IC_METHOD (forDigit)
 
 IC_METHOD (charAge)
 
 IC_METHOD (getUnicodeVersion)
 
 IC_METHOD (getFC_NFKC_Closure)
 
int php_uchar_minit (INIT_FUNC_ARGS)
 

Macro Definition Documentation

◆ IC_BOOL_METHOD_CHAR

#define IC_BOOL_METHOD_CHAR ( name)
Value:
UChar32 cp; \
if (parse_code_point_param(INTERNAL_FUNCTION_PARAM_PASSTHRU, &cp) == FAILURE) { \
RETURN_NULL(); \
} \
RETURN_BOOL(u_##name(cp)); \
}
#define IC_METHOD(mname)
Definition uchar.c:10
#define INTERNAL_FUNCTION_PARAM_PASSTHRU
Definition zend.h:50
@ FAILURE
Definition zend_types.h:61
zend_string * name

Definition at line 535 of file uchar.c.

◆ IC_CHAR_METHOD_CHAR

#define IC_CHAR_METHOD_CHAR ( name)
Value:
UChar32 cp, ret; \
zend_string *string_codepoint; \
zend_long int_codepoint = -1; \
ZEND_PARSE_PARAMETERS_START(1, 1) \
Z_PARAM_STR_OR_LONG(string_codepoint, int_codepoint) \
ZEND_PARSE_PARAMETERS_END(); \
if (convert_cp(&cp, string_codepoint, int_codepoint) == FAILURE) { \
RETURN_NULL(); \
} \
ret = u_##name(cp); \
if (string_codepoint != NULL) { \
char buffer[5]; \
int buffer_len = 0; \
U8_APPEND_UNSAFE(buffer, buffer_len, ret); \
buffer[buffer_len] = 0; \
RETURN_STRINGL(buffer, buffer_len); \
} else { \
RETURN_LONG(ret); \
} \
}
#define NULL
Definition gdcache.h:45
Definition file.h:177
int32_t zend_long
Definition zend_long.h:42
struct _zend_string zend_string
zval * ret

Definition at line 593 of file uchar.c.

◆ IC_INT_METHOD_CHAR

#define IC_INT_METHOD_CHAR ( name)
Value:
UChar32 cp; \
if (parse_code_point_param(INTERNAL_FUNCTION_PARAM_PASSTHRU, &cp) == FAILURE) { \
RETURN_NULL(); \
} \
RETURN_LONG(u_##name(cp)); \
}

Definition at line 575 of file uchar.c.

◆ IC_METHOD

#define IC_METHOD ( mname)
Value:
#define PHP_METHOD
Definition php.h:365

Definition at line 10 of file uchar.c.

Typedef Documentation

◆ enumCharNames_data

◆ enumCharType_data

Function Documentation

◆ IC_METHOD() [1/22]

IC_METHOD ( charAge )

Definition at line 470 of file uchar.c.

◆ IC_METHOD() [2/22]

IC_METHOD ( charFromName )

Definition at line 246 of file uchar.c.

◆ IC_METHOD() [3/22]

IC_METHOD ( charName )

Definition at line 214 of file uchar.c.

◆ IC_METHOD() [4/22]

IC_METHOD ( chr )

Definition at line 52 of file uchar.c.

◆ IC_METHOD() [5/22]

IC_METHOD ( digit )

Definition at line 428 of file uchar.c.

◆ IC_METHOD() [6/22]

IC_METHOD ( enumCharNames )

Definition at line 296 of file uchar.c.

◆ IC_METHOD() [7/22]

IC_METHOD ( enumCharTypes )

Definition at line 191 of file uchar.c.

◆ IC_METHOD() [8/22]

IC_METHOD ( foldCase )

Definition at line 398 of file uchar.c.

◆ IC_METHOD() [9/22]

IC_METHOD ( forDigit )

Definition at line 456 of file uchar.c.

◆ IC_METHOD() [10/22]

IC_METHOD ( getBlockCode )

Definition at line 202 of file uchar.c.

◆ IC_METHOD() [11/22]

IC_METHOD ( getFC_NFKC_Closure )

Definition at line 503 of file uchar.c.

◆ IC_METHOD() [12/22]

IC_METHOD ( getIntPropertyMaxValue )

Definition at line 137 of file uchar.c.

◆ IC_METHOD() [13/22]

IC_METHOD ( getIntPropertyMinValue )

Definition at line 125 of file uchar.c.

◆ IC_METHOD() [14/22]

IC_METHOD ( getIntPropertyValue )

Definition at line 105 of file uchar.c.

◆ IC_METHOD() [15/22]

IC_METHOD ( getNumericValue )

Definition at line 149 of file uchar.c.

◆ IC_METHOD() [16/22]

IC_METHOD ( getPropertyEnum )

Definition at line 347 of file uchar.c.

◆ IC_METHOD() [17/22]

IC_METHOD ( getPropertyName )

Definition at line 324 of file uchar.c.

◆ IC_METHOD() [18/22]

IC_METHOD ( getPropertyValueEnum )

Definition at line 383 of file uchar.c.

◆ IC_METHOD() [19/22]

IC_METHOD ( getPropertyValueName )

Definition at line 360 of file uchar.c.

◆ IC_METHOD() [20/22]

IC_METHOD ( getUnicodeVersion )

Definition at line 488 of file uchar.c.

◆ IC_METHOD() [21/22]

IC_METHOD ( hasBinaryProperty )

Definition at line 85 of file uchar.c.

◆ IC_METHOD() [22/22]

IC_METHOD ( ord )

Definition at line 73 of file uchar.c.

◆ php_uchar_minit()

int php_uchar_minit ( INIT_FUNC_ARGS )

Definition at line 625 of file uchar.c.