WXP C++ Library
Version 6.74.9
Loading...
Searching...
No Matches
include
Scanp.h
1
#ifndef _WINC_SCANP
2
#define _WINC_SCANP
3
4
namespace
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
WXP::Scanp
This class parses data given expressions to search for.
Definition
Scanp.h:5
WXP::Scanp::string
const char * string()
Definition
Scanp.cc:759
WXP::Scanp::getOffset
int getOffset()
Definition
Scanp.cc:725
WXP::Scanp::search
int search(const char *str)
Definition
Scanp.cc:777
WXP::Scanp::scan
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
WXP::Scanp::inc
int inc()
Definition
Scanp.cc:750
WXP::Scanp::init
int init()
Definition
Scanp.cc:23
WXP::Scanp::set
int set(const char *str)
Definition
Scanp.cc:714
WXP::Scanp::offset
int offset(int off)
Definition
Scanp.cc:733
WXP::Scanp::getChar
char getChar(int off)
Definition
Scanp.cc:768
WXP
All WXP classes fall under the WXP namespace.
Definition
Angle.h:4
Generated on Sun Jul 28 2024 18:05:35 for WXP C++ Library by
1.9.7