16 #ifdef USE_ULIB_SHARED
17 #define U_LIBAPI __declspec(dllimport)
19 #ifdef BUILD_ULIB_SHARED
20 #define U_LIBAPI __declspec(dllexport)
38 U_SSTREAM_ERR_RANGE = 1,
39 U_SSTREAM_ERR_INVALID = 2,
40 U_SSTREAM_ERR_NO_SPACE = 3,
48 U_sstream_status status;
55U_LIBAPI
void U_sstream_init(
U_SStream *ss,
void *str,
unsigned size);
56U_LIBAPI
unsigned U_sstream_pos(
const U_SStream *ss);
57U_LIBAPI
const char *U_sstream_str(
const U_SStream *ss);
58U_LIBAPI
unsigned U_sstream_remaining(
const U_SStream *ss);
59U_LIBAPI
int U_sstream_at_end(
const U_SStream *ss);
60U_LIBAPI
long U_sstream_get_long(
U_SStream *ss);
61U_LIBAPI
double U_sstream_get_double(
U_SStream *ss);
62U_LIBAPI
char U_sstream_peek_char(
U_SStream *ss);
63U_LIBAPI
void U_sstream_skip_whitespace(
U_SStream *ss);
64U_LIBAPI
int U_sstream_starts_with(
U_SStream *ss,
const char *str);
65U_LIBAPI
int U_sstream_find(
U_SStream *ss,
const char *str);
66U_LIBAPI
void U_sstream_seek(
U_SStream *ss,
unsigned pos);
67U_LIBAPI
void U_sstream_put_str(
U_SStream *ss,
const char *str);
86U_LIBAPI
void U_sstream_put_double(
U_SStream *ss,
double num,
int precision);
87U_LIBAPI
void U_sstream_put_long(
U_SStream *ss,
long num);
88U_LIBAPI
void U_sstream_put_longlong(
U_SStream *ss,
long long num);
89U_LIBAPI
void U_sstream_put_ulonglong(
U_SStream *ss,
unsigned long long num);
90U_LIBAPI
void U_sstream_put_hex(
U_SStream *ss,
const void *data,
unsigned size);
92U_LIBAPI
long U_strtol(
const char *s,
unsigned len,
const char **endp,
int *err);
93U_LIBAPI
double U_strtod(
const char *str,
unsigned len,
const char **endp,
int *err);
Definition u_sstream.h:44