:relfileprefix: ../../../
[#065429A1C8CDF6975CD7F319E1D6EAF112D09733]

= Function params_encoded_base::find

pass:v,q[Find a matching key]


== Synopsis

Declared in header `</boost/url/params_encoded_base.hpp#L408[boost/url/params_encoded_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/params_encoded_base/iterator.adoc[iterator]
find(
    xref:boost/urls/params_encoded_base/iterator.adoc[iterator] from,
    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 a match for]
pass:v,q[the specified key, which may contain]
pass:v,q[percent escapes.]
pass:v,q[The comparison is performed as if all]
pass:v,q[escaped characters were decoded first.]
pass:v,q[The search starts at `from`]
pass:v,q[and proceeds forward until either the]
pass:v,q[key is found or the end of the range is]
pass:v,q[reached, in which case `end()` is]
pass:v,q[returned.]

=== Example
[,cpp]
----
url_view u( "?First=John&Last=Doe" );

assert( u.encoded_params().find( "first" ) != u.encoded_params().find( "first", ignore_case ) );
----

=== Complexity
pass:v,q[Linear in `this->buffer().size()`.]

=== Exception Safety
pass:v,q[Exceptions thrown on invalid input.]



== Return Value

* `iterator` 


== Parameters

|===
| Name | Type 

| *from*
| `iterator`

| *key*
| `pct_string_view`

| *ic*
| `ignore_case_param`

|===



