ScummVM API documentation
string_parser.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef TITANIC_STRING_PARSER_H
23
#define TITANIC_STRING_PARSER_H
24
25
#include "titanic/support/string.h"
26
27
namespace
Titanic {
28
29
class
CStringParser
:
public
CString
{
30
private
:
31
uint _index;
32
private
:
36
char
currentChar()
const
;
37
41
char
getNextChar();
42
46
void
skipSpaces();
47
public
:
48
CStringParser
() :
CString
(), _index(0) {}
49
CStringParser
(
const
CString
&str) :
CString
(str), _index(0) {}
50
55
void
skipSeparators
(
const
CString
&separatorChars);
56
64
bool
parse
(
CString
&resultStr,
const
CString
&separatorChars,
bool
allowQuotes =
false
);
65
69
uint
readInt
();
70
71
};
72
73
}
// End of namespace Titanic
74
75
#endif
/* TITANIC_STRING_PARSER_H */
Titanic::CString
Definition:
string.h:40
Titanic::CStringParser
Definition:
string_parser.h:29
Titanic::CStringParser::parse
bool parse(CString &resultStr, const CString &separatorChars, bool allowQuotes=false)
Titanic::CStringParser::skipSeparators
void skipSeparators(const CString &separatorChars)
Titanic::CStringParser::readInt
uint readInt()
engines
titanic
support
string_parser.h
Generated on Sat Oct 24 2026 09:24:58 for ScummVM API documentation by
1.9.4