WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Scanp.h
1#ifndef _WINC_SCANP
2#define _WINC_SCANP
3
4namespace WXP {
5 class Scanp {
6 const char *str;
7 int str_len; /* Length of string */
8 int off; /* Offset into string */
9 int len; /* Number of characters matched */
10 int tot_assign; /* Total assigned */
11 int match; /* Total matched */
12 bool finish; /* Completed the string parsing */
13
14 public:
15 int init();
16 int scan( const char *pat, ... );
17 int set( const char *str );
18 int getOffset();
19 int offset( int off );
20 int inc( int off );
21 int inc();
22 const char *string();
23 char getChar( int off );
24 int search( const char *str );
25 int print();
26 inline int length() { return len; };
27 inline int matched() { return match; };
28 inline int assigned() { return tot_assign; };
29 inline bool finished() { return finish; };
30 };
31}
32#endif
This class parses data given expressions to search for.
Definition Scanp.h:5
const char * string()
Definition Scanp.cc:759
int getOffset()
Definition Scanp.cc:725
int search(const char *str)
Definition Scanp.cc:777
int scan(const char *pat,...)
This routine scans a character string for data and parses information using a pattern description str...
Definition Scanp.cc:71
int inc()
Definition Scanp.cc:750
int init()
Definition Scanp.cc:23
int set(const char *str)
Definition Scanp.cc:714
int offset(int off)
Definition Scanp.cc:733
char getChar(int off)
Definition Scanp.cc:768
All WXP classes fall under the WXP namespace.
Definition Angle.h:4