:relfileprefix: ../../../ [#7584DE9369114B8DE192D06BB986479ECD770AA3] = Function params_encoded_base::count pass:v,q[Return the number of matching keys] == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- size_t count( xref:boost/urls/pct_string_view.adoc[pct_string_view] key, xref:boost/urls/ignore_case_param.adoc[ignore_case_param] ic = = {}) const noexcept; ---- == Description pass:v,q[This function examines the parameters] pass:v,q[in the container to find the number of] pass:v,q[matches for the specified key,] pass:v,q[which may contain percent escapes.] pass:v,q[The comparison is performed as if all] pass:v,q[escaped characters were decoded first.] === Example [,cpp] ---- assert( url_view( "?first=John&last=Doe" ).encoded_params().count( "first" ) == 1 ); ---- === Complexity pass:v,q[Linear in `this->buffer().size()`.] === Exception Safety pass:v,q[Exceptions thrown on invalid input.] == Return Value * `size_t` == Parameters |=== | Name | Type | *key* | `pct_string_view` | *ic* | `ignore_case_param` |===