more delistification

This commit is contained in:
Jean-Francois Dockes
2012-04-12 08:15:50 +02:00
parent ec7b40a52e
commit 4eaf12fb9c
16 changed files with 92 additions and 96 deletions
+2 -2
View File
@@ -780,9 +780,9 @@ template <class T> bool u8stringToStrings(const string &s, T &tokens)
return true;
}
bool TextSplit::stringToStrings(const string &s, list<string> &tokens)
bool TextSplit::stringToStrings(const string &s, vector<string> &tokens)
{
return u8stringToStrings<list<string> >(s, tokens);
return u8stringToStrings<vector<string> >(s, tokens);
}
#else // TEST driver ->
+3 -3
View File
@@ -18,11 +18,11 @@
#define _TEXTSPLIT_H_INCLUDED_
#include <string>
#include <list>
#include <vector>
#ifndef NO_NAMESPACES
using std::string;
using std::list;
using std::vector;
#endif
class Utf8Iter;
@@ -94,7 +94,7 @@ public:
* non-utf-8 input (iso-8859 config files work ok). This hopefully
* handles all Unicode whitespace, but needs correct utf-8 input
*/
static bool stringToStrings(const string &s, list<string> &tokens);
static bool stringToStrings(const string &s, vector<string> &tokens);
/** Is char CJK ? */
static bool isCJK(int c);