summaryrefslogtreecommitdiff
path: root/src/parse_helper.hh
blob: 5479ef20d9ab2777e4826e7140ac9734fa098ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*******************************************************************************
   This file is part of LibTMCG.

 Copyright (C) 2004, 2006, 2016, 2017  Heiko Stamer <[email protected]>

   LibTMCG is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   LibTMCG is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with LibTMCG; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*******************************************************************************/

#ifndef INCLUDED_parse_helper_HH
	#define INCLUDED_parse_helper_HH
	
	#include <string>
	
	namespace TMCG_ParseHelper
	{
		// simple methods for parsing
		bool cm
			(std::string &s, const std::string &c, char p);
		bool nx
			(std::string &s, char p);
		bool gs
			(const std::string &s, char p, std::string &out);
	}
#endif