:relfileprefix: ../../../ [#boost-urls-grammar-delim_rule-02] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/grammar.adoc[pass:[grammar]]::delim_rule Match a character literal === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr pass:q[_implementation-defined_] delim_rule(char ch) noexcept; ---- === Description This matches the specified character. The value is a reference to the character in the underlying buffer, expressed as a `core::string_view`. The function xref:boost/urls/grammar/squelch.adoc[squelch] may be used to turn this into `void` instead. If there is no more input, the error code xref:boost/urls/grammar/error/need_more.adoc[error::need_more] is returned. [,cpp] ---- using value_type = core::string_view; ---- === Rules are used with the function xref:boost/urls/grammar/parse-02.adoc[parse] . [,cpp] ---- system::result< core::string_view > rv = parse( ".", delim_rule('.') ); ---- [,cpp] ---- char = %00-FF ---- === Parameters |=== | Name | Description | *ch* | The character to match |=== === See Also xref:boost/urls/grammar/parse-02.adoc[parse] , xref:boost/urls/grammar/squelch.adoc[squelch] .