8 #ifndef INCL_evo_impl_map_alg_h     9 #define INCL_evo_impl_map_alg_h    11 #include "../strtok.h"    23     template<
class TMap, 
class TStr>
    24     typename TMap::Size map_addsplit(TMap& map, 
const TStr& str, 
char delim=
',', 
char kvdelim=
'=') {
    26         delims_buf[0] = delim;
    27         delims_buf[1] = kvdelim;
    28         const SubString delims(delims_buf, 2);
    29         const SubString EMPTY;
    31         typename TMap::Size count = 0;
    34         for (; tok.nextany(delims); ++count) {
    35             typename TMap::Value& val = map.get(tok.value().convert<
typename TMap::Key>(), &created);
    36             if (tok.delim().null() || *tok.delim() == delim) {
    41                     val = tok.value().convert<
typename TMap::Value>();
 Evo C++ Library namespace. 
Definition: alg.h:11
 
static void init(Item *data, ulong size=1)
Initialize data using default constructor. 
Definition: container.h:198