13 for (std::vector<std::string>::const_iterator iPath = paths.begin();
14 iPath != paths.end(); ++iPath) {
15 if (iPath != paths.begin()) mergedPaths +=
delimeter_;
16 if (iPath->find(
delimeter_) != std::string::npos) {
20 mergedPaths += *iPath;
26 if (mergedPaths.empty()) mergedPaths =
delimeter_;
38 std::vector<std::string>
result;
44 if (delimiterPos == std::string::npos) {
45 result.push_back(s.substr(previousPos));
48 result.push_back(s.substr(previousPos, delimiterPos - previousPos));
49 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: