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

Adaptive Framework Value Functions. More...

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

Go to the source code of this file.

Functions

 afw_value_compile (const afw_value_t *value, const afw_utf8_t *source_location, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile a value. More...
 
 afw_value_compile_as (const afw_value_t *value, const afw_utf8_t *source_location, afw_compile_type_t compile_type, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile a value using specified compile type. More...
 
 afw_value_compile_and_evaluate (const afw_value_t *value, const afw_utf8_t *source_location, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile and evaluate a value. More...
 
 afw_value_compile_and_evaluate_as (const afw_value_t *value, const afw_utf8_t *source_location, afw_compile_type_t compile_type, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile and evaluate a value using specified compile type. More...
 
 afw_value_undecorate (const afw_value_t *value)
 Return undecorated value. More...
 
 afw_value_undecorated_inf_is (const afw_value_t *value, const afw_value_inf_t *inf)
 Determine if value's undecorated inf is the supplied one. More...
 
 afw_value_is_fully_evaluated (const afw_value_t *value, afw_xctx_t *xctx)
 Determine if value and all of it contained values are evaluated. More...
 
 afw_value_is_scalar (const afw_value_t *value, afw_xctx_t *xctx)
 Determine if value is scalar. More...
 
 afw_value_clone (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 Clone a value to specified pool. More...
 
 afw_value_as_utf8_z (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 
 afw_value_as_casted_utf8 (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 Convert value to casted utf8 in specified pool. More...
 
 afw_value_one_and_only (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 Return value from one entry list or single value. More...
 
 afw_value_one_and_only_as_utf8 (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 Return result of afw_value_one_and_only() as utf8. More...
 
 afw_value_as_utf8 (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 
 afw_value_make_single_string (const afw_utf8_octet_t *s, afw_size_t len, const afw_pool_t *p, afw_xctx_t *xctx)
 
 afw_value_make_string_copy (const afw_utf8_octet_t *s, afw_size_t len, const afw_pool_t *p, afw_xctx_t *xctx)
 
 afw_value_create_string_from_u8z (const afw_utf8_z_t *string_z, const afw_pool_t *p, afw_xctx_t *xctx)
 
 afw_value_evaluate_with_additional_untrusted_qualified_variables (const afw_value_t *value, const afw_value_t *untrusted_qualified_variables, const afw_pool_t *p, afw_xctx_t *xctx)
 Evaluate a value with additional insecure context. More...
 
 afw_value_convert (const afw_value_t *value, const afw_data_type_t *to_data_type, afw_boolean_t required, const afw_pool_t *p, afw_xctx_t *xctx)
 Convert a value to a value/data type. More...
 
 afw_value_convert_to_string (const afw_value_t *value, afw_boolean_t allow_undefined, const afw_pool_t *p, afw_xctx_t *xctx)
 Convert a value to a string value. More...
 
 afw_value_string_from_internal (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 
 afw_value_create_dateTime_now_utc (const afw_pool_t *p, afw_xctx_t *xctx)
 Create a dateTime value with current time. More...
 
 afw_value_create_dateTime_now_local (const afw_pool_t *p, afw_xctx_t *xctx)
 Create a dateTime value with current local time. More...
 
 afw_value_as_array_of_values (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 Return a NULL terminated list of values in a specified pool. More...
 
 afw_value_as_array_of_utf8 (const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 Return a NULL terminated list of utf8 in a specified pool. More...
 
 afw_value_equal (const afw_value_t *value1, const afw_value_t *value2, afw_xctx_t *xctx)
 Test whether two values are equal. More...
 
 afw_value_compare (const afw_value_t *value1, const afw_value_t *value2, afw_xctx_t *xctx)
 Compare two evaluated values. More...
 
 afw_value_contains (const afw_value_t *value, const afw_value_t *substring, afw_xctx_t *xctx)
 Check to see if a value contains a substring. More...
 
 afw_value_register_core_value_infs (afw_xctx_t *xctx)
 

Variables

 afw_value_null
 
 afw_value_undefined_as_string
 
 afw_value_empty_string
 
 afw_value_true
 
 afw_value_false
 

Detailed Description

Adaptive Framework Value Functions.

Definition in file afw_value.c.

Variable Documentation

◆ afw_value_empty_string

afw_value_empty_string
Initial value:
=
{ (const afw_value_t *)&impl_value_empty_string }
Interface afw_value public struct.

Definition at line 48 of file afw_value.c.

◆ afw_value_false

afw_value_false
Initial value:
=
{ (const afw_value_t *)&impl_value_false }

Definition at line 68 of file afw_value.c.

◆ afw_value_null

afw_value_null
Initial value:
=
{ (const afw_value_t *)&impl_value_null }

Definition at line 28 of file afw_value.c.

◆ afw_value_true

afw_value_true
Initial value:
=
{ (const afw_value_t *)&impl_value_true }

Definition at line 58 of file afw_value.c.

◆ afw_value_undefined_as_string

afw_value_undefined_as_string
Initial value:
=
{ (const afw_value_t *)&impl_value_undefined_string }

Definition at line 38 of file afw_value.c.