/** * Simple ASCII trim transformation. * * @param[in] mp Memory pool to use for allocations. * @param[in] fin Input field. * @param[out] fout Output field. This is NULL on error. * @param[in] fndata Callback data * * @returns IB_OK if successful. */ static ib_status_t tfn_trim(ib_mpool_t *mp, const ib_field_t *fin, const ib_field_t **fout, void *fndata) { ib_status_t rc = tfn_strmod(mp, ib_strtrim_lr, ib_strtrim_lr_ex, fin, fout); return rc; }
/** * Compress whitespace in a string * * @param[in] mp Memory pool to use for allocations. * @param[in] fin Input field. * @param[out] fout Output field. This is NULL on error. * @param[in] fndata Callback data * * @returns IB_OK if successful. */ static ib_status_t tfn_wspc_compress(ib_mpool_t *mp, const ib_field_t *fin, const ib_field_t **fout, void *fndata) { ib_status_t rc = tfn_strmod(mp, ib_str_wspc_compress, ib_str_wspc_compress_ex, fin, fout); return rc; }
/** * Simple ASCII lowercase function. * * @param[in] mp Memory pool to use for allocations. * @param[in] fin Input field. * @param[out] fout Output field. This is NULL on error. * @param[in] fndata Callback data * * @returns IB_OK if successful. */ static ib_status_t tfn_lowercase(ib_mpool_t *mp, const ib_field_t *fin, const ib_field_t **fout, void *fndata) { ib_status_t rc = tfn_strmod(mp, ib_strlower, ib_strlower_ex, fin, fout); return rc; }
/** * Compress whitespace in a string * * @param[in] ib IronBee engine * @param[in] mp Memory pool to use for allocations. * @param[in] fndata Function specific data. * @param[in] fin Input field. * @param[out] fout Output field. * @param[out] pflags Transformation flags. * * @returns IB_OK if successful. */ static ib_status_t tfn_wspc_compress(ib_engine_t *ib, ib_mpool_t *mp, void *fndata, const ib_field_t *fin, ib_field_t **fout, ib_flags_t *pflags) { ib_status_t rc = tfn_strmod(ib, mp, ib_str_wspc_compress, ib_str_wspc_compress_ex, fin, fout, pflags); return rc; }
/** * Simple ASCII trim transformation. * * @param[in] ib IronBee engine * @param[in] mp Memory pool to use for allocations. * @param[in] fndata Function specific data. * @param[in] fin Input field. * @param[out] fout Output field. * @param[out] pflags Transformation flags. * * @returns IB_OK if successful. */ static ib_status_t tfn_trim(ib_engine_t *ib, ib_mpool_t *mp, void *fndata, const ib_field_t *fin, ib_field_t **fout, ib_flags_t *pflags) { ib_status_t rc = tfn_strmod(ib, mp, ib_strtrim_lr, ib_strtrim_lr_ex, fin, fout, pflags); return rc; }
/** * Compress whitespace in a string * * @param[in] ib IronBee engine * @param[in] mp Memory pool to use for allocations. * @param[in] fndata Function specific data. * @param[in] fin Input field. * @param[out] fout Output field. * @param[out] pflags Transformation flags. * * @returns IB_OK if successful. */ static ib_status_t tfn_wspc_compress(ib_engine_t *ib, ib_mpool_t *mp, void *fndata, const ib_field_t *fin, ib_field_t **fout, ib_flags_t *pflags) { IB_FTRACE_INIT(); ib_status_t rc = tfn_strmod(ib, mp, ib_str_wspc_compress, ib_str_wspc_compress_ex, fin, fout, pflags); IB_FTRACE_RET_STATUS(rc); }
/** * Simple ASCII lowercase function. * * @param[in] ib IronBee engine * @param[in] mp Memory pool to use for allocations. * @param[in] fndata Function specific data. * @param[in] fin Input field. * @param[out] fout Output field. * @param[out] pflags Transformation flags. * * @returns IB_OK if successful. */ static ib_status_t tfn_lowercase(ib_engine_t *ib, ib_mpool_t *mp, void *fndata, const ib_field_t *fin, ib_field_t **fout, ib_flags_t *pflags) { IB_FTRACE_INIT(); ib_status_t rc = tfn_strmod(ib, mp, ib_strlower, ib_strlower_ex, fin, fout, pflags); IB_FTRACE_RET_STATUS(rc); }