Types (structs, unions and typedefs)¶
-
type sf_decimal¶
sf_decimal
contains decimal value.
-
type sf_value¶
sf_value
stores a Structured Field item. For Inner List, only type is set tosf_type.SF_TYPE_INNER_LIST
. In order to read the items contained in an inner list, callsf_parser_inner_list()
.-
uint32_t flags¶
flags
is bitwise OR of one or more ofSF_VALUE_FLAG_*
.
-
union [anonymous]¶
-
int boolean¶
boolean
contains boolean value iftype
==sf_type.SF_TYPE_BOOLEAN
. 1 indicates true, and 0 indicates false.
-
int64_t integer¶
integer
contains integer value iftype
is eithersf_type.SF_TYPE_INTEGER
orsf_type.SF_TYPE_DATE
.
-
sf_decimal decimal¶
decimal
contains decimal value iftype
==sf_type.SF_TYPE_DECIMAL
.
-
sf_vec vec¶
vec
contains sequence of bytes iftype
is eithersf_type.SF_TYPE_STRING
,sf_type.SF_TYPE_TOKEN
,sf_type.SF_TYPE_BYTESEQ
, orsf_type.SF_TYPE_DISPSTRING
.For
sf_type.SF_TYPE_STRING
, this field contains one or more escaped characters ifflags
hasSF_VALUE_FLAG_ESCAPED_STRING
set. To unescape the string, usesf_unescape()
.For
sf_type.SF_TYPE_BYTESEQ
, this field contains base64 encoded string. To decode this byte string, usesf_base64decode()
.For
sf_type.SF_TYPE_DISPSTRING
, this field may contain percent-encoded UTF-8 byte sequences. To decode it, usesf_pctdecode()
.
-
int boolean¶
-
uint32_t flags¶
-
type sf_parser¶
sf_parser
is the Structured Field Values parser. Usesf_parser_init()
to initialize it.