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

Go to the source code of this file.

Macros

#define LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER
 
#define LEXBOR_STR_RES_MAP_LOWERCASE
 
#define LEXBOR_STR_RES_MAP_UPPERCASE
 

Functions

lexbor_str_tlexbor_str_create (void)
 
lxb_char_tlexbor_str_init (lexbor_str_t *str, lexbor_mraw_t *mraw, size_t size)
 
lxb_char_tlexbor_str_init_append (lexbor_str_t *str, lexbor_mraw_t *mraw, const lxb_char_t *data, size_t length)
 
void lexbor_str_clean (lexbor_str_t *str)
 
void lexbor_str_clean_all (lexbor_str_t *str)
 
lexbor_str_tlexbor_str_destroy (lexbor_str_t *str, lexbor_mraw_t *mraw, bool destroy_obj)
 
lxb_char_tlexbor_str_realloc (lexbor_str_t *str, lexbor_mraw_t *mraw, size_t new_size)
 
lxb_char_tlexbor_str_check_size (lexbor_str_t *str, lexbor_mraw_t *mraw, size_t plus_len)
 
lxb_char_tlexbor_str_append (lexbor_str_t *str, lexbor_mraw_t *mraw, const lxb_char_t *buff, size_t length)
 
lxb_char_tlexbor_str_append_before (lexbor_str_t *str, lexbor_mraw_t *mraw, const lxb_char_t *buff, size_t length)
 
lxb_char_tlexbor_str_append_one (lexbor_str_t *str, lexbor_mraw_t *mraw, const lxb_char_t data)
 
lxb_char_tlexbor_str_append_lowercase (lexbor_str_t *str, lexbor_mraw_t *mraw, const lxb_char_t *data, size_t length)
 
lxb_char_tlexbor_str_append_with_rep_null_chars (lexbor_str_t *str, lexbor_mraw_t *mraw, const lxb_char_t *buff, size_t length)
 
lxb_char_tlexbor_str_copy (lexbor_str_t *dest, const lexbor_str_t *target, lexbor_mraw_t *mraw)
 
void lexbor_str_stay_only_whitespace (lexbor_str_t *target)
 
void lexbor_str_strip_collapse_whitespace (lexbor_str_t *target)
 
size_t lexbor_str_crop_whitespace_from_begin (lexbor_str_t *target)
 
size_t lexbor_str_whitespace_from_begin (lexbor_str_t *target)
 
size_t lexbor_str_whitespace_from_end (lexbor_str_t *target)
 
const lxb_char_tlexbor_str_data_ncasecmp_first (const lxb_char_t *first, const lxb_char_t *sec, size_t sec_size)
 
bool lexbor_str_data_ncasecmp_end (const lxb_char_t *first, const lxb_char_t *sec, size_t size)
 
bool lexbor_str_data_ncasecmp_contain (const lxb_char_t *where, size_t where_size, const lxb_char_t *what, size_t what_size)
 
bool lexbor_str_data_ncasecmp (const lxb_char_t *first, const lxb_char_t *sec, size_t size)
 
bool lexbor_str_data_nlocmp_right (const lxb_char_t *first, const lxb_char_t *sec, size_t size)
 
bool lexbor_str_data_nupcmp_right (const lxb_char_t *first, const lxb_char_t *sec, size_t size)
 
bool lexbor_str_data_casecmp (const lxb_char_t *first, const lxb_char_t *sec)
 
bool lexbor_str_data_ncmp_end (const lxb_char_t *first, const lxb_char_t *sec, size_t size)
 
bool lexbor_str_data_ncmp_contain (const lxb_char_t *where, size_t where_size, const lxb_char_t *what, size_t what_size)
 
bool lexbor_str_data_ncmp (const lxb_char_t *first, const lxb_char_t *sec, size_t size)
 
bool lexbor_str_data_cmp (const lxb_char_t *first, const lxb_char_t *sec)
 
bool lexbor_str_data_cmp_ws (const lxb_char_t *first, const lxb_char_t *sec)
 
void lexbor_str_data_to_lowercase (lxb_char_t *to, const lxb_char_t *from, size_t len)
 
void lexbor_str_data_to_uppercase (lxb_char_t *to, const lxb_char_t *from, size_t len)
 
const lxb_char_tlexbor_str_data_find_lowercase (const lxb_char_t *data, size_t len)
 
const lxb_char_tlexbor_str_data_find_uppercase (const lxb_char_t *data, size_t len)
 
lxb_char_tlexbor_str_data_noi (lexbor_str_t *str)
 
size_t lexbor_str_length_noi (lexbor_str_t *str)
 
size_t lexbor_str_size_noi (lexbor_str_t *str)
 
void lexbor_str_data_set_noi (lexbor_str_t *str, lxb_char_t *data)
 
lxb_char_tlexbor_str_length_set_noi (lexbor_str_t *str, lexbor_mraw_t *mraw, size_t length)
 

Macro Definition Documentation

◆ LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER

#define LEXBOR_STR_RES_ANSI_REPLACEMENT_CHARACTER

Definition at line 9 of file str.c.

◆ LEXBOR_STR_RES_MAP_LOWERCASE

#define LEXBOR_STR_RES_MAP_LOWERCASE

Definition at line 10 of file str.c.

◆ LEXBOR_STR_RES_MAP_UPPERCASE

#define LEXBOR_STR_RES_MAP_UPPERCASE

Definition at line 11 of file str.c.

Function Documentation

◆ lexbor_str_append()

lxb_char_t * lexbor_str_append ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
const lxb_char_t * buff,
size_t length )

Definition at line 131 of file str.c.

◆ lexbor_str_append_before()

lxb_char_t * lexbor_str_append_before ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
const lxb_char_t * buff,
size_t length )

Definition at line 149 of file str.c.

◆ lexbor_str_append_lowercase()

lxb_char_t * lexbor_str_append_lowercase ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
const lxb_char_t * data,
size_t length )

Definition at line 183 of file str.c.

◆ lexbor_str_append_one()

lxb_char_t * lexbor_str_append_one ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
const lxb_char_t data )

Definition at line 169 of file str.c.

◆ lexbor_str_append_with_rep_null_chars()

lxb_char_t * lexbor_str_append_with_rep_null_chars ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
const lxb_char_t * buff,
size_t length )

Definition at line 205 of file str.c.

◆ lexbor_str_check_size()

lxb_char_t * lexbor_str_check_size ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
size_t plus_len )

Definition at line 107 of file str.c.

◆ lexbor_str_clean()

void lexbor_str_clean ( lexbor_str_t * str)

Definition at line 64 of file str.c.

◆ lexbor_str_clean_all()

void lexbor_str_clean_all ( lexbor_str_t * str)

Definition at line 70 of file str.c.

◆ lexbor_str_copy()

lxb_char_t * lexbor_str_copy ( lexbor_str_t * dest,
const lexbor_str_t * target,
lexbor_mraw_t * mraw )

Definition at line 247 of file str.c.

◆ lexbor_str_create()

lexbor_str_t * lexbor_str_create ( void )

Definition at line 16 of file str.c.

◆ lexbor_str_crop_whitespace_from_begin()

size_t lexbor_str_crop_whitespace_from_begin ( lexbor_str_t * target)

Definition at line 328 of file str.c.

◆ lexbor_str_data_casecmp()

bool lexbor_str_data_casecmp ( const lxb_char_t * first,
const lxb_char_t * sec )

Definition at line 476 of file str.c.

◆ lexbor_str_data_cmp()

bool lexbor_str_data_cmp ( const lxb_char_t * first,
const lxb_char_t * sec )

Definition at line 530 of file str.c.

◆ lexbor_str_data_cmp_ws()

bool lexbor_str_data_cmp_ws ( const lxb_char_t * first,
const lxb_char_t * sec )

Definition at line 547 of file str.c.

◆ lexbor_str_data_find_lowercase()

const lxb_char_t * lexbor_str_data_find_lowercase ( const lxb_char_t * data,
size_t len )

Definition at line 584 of file str.c.

◆ lexbor_str_data_find_uppercase()

const lxb_char_t * lexbor_str_data_find_uppercase ( const lxb_char_t * data,
size_t len )

Definition at line 598 of file str.c.

◆ lexbor_str_data_ncasecmp()

bool lexbor_str_data_ncasecmp ( const lxb_char_t * first,
const lxb_char_t * sec,
size_t size )

Definition at line 435 of file str.c.

◆ lexbor_str_data_ncasecmp_contain()

bool lexbor_str_data_ncasecmp_contain ( const lxb_char_t * where,
size_t where_size,
const lxb_char_t * what,
size_t what_size )

Definition at line 422 of file str.c.

◆ lexbor_str_data_ncasecmp_end()

bool lexbor_str_data_ncasecmp_end ( const lxb_char_t * first,
const lxb_char_t * sec,
size_t size )

Definition at line 405 of file str.c.

◆ lexbor_str_data_ncasecmp_first()

const lxb_char_t * lexbor_str_data_ncasecmp_first ( const lxb_char_t * first,
const lxb_char_t * sec,
size_t sec_size )

Definition at line 384 of file str.c.

◆ lexbor_str_data_ncmp()

bool lexbor_str_data_ncmp ( const lxb_char_t * first,
const lxb_char_t * sec,
size_t size )

Definition at line 523 of file str.c.

◆ lexbor_str_data_ncmp_contain()

bool lexbor_str_data_ncmp_contain ( const lxb_char_t * where,
size_t where_size,
const lxb_char_t * what,
size_t what_size )

Definition at line 510 of file str.c.

◆ lexbor_str_data_ncmp_end()

bool lexbor_str_data_ncmp_end ( const lxb_char_t * first,
const lxb_char_t * sec,
size_t size )

Definition at line 495 of file str.c.

◆ lexbor_str_data_nlocmp_right()

bool lexbor_str_data_nlocmp_right ( const lxb_char_t * first,
const lxb_char_t * sec,
size_t size )

Definition at line 450 of file str.c.

◆ lexbor_str_data_noi()

lxb_char_t * lexbor_str_data_noi ( lexbor_str_t * str)

Definition at line 615 of file str.c.

◆ lexbor_str_data_nupcmp_right()

bool lexbor_str_data_nupcmp_right ( const lxb_char_t * first,
const lxb_char_t * sec,
size_t size )

Definition at line 463 of file str.c.

◆ lexbor_str_data_set_noi()

void lexbor_str_data_set_noi ( lexbor_str_t * str,
lxb_char_t * data )

Definition at line 633 of file str.c.

◆ lexbor_str_data_to_lowercase()

void lexbor_str_data_to_lowercase ( lxb_char_t * to,
const lxb_char_t * from,
size_t len )

Definition at line 564 of file str.c.

◆ lexbor_str_data_to_uppercase()

void lexbor_str_data_to_uppercase ( lxb_char_t * to,
const lxb_char_t * from,
size_t len )

Definition at line 574 of file str.c.

◆ lexbor_str_destroy()

lexbor_str_t * lexbor_str_destroy ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
bool destroy_obj )

Definition at line 76 of file str.c.

◆ lexbor_str_init()

lxb_char_t * lexbor_str_init ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
size_t size )

Definition at line 22 of file str.c.

◆ lexbor_str_init_append()

lxb_char_t * lexbor_str_init_append ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
const lxb_char_t * data,
size_t length )

Definition at line 39 of file str.c.

◆ lexbor_str_length_noi()

size_t lexbor_str_length_noi ( lexbor_str_t * str)

Definition at line 621 of file str.c.

◆ lexbor_str_length_set_noi()

lxb_char_t * lexbor_str_length_set_noi ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
size_t length )

Definition at line 639 of file str.c.

◆ lexbor_str_realloc()

lxb_char_t * lexbor_str_realloc ( lexbor_str_t * str,
lexbor_mraw_t * mraw,
size_t new_size )

Definition at line 94 of file str.c.

◆ lexbor_str_size_noi()

size_t lexbor_str_size_noi ( lexbor_str_t * str)

Definition at line 627 of file str.c.

◆ lexbor_str_stay_only_whitespace()

void lexbor_str_stay_only_whitespace ( lexbor_str_t * target)

Definition at line 266 of file str.c.

◆ lexbor_str_strip_collapse_whitespace()

void lexbor_str_strip_collapse_whitespace ( lexbor_str_t * target)

Definition at line 282 of file str.c.

◆ lexbor_str_whitespace_from_begin()

size_t lexbor_str_whitespace_from_begin ( lexbor_str_t * target)

Definition at line 348 of file str.c.

◆ lexbor_str_whitespace_from_end()

size_t lexbor_str_whitespace_from_end ( lexbor_str_t * target)

Definition at line 363 of file str.c.