88 #ifndef REGIFY_UTIL_CLEANER_H
89 #define REGIFY_UTIL_CLEANER_H
RUAPI int32_t ruCleanAdd(ruCleaner rc, trans_chars instr, trans_chars substitute)
void(* ruCleanerCb)(perm_ptr user_data, trans_chars key, trans_chars subst)
Definition: cleaner.h:140
void * ruCleaner
Definition: regify-util.h:690
rusize_s(* rcReadFn)(perm_ptr ctx, ptr buf, rusize len)
Definition: cleaner.h:110
RUAPI int32_t ruCleanRemove(ruCleaner rc, trans_chars instr)
RUAPI ruCleaner ruCleanFree(ruCleaner rc)
RUAPI int32_t ruCleanToString(ruCleaner rc, trans_chars in, rusize len, ruString *out)
Does replacements in given string and returns out in given String Object.
RUAPI ruCleaner ruCleanNew(rusize chunkSize)
Creates a new ruCleaner object. To be freed with ruCleanFree.
RUAPI int32_t ruCleanIo(ruCleaner rc, rcReadFn reader, perm_ptr readCtx, rcWriteFn writer, perm_ptr writeCtx)
Does replacements using the given I/O functions.
RUAPI int32_t ruCleanToWriter(ruCleaner rc, trans_chars in, rusize len, rcWriteFn writer, perm_ptr writeCtx)
Does replacements on given string using the given Output function.
RUAPI int32_t ruCleanDump(ruCleaner cp, ruCleanerCb lf, perm_ptr user_data)
rusize_s(* rcWriteFn)(perm_ptr ctx, trans_ptr buf, rusize len)
Definition: cleaner.h:105
const void * trans_ptr
A transient pointer.
Definition: regify-util.h:287
const void * perm_ptr
A permanent pointer.
Definition: regify-util.h:277
const char * trans_chars
A transient NULL terminated string pointer.
Definition: regify-util.h:186
size_t rusize
Abstracted version of size_t.
Definition: regify-util.h:338
void * ptr
A generic pointer.
Definition: regify-util.h:304
signed long rusize_s
Abstracted version of size_t but signed.
Definition: regify-util.h:152
void * ruString
An opaque data type representing a regify-util string object.
Definition: string.h:45