| 240 | } |
| 241 | |
| 242 | std::string QueryParser::join(const QStringList &strings, const std::string &delim) |
| 243 | { |
| 244 | return std::accumulate(strings.begin(), strings.end(), std::string(), |
| 245 | [&delim](const std::string &a, const QString &b) -> std::string { |
| 246 | return a + (a.length() > 0 && b.length() > 0 ? delim : "") + b.toStdString(); |
| 247 | }); |
| 248 | } |
| 249 | |
| 250 | QStringList QueryParser::split(const std::string &string, char delim) |
| 251 | { |
no outgoing calls