6 #include "../hunspell/csutil.hxx"
7 #include "manparser.hxx"
14 ManParser::ManParser() {
17 ManParser::ManParser(const char * wordchars
)
22 ManParser::ManParser(unsigned short * wordchars
, int len
)
27 ManParser::~ManParser()
31 char * ManParser::next_token()
36 case 1: // command arguments
37 if (line
[actual
][head
] == ' ') state
= 2;
39 case 0: // dot in begin of line
40 if (line
[actual
][0] == '.') {
47 case 2: // non word chars
48 if (is_wordchar(line
[actual
] + head
)) {
51 } else if ((line
[actual
][head
] == '\\') &&
52 (line
[actual
][head
+ 1] == 'f') &&
53 (line
[actual
][head
+ 2] != '\0')) {
58 if (! is_wordchar(line
[actual
] + head
)) {
60 char * t
= alloc_token(token
, &head
);
65 if (next_char(line
[actual
], &head
)) {