61 for (v = args, n = 1, len = 0; n <= x->
argc; v++, n++)
67 len += (*v)->internal.len;
77 for (v = args, c = s, n = 0; n < x->
argc;
78 c += (*v)->internal.len, v++, n++)
80 memcpy(c, (*v)->internal.s, (*v)->internal.len);
138 for (v = args, n = 1, len = 0; n <= x->
argc; v++, n++) {
143 len += (*v)->internal.len;
153 for (v = args, c = s, n = 0; n < x->
argc;
154 c += (*v)->internal.len, v++, n++)
156 memcpy(c, (*v)->internal.s, (*v)->internal.len);
210 &arg1->internal, &arg2->internal, x->
xctx);
355 for (v = args, n = 1, len = 0; n <= x->
argc; v++, n++) {
360 len += (*v)->internal.len;
370 for (v = args, c = s, n = 0; n < x->
argc;
371 c += (*v)->internal.len, v++, n++)
373 memcpy(c, (*v)->internal.s, (*v)->internal.len);
Adaptive Framework Core Internal.
afw_value_create_string(const afw_utf8_t *internal, const afw_pool_t *p, afw_xctx_t *xctx)
Create function for unmanaged data type string value.
char afw_utf8_octet_t
8 bits of utf-8 codepoint.
apr_size_t afw_size_t
size_t.
#define AFW_THROW_ERROR_Z(code, message_z, xctx)
Macro used to set error and 0 rv in xctx and throw it.
#define AFW_FUNCTION_EVALUATE_DATA_TYPE_PARAMETER(A_RESULT, A_N, A_TYPE)
Evaluate an arg for a particular data type.
#define AFW_FUNCTION_EVALUATE_REQUIRED_DATA_TYPE_PARAMETER(A_RESULT, A_N, A_TYPE)
Evaluate an arg for a particular data type.
const afw_value_t * afw_function_execute_normalize_to_lower_case_string(afw_function_execute_t *x)
Adaptive Function normalize_to_lower_case<string>
const afw_value_t * afw_function_execute_normalize_space_string(afw_function_execute_t *x)
Adaptive Function normalize_space<string>
const afw_value_t * afw_function_execute_string(afw_function_execute_t *x)
Adaptive Function string
const afw_value_t * afw_function_execute_eq_ignore_case_string(afw_function_execute_t *x)
Adaptive Function eq_ignore_case<string>
const afw_value_t * afw_function_execute_add_string(afw_function_execute_t *x)
Adaptive Function add<string>
const afw_value_t * afw_function_execute_concat(afw_function_execute_t *x)
Adaptive Function concat
const afw_value_t * afw_function_execute_url_decode(afw_function_execute_t *x)
Adaptive Function url_decode
#define afw_pool_malloc(instance, size, xctx)
Call method malloc of interface afw_pool.
#define afw_pool_calloc(instance, size, xctx)
Call method calloc of interface afw_pool.
int afw_utf8_compare_ignore_case(const afw_utf8_t *s1, const afw_utf8_t *s2, afw_xctx_t *xctx)
Compare two strings ignoring case.
const afw_utf8_t * afw_utf8_normalize_space(const afw_utf8_t *s, const afw_pool_t *p, afw_xctx_t *xctx)
Create a utf-8 sting with spaces normalized in specified pool.
const afw_utf8_t * afw_utf8_to_lower(const afw_utf8_t *s, const afw_pool_t *p, afw_xctx_t *xctx)
Convert utf-8 sting to lower case in specified pool.
#define afw_utf8_create(s, len, p, xctx)
Create utf-8 string without copy unless necessary in pool specified.
afw_value_undefined_as_string
Adaptive value containing <undefined> string.
afw_value_false
Adaptive value false.
afw_value_empty_string
Adaptive value empty string.
afw_value_true
Adaptive value true.
Function execute parameter.
afw_xctx_t * xctx
The execution context (xctx) of caller.
const afw_pool_t * p
Pool for result.
afw_size_t argc
This is the argv count not counting argv[0].
NFC normalized UTF-8 string.
Interface afw_value public struct.
struct for data type string values.