11 for (std::vector<std::string>::const_iterator iPath = paths.begin(); iPath != paths.end(); ++iPath) {
12 if (iPath != paths.begin())
14 if (iPath->find(
delimeter_) != std::string::npos) {
18 mergedPaths += *iPath;
24 if (mergedPaths.empty())
36 std::vector<std::string>
result;
42 if (delimiterPos == std::string::npos) {
43 result.push_back(s.substr(previousPos));
46 result.push_back(s.substr(previousPos, delimiterPos - previousPos));
47 previousPos = delimiterPos + 1;
std::vector< std::string > decompose(const std::string &concatPaths) const
Decompose one value of map from concatenated string.
Container::value_type value_type
std::string compose(const std::vector< std::string > &paths) const
Compose several paths into one string :
static const std::string::value_type delimeter_
Delimeter for composing paths to one string in DB: