File: vtxt.h

package info (click to toggle)
acedb 4.9.39%2Bdfsg.02-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 33,796 kB
  • sloc: ansic: 256,989; perl: 2,803; cpp: 2,534; csh: 1,712; python: 862; sh: 658; makefile: 298; awk: 249; lex: 225; yacc: 221
file content (30 lines) | stat: -rw-r--r-- 1,471 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#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 */
int vtxtPrint (vTXT s, char *txt) ; /* unformatted, uninterpreted, appends to what is already there */
int vtxtPrintf (vTXT s, char * formatDescription, ...) ; /* here an above, return an int valid for vtxtAt */
char *vtxtPrintWrapped (vTXT s, char *text, int lineLength) ; 
int vtxtReplaceString (vTXT vtxt, char *a, char *b) ; /* changes a into b, returns the number of replaced strings */
int vtxtRemoveBetween (char *txt, char *begin, char *end) ; /* removes all occurences of begin...end, returns the number of removed strings */

vTXT vtxtGetURL (char *urlToGet, int timeOut) ; /* get the content of the url page, in libtcpfn.a */

void vtextUpperCase (char *blkp) ; /* acts on a normal char buffer, uppers all letters */
void vtextLowerCase (char *blkp) ; /* acts on a normal char buffer, lowers all letters */
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