php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_smart_str.c File Reference
#include <zend.h>
#include "zend_smart_str.h"
#include "zend_smart_string.h"
#include "zend_enum.h"

Go to the source code of this file.

Macros

#define SMART_STR_OVERHEAD   (ZEND_MM_OVERHEAD + _ZSTR_HEADER_SIZE + 1)
 
#define SMART_STR_START_SIZE   256
 
#define SMART_STR_START_LEN   (SMART_STR_START_SIZE - SMART_STR_OVERHEAD)
 
#define SMART_STR_PAGE   4096
 
#define SMART_STR_NEW_LEN(len)
 
#define VK_ESCAPE   '\e'
 
#define SMART_STRING_OVERHEAD   (ZEND_MM_OVERHEAD + 1)
 
#define SMART_STRING_START_SIZE   256
 
#define SMART_STRING_START_LEN   (SMART_STRING_START_SIZE - SMART_STRING_OVERHEAD)
 
#define SMART_STRING_PAGE   4096
 

Functions

ZEND_API void ZEND_FASTCALL smart_str_erealloc (smart_str *str, size_t len)
 
ZEND_API void ZEND_FASTCALL smart_str_realloc (smart_str *str, size_t len)
 
ZEND_API void ZEND_FASTCALL smart_str_append_escaped (smart_str *str, const char *s, size_t l)
 
ZEND_API void ZEND_FASTCALL smart_str_append_double (smart_str *str, double num, int precision, bool zero_fraction)
 
ZEND_API void smart_str_append_printf (smart_str *dest, const char *format,...)
 
ZEND_API void ZEND_FASTCALL _smart_string_alloc_persistent (smart_string *str, size_t len)
 
ZEND_API void ZEND_FASTCALL _smart_string_alloc (smart_string *str, size_t len)
 
ZEND_API void ZEND_FASTCALL smart_str_append_escaped_truncated (smart_str *str, const zend_string *value, size_t length)
 
ZEND_API void ZEND_FASTCALL smart_str_append_scalar (smart_str *dest, const zval *value, size_t truncate)
 
ZEND_API zend_result ZEND_FASTCALL smart_str_append_zval (smart_str *dest, const zval *value, size_t truncate)
 

Macro Definition Documentation

◆ SMART_STR_NEW_LEN

#define SMART_STR_NEW_LEN ( len)
Value:
size_t len
Definition apprentice.c:174
#define ZEND_MM_ALIGNED_SIZE_EX(size, alignment)
Definition zend_alloc.h:37
#define SMART_STR_OVERHEAD
#define SMART_STR_PAGE

Definition at line 27 of file zend_smart_str.c.

◆ SMART_STR_OVERHEAD

#define SMART_STR_OVERHEAD   (ZEND_MM_OVERHEAD + _ZSTR_HEADER_SIZE + 1)

Definition at line 22 of file zend_smart_str.c.

◆ SMART_STR_PAGE

#define SMART_STR_PAGE   4096

Definition at line 25 of file zend_smart_str.c.

◆ SMART_STR_START_LEN

#define SMART_STR_START_LEN   (SMART_STR_START_SIZE - SMART_STR_OVERHEAD)

Definition at line 24 of file zend_smart_str.c.

◆ SMART_STR_START_SIZE

#define SMART_STR_START_SIZE   256

Definition at line 23 of file zend_smart_str.c.

◆ SMART_STRING_OVERHEAD

#define SMART_STRING_OVERHEAD   (ZEND_MM_OVERHEAD + 1)

Definition at line 134 of file zend_smart_str.c.

◆ SMART_STRING_PAGE

#define SMART_STRING_PAGE   4096

Definition at line 137 of file zend_smart_str.c.

◆ SMART_STRING_START_LEN

#define SMART_STRING_START_LEN   (SMART_STRING_START_SIZE - SMART_STRING_OVERHEAD)

Definition at line 136 of file zend_smart_str.c.

◆ SMART_STRING_START_SIZE

#define SMART_STRING_START_SIZE   256

Definition at line 135 of file zend_smart_str.c.

◆ VK_ESCAPE

#define VK_ESCAPE   '\e'

Definition at line 60 of file zend_smart_str.c.

Function Documentation

◆ _smart_string_alloc()

ZEND_API void ZEND_FASTCALL _smart_string_alloc ( smart_string * str,
size_t len )

Definition at line 159 of file zend_smart_str.c.

◆ _smart_string_alloc_persistent()

ZEND_API void ZEND_FASTCALL _smart_string_alloc_persistent ( smart_string * str,
size_t len )

Definition at line 139 of file zend_smart_str.c.

◆ smart_str_append_double()

ZEND_API void ZEND_FASTCALL smart_str_append_double ( smart_str * str,
double num,
int precision,
bool zero_fraction )

Definition at line 116 of file zend_smart_str.c.

◆ smart_str_append_escaped()

ZEND_API void ZEND_FASTCALL smart_str_append_escaped ( smart_str * str,
const char * s,
size_t l )

Definition at line 77 of file zend_smart_str.c.

◆ smart_str_append_escaped_truncated()

ZEND_API void ZEND_FASTCALL smart_str_append_escaped_truncated ( smart_str * str,
const zend_string * value,
size_t length )

Definition at line 185 of file zend_smart_str.c.

◆ smart_str_append_printf()

ZEND_API void smart_str_append_printf ( smart_str * dest,
const char * format,
... )

Definition at line 127 of file zend_smart_str.c.

◆ smart_str_append_scalar()

ZEND_API void ZEND_FASTCALL smart_str_append_scalar ( smart_str * dest,
const zval * value,
size_t truncate )

Definition at line 194 of file zend_smart_str.c.

◆ smart_str_append_zval()

ZEND_API zend_result ZEND_FASTCALL smart_str_append_zval ( smart_str * dest,
const zval * value,
size_t truncate )

Definition at line 226 of file zend_smart_str.c.

◆ smart_str_erealloc()

ZEND_API void ZEND_FASTCALL smart_str_erealloc ( smart_str * str,
size_t len )

Definition at line 30 of file zend_smart_str.c.

◆ smart_str_realloc()

ZEND_API void ZEND_FASTCALL smart_str_realloc ( smart_str * str,
size_t len )

Definition at line 44 of file zend_smart_str.c.