ArchBlackmann irc bot - works in ReactOS - happy hacking
[reactos.git] / rosapps / games / ArchBlackmann / SplitJoin.h
1 // SplitJoin.h
2 //
3 // This code is copyright 2003-2004 Royce Mitchell III
4 // and released under the BSD & LGPL licenses
5
6 #ifndef SPLITJOIN_H
7 #define SPLITJOIN_H
8
9 #include <vector>
10 #include <string>
11
12 bool Split (
13 std::vector<std::string>& vec,
14 const char* csv,
15 char sep=',',
16 bool merge=false );
17
18 bool Join (
19 std::string& csv,
20 std::vector<std::string>& vec,
21 char sep=',' );
22
23 inline bool Split (
24 std::vector<std::string>& vec,
25 const std::string& csv,
26 char sep=',',
27 bool merge=false )
28 {
29 return Split ( vec, csv.c_str(), sep, merge );
30 }
31
32 #endif//SPLIT_H