------------------------------------------------------------------------------------ */ Get the next pair from the query string. Three cases - "name=value" - "name" - "name=" The latter two are distinguished by the value pointing at @c name.end() or one past.). */
| 1199 | The latter two are distinguished by the value pointing at @c name.end() or one past.). |
| 1200 | */ |
| 1201 | std::tuple<TextView, TextView> |
| 1202 | take_query_pair(TextView &src) |
| 1203 | { |
| 1204 | auto token = src.take_prefix_at("&;"_tv); |
| 1205 | auto name = token.take_prefix_at('='); |
| 1206 | return {name, token}; |
| 1207 | } |
| 1208 | |
| 1209 | std::tuple<TextView, TextView> |
| 1210 | query_value_for(TextView query_str, TextView search_key, bool caseless_p) |
no test coverage detected