php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_string.h File Reference

Go to the source code of this file.

Macros

#define strnatcmp(a, b)
 
#define strnatcasecmp(a, b)
 
#define php_mblen(ptr, len)
 
#define php_mb_reset()
 
#define PHP_STR_PAD_LEFT   0
 
#define PHP_STR_PAD_RIGHT   1
 
#define PHP_STR_PAD_BOTH   2
 
#define PHP_PATHINFO_DIRNAME   1
 
#define PHP_PATHINFO_BASENAME   2
 
#define PHP_PATHINFO_EXTENSION   4
 
#define PHP_PATHINFO_FILENAME   8
 
#define PHP_PATHINFO_ALL   (PHP_PATHINFO_DIRNAME | PHP_PATHINFO_BASENAME | PHP_PATHINFO_EXTENSION | PHP_PATHINFO_FILENAME)
 

Functions

PHPAPI int strnatcmp_ex (char const *a, size_t a_len, char const *b, size_t b_len, bool is_case_insensitive)
 
PHPAPI struct lconv * localeconv_r (struct lconv *out)
 
PHPAPI char * php_strtr (char *str, size_t len, const char *str_from, const char *str_to, size_t trlen)
 
PHPAPI zend_stringphp_addslashes (zend_string *str)
 
PHPAPI void php_stripslashes (zend_string *str)
 
PHPAPI zend_stringphp_addcslashes_str (const char *str, size_t len, const char *what, size_t what_len)
 
PHPAPI zend_stringphp_addcslashes (zend_string *str, const char *what, size_t what_len)
 
PHPAPI void php_stripcslashes (zend_string *str)
 
PHPAPI zend_stringphp_basename (const char *s, size_t len, const char *suffix, size_t sufflen)
 
PHPAPI size_t php_dirname (char *str, size_t len)
 
PHPAPI char * php_stristr (const char *s, const char *t, size_t s_len, size_t t_len)
 
PHPAPI zend_stringphp_str_to_str (const char *haystack, size_t length, const char *needle, size_t needle_len, const char *str, size_t str_len)
 
PHPAPI zend_stringphp_trim (zend_string *str, const char *what, size_t what_len, int mode)
 
PHPAPI size_t php_strip_tags (char *rbuf, size_t len, const char *allow, size_t allow_len)
 
PHPAPI size_t php_strip_tags_ex (char *rbuf, size_t len, const char *allow, size_t allow_len, bool allow_tag_spaces)
 
PHPAPI void php_implode (const zend_string *delim, HashTable *arr, zval *return_value)
 
PHPAPI void php_explode (const zend_string *delim, zend_string *str, zval *return_value, zend_long limit)
 
PHPAPI size_t php_strspn (const char *s1, const char *s2, const char *s1_end, const char *s2_end)
 
PHPAPI size_t php_strcspn (const char *s1, const char *s2, const char *s1_end, const char *s2_end)
 
PHPAPI bool php_binary_string_shuffle (php_random_algo_with_state engine, char *str, zend_long len)
 

Macro Definition Documentation

◆ php_mb_reset

#define php_mb_reset ( )
Value:
#define NULL
Definition gdcache.h:45
#define php_ignore_value(x)
Definition php.h:275

Definition at line 67 of file php_string.h.

◆ php_mblen

#define php_mblen ( ptr,
len )
Value:
mblen(ptr, len)
size_t len
Definition apprentice.c:174
void * ptr
Definition ffi.c:3814

Definition at line 66 of file php_string.h.

◆ PHP_PATHINFO_ALL

◆ PHP_PATHINFO_BASENAME

#define PHP_PATHINFO_BASENAME   2

Definition at line 74 of file php_string.h.

◆ PHP_PATHINFO_DIRNAME

#define PHP_PATHINFO_DIRNAME   1

Definition at line 73 of file php_string.h.

◆ PHP_PATHINFO_EXTENSION

#define PHP_PATHINFO_EXTENSION   4

Definition at line 75 of file php_string.h.

◆ PHP_PATHINFO_FILENAME

#define PHP_PATHINFO_FILENAME   8

Definition at line 76 of file php_string.h.

◆ PHP_STR_PAD_BOTH

#define PHP_STR_PAD_BOTH   2

Definition at line 72 of file php_string.h.

◆ PHP_STR_PAD_LEFT

#define PHP_STR_PAD_LEFT   0

Definition at line 70 of file php_string.h.

◆ PHP_STR_PAD_RIGHT

#define PHP_STR_PAD_RIGHT   1

Definition at line 71 of file php_string.h.

◆ strnatcasecmp

#define strnatcasecmp ( a,
b )
Value:
strnatcmp_ex(a, strlen(a), b, strlen(b), 1)
PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len, bool is_case_insensitive)
Definition strnatcmp.c:88
$obj a
Definition test.php:84
strlen(string $string)

Definition at line 33 of file php_string.h.

◆ strnatcmp

#define strnatcmp ( a,
b )
Value:
strnatcmp_ex(a, strlen(a), b, strlen(b), 0)

Definition at line 31 of file php_string.h.

Function Documentation

◆ localeconv_r()

PHPAPI struct lconv * localeconv_r ( struct lconv * out)

Definition at line 119 of file string.c.

◆ php_addcslashes()

PHPAPI zend_string * php_addcslashes ( zend_string * str,
const char * what,
size_t what_len )

Definition at line 3836 of file string.c.

◆ php_addcslashes_str()

PHPAPI zend_string * php_addcslashes_str ( const char * str,
size_t len,
const char * what,
size_t what_len )

Definition at line 3794 of file string.c.

◆ php_addslashes()

PHPAPI zend_string * php_addslashes ( zend_string * str)

Definition at line 4073 of file string.c.

◆ php_basename()

PHPAPI zend_string * php_basename ( const char * s,
size_t len,
const char * suffix,
size_t sufflen )

Definition at line 1372 of file string.c.

◆ php_binary_string_shuffle()

PHPAPI bool php_binary_string_shuffle ( php_random_algo_with_state engine,
char * str,
zend_long len )

Definition at line 5941 of file string.c.

◆ php_dirname()

PHPAPI size_t php_dirname ( char * str,
size_t len )

Definition at line 1505 of file string.c.

◆ php_explode()

PHPAPI void php_explode ( const zend_string * delim,
zend_string * str,
zval * return_value,
zend_long limit )

Definition at line 845 of file string.c.

◆ php_implode()

PHPAPI void php_implode ( const zend_string * delim,
HashTable * arr,
zval * return_value )

Definition at line 958 of file string.c.

◆ php_str_to_str()

PHPAPI zend_string * php_str_to_str ( const char * haystack,
size_t length,
const char * needle,
size_t needle_len,
const char * str,
size_t str_len )

Definition at line 3323 of file string.c.

◆ php_strcspn()

PHPAPI size_t php_strcspn ( const char * s1,
const char * s2,
const char * s1_end,
const char * s2_end )

Definition at line 1722 of file string.c.

◆ php_strip_tags()

PHPAPI size_t php_strip_tags ( char * rbuf,
size_t len,
const char * allow,
size_t allow_len )

Definition at line 5066 of file string.c.

◆ php_strip_tags_ex()

PHPAPI size_t php_strip_tags_ex ( char * rbuf,
size_t len,
const char * allow,
size_t allow_len,
bool allow_tag_spaces )

Definition at line 5092 of file string.c.

◆ php_stripcslashes()

PHPAPI void php_stripcslashes ( zend_string * str)

Definition at line 3731 of file string.c.

◆ php_stripslashes()

PHPAPI void php_stripslashes ( zend_string * str)

Definition at line 4288 of file string.c.

◆ php_stristr()

PHPAPI char * php_stristr ( const char * s,
const char * t,
size_t s_len,
size_t t_len )

Definition at line 1672 of file string.c.

◆ php_strspn()

PHPAPI size_t php_strspn ( const char * s1,
const char * s2,
const char * s1_end,
const char * s2_end )

Definition at line 1715 of file string.c.

◆ php_strtr()

PHPAPI char * php_strtr ( char * str,
size_t len,
const char * str_from,
const char * str_to,
size_t trlen )

Definition at line 2785 of file string.c.

◆ php_trim()

PHPAPI zend_string * php_trim ( zend_string * str,
const char * what,
size_t what_len,
int mode )

Definition at line 628 of file string.c.

◆ strnatcmp_ex()

PHPAPI int strnatcmp_ex ( char const * a,
size_t a_len,
char const * b,
size_t b_len,
bool is_case_insensitive )

Definition at line 88 of file strnatcmp.c.