Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Typedefs | Functions
afw_query_criteria.c File Reference

AFW Query criteria functions. More...

#include "afw_internal.h"
#include <libxml/xmlregexp.h>

Go to the source code of this file.

Data Structures

struct  impl_string_parser_s
 
struct  impl_AdaptiveQueryCriteria_object_parser_s
 
struct  impl_op_s
 
struct  impl_rql_op_s
 
struct  impl_fiql_op_s
 

Macros

#define IMPL_STRING_THROW_ERROR_Z(message_z)
 
#define IMPL_STRING_THROW_ERROR_FZ(format_z, ...)
 

Typedefs

typedef struct impl_string_parser_s impl_string_parser_t
 
typedef struct impl_AdaptiveQueryCriteria_object_parser_s impl_AdaptiveQueryCriteria_object_parser_t
 
typedef struct impl_op_s impl_op_t
 
typedef struct impl_rql_op_s impl_rql_op_t
 
typedef struct impl_fiql_op_s impl_fiql_op_t
 

Functions

afw_boolean_t impl_token_equal (impl_string_parser_t *parser, const afw_utf8_t *s)
 
afw_boolean_t impl_token_equal_z (impl_string_parser_t *parser, const afw_utf8_z_t *z)
 
void impl_token_copy (impl_string_parser_t *parser, afw_utf8_t *to)
 
 afw_query_criteria_parse_url_encoded_rql_string (const afw_utf8_t *url_encoded_rql_string, const afw_object_type_t *object_type, const afw_pool_t *p, afw_xctx_t *xctx)
 Parse URI encoded RQL query string. More...
 
 afw_query_criteria_parse_AdaptiveQueryCriteria_object (const afw_object_t *query_object, const afw_object_type_t *object_type, const afw_pool_t *p, afw_xctx_t *xctx)
 Parse URI encoded query string. More...
 
 afw_query_criteria_test_object (const afw_object_t *obj, const afw_query_criteria_t *criteria, const afw_pool_t *p, afw_xctx_t *xctx)
 Test object against query criteria. More...
 
 afw_query_criteria_to_AdaptiveQueryCriteria_object (const afw_query_criteria_t *criteria, const afw_pool_t *p, afw_xctx_t *xctx)
 Convert query criteria to a AdaptiveQueryCriteria object. More...
 
 afw_query_criteria_to_query_string (const afw_query_criteria_t *criteria, afw_query_criteria_style_t style, const afw_pool_t *p, afw_xctx_t *xctx)
 Convert query criteria to query string. More...
 

Detailed Description

AFW Query criteria functions.

Definition in file afw_query_criteria.c.

Macro Definition Documentation

◆ IMPL_STRING_THROW_ERROR_FZ

#define IMPL_STRING_THROW_ERROR_FZ (   format_z,
  ... 
)
Value:
do { \
impl_string_parser_set_error_fz(parser, \
AFW__FILE_LINE__, format_z, __VA_ARGS__); \
longjmp(((parser->xctx)->current_try->throw_jmp_buf), \
(afw_error_code_syntax)); \
} while (0)
#define AFW__FILE_LINE__
file:line
Definition: afw_common.h:148

Definition at line 502 of file afw_query_criteria.c.

◆ IMPL_STRING_THROW_ERROR_Z

#define IMPL_STRING_THROW_ERROR_Z (   message_z)
Value:
do { \
impl_string_parser_set_error_z(parser, \
AFW__FILE_LINE__, message_z); \
longjmp(((parser->xctx)->current_try->throw_jmp_buf), \
(afw_error_code_syntax)); \
} while (0)

Definition at line 492 of file afw_query_criteria.c.