Last change
on this file since 10480 was 10480, checked in by tbretz, 14 years ago |
New version V19r19 with some important bug fixes.
|
File size:
567 bytes
|
Line | |
---|
1 | #ifndef __TOKENSTRINGDEFS
|
---|
2 | #define __TOKENSTRINGDEFS
|
---|
3 | #include <string.h>
|
---|
4 | #include "dim_core.hxx"
|
---|
5 |
|
---|
6 | class DllExp TokenString
|
---|
7 | {
|
---|
8 | public:
|
---|
9 |
|
---|
10 | TokenString(char *str);
|
---|
11 | TokenString(char *str, char *seps);
|
---|
12 | ~TokenString();
|
---|
13 | int getToken(char *&token);
|
---|
14 | void pushToken();
|
---|
15 | void popToken();
|
---|
16 | int cmpToken(char *str);
|
---|
17 | int firstToken();
|
---|
18 | int getNTokens();
|
---|
19 | int getNTokens(char *str);
|
---|
20 |
|
---|
21 | private:
|
---|
22 | void store_str(char *str);
|
---|
23 | char *token_buff;
|
---|
24 | char *token_ptr;
|
---|
25 | char *curr_token_ptr;
|
---|
26 | char *push_token_ptr;
|
---|
27 | char *token_seps;
|
---|
28 | int n_tokens;
|
---|
29 | };
|
---|
30 |
|
---|
31 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.