| 102 | |
| 103 | template <typename T> |
| 104 | static String |
| 105 | getKeyQuery(const char *query, int length, const ConfigQuery &config) |
| 106 | { |
| 107 | std::istringstream istr(String(query, length)); |
| 108 | String token; |
| 109 | T container; |
| 110 | |
| 111 | while (std::getline(istr, token, '&')) { |
| 112 | String::size_type pos(token.find_first_of('=')); |
| 113 | String param(token.substr(0, pos == String::npos ? token.size() : pos)); |
| 114 | |
| 115 | if (config.toBeAdded(param)) { |
| 116 | ::appendToContainer(container, token); |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | return containerToString<T, typename T::const_iterator>(container, "?", "&"); |
| 121 | } |
| 122 | |
| 123 | static void |
| 124 | ltrim(String &target) |
nothing calls this directly
no test coverage detected