SpParserResult.h
Go to the documentation of this file.
Common data structures of the Scandit Parsing Library.
size_t sp_field_get_issues_count(SpField const *field)
Returns number of issues for the given field.
size_t sp_parser_result_get_fields_count(SpParserResult const *result)
Get number of fields of this result.
SpData sp_parser_result_get_error_message(SpParserResult const *result)
Retrieve error message from parser result.
SpData sp_field_get_name(SpField const *field)
Returns the name of the given field.
SpData sp_parser_result_get_json_values(SpParserResult const *result)
Returns the json string value of the fields in a result.
Parser result field.
SpField const * sp_parser_result_get_field_by_index(SpParserResult const *result, size_t index)
Get the data associated with a field.
SpField const * sp_parser_result_get_field_by_name(SpParserResult const *result, char const *field_name)
Get the data associated with a field.
SpData sp_field_get_json_values(SpField const *field)
Returns the json representation of the given field.
Represents a binary blob of data, or a string of characters.
SpBool sp_parser_result_is_ok(SpParserResult const *result)
Returns true when result contains a valid result, false if an error occurred during parsing...
Parser result.
void sp_parser_result_free(SpParserResult *result)
Free the parsing result and any resource associated with it, including all its fields.
SpData sp_field_get_string_value(SpField const *field)
Returns the string value of the given field.
SpData sp_field_get_issue(SpField const *field, uint32_t index)
Returns issue string at the given index.