|
a/src/utils/smallut.h |
|
b/src/utils/smallut.h |
|
... |
|
... |
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _SMALLUT_H_INCLUDED_
|
17 |
#ifndef _SMALLUT_H_INCLUDED_
|
18 |
#define _SMALLUT_H_INCLUDED_
|
18 |
#define _SMALLUT_H_INCLUDED_
|
19 |
/* @(#$Id: smallut.h,v 1.25 2006-12-19 12:11:21 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: smallut.h,v 1.26 2007-02-08 17:05:12 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
#include <string>
|
20 |
#include <string>
|
21 |
#include <list>
|
21 |
#include <list>
|
22 |
#include <map>
|
22 |
#include <map>
|
23 |
|
23 |
|
24 |
#ifndef NO_NAMESPACES
|
24 |
#ifndef NO_NAMESPACES
|
|
... |
|
... |
43 |
*
|
43 |
*
|
44 |
* Token delimiter is " \t\n" except inside dquotes. dquote inside
|
44 |
* Token delimiter is " \t\n" except inside dquotes. dquote inside
|
45 |
* dquotes can be escaped with \ etc...
|
45 |
* dquotes can be escaped with \ etc...
|
46 |
*/
|
46 |
*/
|
47 |
extern bool stringToStrings(const string &s, list<string> &tokens);
|
47 |
extern bool stringToStrings(const string &s, list<string> &tokens);
|
|
|
48 |
/**
|
|
|
49 |
* Inverse operation:
|
|
|
50 |
*/
|
|
|
51 |
extern void stringsToString(const list<string> &tokens, string &s);
|
48 |
|
52 |
|
49 |
/**
|
53 |
/**
|
50 |
* Split input string. No handling of quoting
|
54 |
* Split input string. No handling of quoting
|
51 |
*/
|
55 |
*/
|
52 |
extern void stringToTokens(const string &s, list<string> &tokens,
|
56 |
extern void stringToTokens(const string &s, list<string> &tokens,
|