#ifndef vTXT_H_DEF #define vTXT_H_DEF #include "regular.h" #include "array.h" typedef Stack vTXT ; vTXT vtxtCreate (void) ; vTXT vtxtHandleCreate (STORE_HANDLE h) ; #define vtxtDestroy(_vtxt) stackDestroy(_vtxt) BOOL vtxtClear (vTXT blkp) ; /* clears the content */ char *vtxtPtr (vTXT blkp) ; /* the content */ char *vtxtAt (vTXT blkp, int pos) ; /* the content strating at pos*/ int vtxtLen (vTXT blkp) ; /* the current length */ void vtxtUpperCase (char *blkp) ; /* acts on a normal char buffer, uppers all letters */ void vtxtLowerCase (char *blkp) ; /* acts on a normal char buffer, lowers all letters */ int vtxtPrintf (vTXT s, char * formatDescription, ...) ; char *vtxtPrintWrapped (vTXT s, char *text, int lineLength) ; void vtextCollapseSpaces (char *buf) ; /* change \n\t into space, collapse multiple spaces into single one */ void vtextReplaceSymbol (char *blkp, char a, char b) ; /* change a into b in the whole of buf */ #endif