Mir 1.0
Mir application programming interface

Macros

#define mir_strc_sesprint(obj, pp)   (mir_strc_sesprint_r((obj), 0, (pp)))
 

Functions

mirkl_error_tmir_strc_instance_create (mirkl_object_t **obj, const char *string, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_strc_copytostr (mirkl_object_t *obj_src, char *buf_dst, mirkl_size_t len_dst)
 
mirkl_error_tmir_strc_duptostr (mirkl_object_t *obj_src, char **str_dst, apr_pool_t *pool)
 
mirkl_error_tmir_strc_procraw (mirkl_object_t *obj, mirkl_error_t *(*func)(char *, mirkl_size_t, void *), void *args)
 
mirkl_error_tmir_strc_append (mirkl_object_t *obj_dst, mirkl_object_t *obj_src)
 
mirkl_error_tmir_strc_append_str (mirkl_object_t *obj, const char *string)
 
mirkl_error_tmir_strc_cmp (mirkl_object_t *obj1, mirkl_object_t *obj2, int *ret)
 
mirkl_error_tmir_strc_get_str (mirkl_object_t *obj, const char **str)
 
void mir_strc_sesprint_r (mirkl_object_t *obj, int rank, mir_prsdata_t *pp)
 
void mir_strc_logprint (mirkl_object_t *obj)
 
void mir_strc_stdprint (mirkl_object_t *obj)
 

Variables

mirkl_object_t * MirStringClass
 String class.
 

Detailed Description

Function Documentation

◆ mir_strc_get_str()

mirkl_error_t * mir_strc_get_str ( mirkl_object_t *  obj,
const char **  str 
)

Get read-access pointer to string.

Parameters
[in]objString object.
[out]strPointer to string on output.

◆ mir_strc_instance_create()

mirkl_error_t * mir_strc_instance_create ( mirkl_object_t **  obj,
const char *  string,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool 
)

Creation of String object.

Parameters
[out]objReference to the created object.
stringString for initialization.
flagsFlags of the object.
ppReference to the parser data structure.
poolThe pool to use for allocations of object structures. Should be valid as long as the created object lives.
tmp_poolThe pool for temporary allocations. Can be deleted after calling this function.