php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
conv.c File Reference
#include <math.h>
#include <float.h>
#include "lexbor/core/conv.h"
#include "lexbor/core/dtoa.h"
#include "lexbor/core/strtod.h"

Go to the source code of this file.

Functions

size_t lexbor_conv_float_to_data (double num, lxb_char_t *buf, size_t len)
 
size_t lexbor_conv_long_to_data (long num, lxb_char_t *buf, size_t len)
 
size_t lexbor_conv_int64_to_data (int64_t num, lxb_char_t *buf, size_t len)
 
double lexbor_conv_data_to_double (const lxb_char_t **start, size_t len)
 
unsigned long lexbor_conv_data_to_ulong (const lxb_char_t **data, size_t length)
 
long lexbor_conv_data_to_long (const lxb_char_t **data, size_t length)
 
unsigned lexbor_conv_data_to_uint (const lxb_char_t **data, size_t length)
 
size_t lexbor_conv_dec_to_hex (uint32_t number, lxb_char_t *out, size_t length)
 

Function Documentation

◆ lexbor_conv_data_to_double()

double lexbor_conv_data_to_double ( const lxb_char_t ** start,
size_t len )

Definition at line 90 of file conv.c.

◆ lexbor_conv_data_to_long()

long lexbor_conv_data_to_long ( const lxb_char_t ** data,
size_t length )

Definition at line 236 of file conv.c.

◆ lexbor_conv_data_to_uint()

unsigned lexbor_conv_data_to_uint ( const lxb_char_t ** data,
size_t length )

Definition at line 279 of file conv.c.

◆ lexbor_conv_data_to_ulong()

unsigned long lexbor_conv_data_to_ulong ( const lxb_char_t ** data,
size_t length )

Definition at line 207 of file conv.c.

◆ lexbor_conv_dec_to_hex()

size_t lexbor_conv_dec_to_hex ( uint32_t number,
lxb_char_t * out,
size_t length )

Definition at line 308 of file conv.c.

◆ lexbor_conv_float_to_data()

size_t lexbor_conv_float_to_data ( double num,
lxb_char_t * buf,
size_t len )

Definition at line 16 of file conv.c.

◆ lexbor_conv_int64_to_data()

size_t lexbor_conv_int64_to_data ( int64_t num,
lxb_char_t * buf,
size_t len )

Definition at line 28 of file conv.c.

◆ lexbor_conv_long_to_data()

size_t lexbor_conv_long_to_data ( long num,
lxb_char_t * buf,
size_t len )

Definition at line 22 of file conv.c.