Types (structs, unions and typedefs)¶
-
type sfparse_vec¶
sfparse_vec
stores sequence of bytes.
-
type sfparse_decimal¶
sfparse_decimal
contains decimal value.
-
type sfparse_value¶
sfparse_value
stores a Structured Field item. For Inner List, only type is set tosfparse_type.SFPARSE_TYPE_INNER_LIST
. In order to read the items contained in an inner list, callsfparse_parser_inner_list()
.-
sfparse_type type¶
type
is the type of the value contained in this particular object.
-
uint32_t flags¶
flags
is bitwise OR of one or more ofSFPARSE_VALUE_FLAG_*
.
-
union [anonymous]¶
-
int boolean¶
boolean
contains boolean value iftype
==sfparse_type.SFPARSE_TYPE_BOOLEAN
. 1 indicates true, and 0 indicates false.
-
int64_t integer¶
integer
contains integer value iftype
is eithersfparse_type.SFPARSE_TYPE_INTEGER
orsfparse_type.SFPARSE_TYPE_DATE
.
-
sfparse_decimal decimal¶
decimal
contains decimal value iftype
==sfparse_type.SFPARSE_TYPE_DECIMAL
.
-
sfparse_vec vec¶
vec
contains sequence of bytes iftype
is eithersfparse_type.SFPARSE_TYPE_STRING
,sfparse_type.SFPARSE_TYPE_TOKEN
,sfparse_type.SFPARSE_TYPE_BYTESEQ
, orsfparse_type.SFPARSE_TYPE_DISPSTRING
.For
sfparse_type.SFPARSE_TYPE_STRING
, this field contains one or more escaped characters ifflags
hasSFPARSE_VALUE_FLAG_ESCAPED_STRING
set. To unescape the string, usesfparse_unescape()
.For
sfparse_type.SFPARSE_TYPE_BYTESEQ
, this field contains base64 encoded string. To decode this byte string, usesfparse_base64decode()
.For
sfparse_type.SFPARSE_TYPE_DISPSTRING
, this field may contain percent-encoded UTF-8 byte sequences. To decode it, usesfparse_pctdecode()
.
-
int boolean¶
-
sfparse_type type¶
-
type sfparse_parser¶
sfparse_parser
is the Structured Field Values parser. Usesfparse_parser_init()
to initialize it.