19#include "ws_symbol_export.h"
37WS_DLL_PUBLIC
bool ws_strtoi64(
const char* str,
const char** endptr, int64_t* cint);
49WS_DLL_PUBLIC
bool ws_strtoi32(
const char* str,
const char** endptr, int32_t* cint);
61WS_DLL_PUBLIC
bool ws_strtoi16(
const char* str,
const char** endptr, int16_t* cint);
62WS_DLL_PUBLIC
bool ws_strtoi8 (
const char* str,
const char** endptr, int8_t* cint);
74WS_DLL_PUBLIC
bool ws_strtoi (
const char* str,
const char** endptr,
int* cint);
81WS_DLL_PUBLIC
bool ws_strtou64(
const char* str,
const char** endptr, uint64_t* cint);
82WS_DLL_PUBLIC
bool ws_strtou32(
const char* str,
const char** endptr, uint32_t* cint);
92WS_DLL_PUBLIC
bool ws_strtou16(
const char* str,
const char** endptr, uint16_t* cint);
103WS_DLL_PUBLIC
bool ws_strtou8 (
const char* str,
const char** endptr, uint8_t* cint);
113WS_DLL_PUBLIC
bool ws_strtou (
const char* str,
const char** endptr,
unsigned* cint);
128WS_DLL_PUBLIC
bool ws_hexstrtou64(
const char* str,
const char** endptr, uint64_t* cint);
139WS_DLL_PUBLIC
bool ws_hexstrtou32(
const char* str,
const char** endptr, uint32_t* cint);
149WS_DLL_PUBLIC
bool ws_hexstrtou16(
const char* str,
const char** endptr, uint16_t* cint);
150WS_DLL_PUBLIC
bool ws_hexstrtou8 (
const char* str,
const char** endptr, uint8_t* cint);
160WS_DLL_PUBLIC
bool ws_hexstrtou (
const char* str,
const char** endptr,
unsigned* cint);
179WS_DLL_PUBLIC
bool ws_basestrtou64(
const char* str,
const char** endptr, uint64_t* cint,
int base);
192WS_DLL_PUBLIC
bool ws_basestrtou32(
const char* str,
const char** endptr, uint32_t* cint,
int base);
205WS_DLL_PUBLIC
bool ws_basestrtou16(
const char* str,
const char** endptr, uint16_t* cint,
int base);
218WS_DLL_PUBLIC
bool ws_basestrtou8 (
const char* str,
const char** endptr, uint8_t* cint,
int base);
235WS_DLL_PUBLIC
bool ws_basestrtou (
const char* str,
const char** endptr,
unsigned* cint,
int base);
263WS_DLL_PUBLIC
bool ws_basebuftou64(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint64_t* cint,
int base);
284WS_DLL_PUBLIC
bool ws_buftou64(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint64_t* cint);
305WS_DLL_PUBLIC
bool ws_hexbuftou64(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint64_t* cint);
307WS_DLL_PUBLIC
bool ws_basebuftou32(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint32_t* cint,
int base);
309WS_DLL_PUBLIC
bool ws_buftou32(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint32_t* cint);
311WS_DLL_PUBLIC
bool ws_hexbuftou32(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint32_t* cint);
313WS_DLL_PUBLIC
bool ws_basebuftou16(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint16_t* cint,
int base);
315WS_DLL_PUBLIC
bool ws_buftou16(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint16_t* cint);
317WS_DLL_PUBLIC
bool ws_hexbuftou16(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint16_t* cint);
319WS_DLL_PUBLIC
bool ws_basebuftou8(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint8_t* cint,
int base);
321WS_DLL_PUBLIC
bool ws_buftou8(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint8_t* cint);
323WS_DLL_PUBLIC
bool ws_hexbuftou8(
const uint8_t* buf,
size_t len,
const uint8_t** endptr, uint8_t* cint);
WS_DLL_PUBLIC bool ws_basestrtou16(const char *str, const char **endptr, uint16_t *cint, int base)
Convert a string to an unsigned integer of specified bits.
Definition strtoi.c:229
WS_DLL_PUBLIC bool ws_hexstrtou16(const char *str, const char **endptr, uint16_t *cint)
Convert a string in the specified base to an unsigned int, with error checks.
Definition strtoi.c:229
WS_DLL_PUBLIC bool ws_strtoi16(const char *str, const char **endptr, int16_t *cint)
Convert a string to an integer of specified size.
Definition strtoi.c:92
WS_DLL_PUBLIC bool ws_basestrtou8(const char *str, const char **endptr, uint8_t *cint, int base)
Convert a string to an unsigned integer with specified base.
Definition strtoi.c:230
WS_DLL_PUBLIC bool ws_strtou8(const char *str, const char **endptr, uint8_t *cint)
Convert a hexadecimal string to an unsigned int, with error checks.
Definition strtoi.c:230
WS_DLL_PUBLIC bool ws_basestrtou(const char *str, const char **endptr, unsigned *cint, int base)
Converts a string to an unsigned integer with error handling.
Definition strtoi.c:232
WS_DLL_PUBLIC bool ws_strtou(const char *str, const char **endptr, unsigned *cint)
Convert a hexadecimal string to an unsigned int, with error checks.
Definition strtoi.c:262
WS_DLL_PUBLIC bool ws_strtou16(const char *str, const char **endptr, uint16_t *cint)
Convert a hexadecimal string to an unsigned int, with error checks.
Definition strtoi.c:229
WS_DLL_PUBLIC bool ws_strtoi(const char *str, const char **endptr, int *cint)
Convert a string to an integer.
Definition strtoi.c:95
WS_DLL_PUBLIC bool ws_basestrtou32(const char *str, const char **endptr, uint32_t *cint, int base)
Converts a string to an unsigned integer with specified base.
Definition strtoi.c:228
WS_DLL_PUBLIC bool ws_hexstrtou(const char *str, const char **endptr, unsigned *cint)
Convert a string in the specified base to an unsigned int, with error checks.
Definition strtoi.c:267
WS_DLL_PUBLIC bool ws_strtoi32(const char *str, const char **endptr, int32_t *cint)
Convert a string to an integer of specified size.
Definition strtoi.c:91
WS_DLL_PUBLIC bool ws_hexstrtou32(const char *str, const char **endptr, uint32_t *cint)
Convert a string in the specified base to an unsigned int, with error checks.
Definition strtoi.c:228
WS_DLL_PUBLIC bool ws_strtou64(const char *str, const char **endptr, uint64_t *cint)
Convert a hexadecimal string to an unsigned int, with error checks.
Definition strtoi.c:186