[#boost-urls-grammar-delim_rule]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::delim&lowbar;rule
:relfileprefix: ../../../
:mrdocs:


Match a character literal

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/delim_rule.hpp#L78[boost&sol;url&sol;grammar&sol;delim&lowbar;rule&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
&sol;&ast; implementation-defined &ast;&sol;::xref:boost/urls/grammar/implementation_defined/ch_delim_rule.adoc[ch&lowbar;delim&lowbar;rule]
xref:boost/urls/grammar/delim_rule-02.adoc[delim&lowbar;rule](char ch) noexcept;
----

[.small]#xref:boost/urls/grammar/delim_rule-02.adoc[_» more..._]#

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:boost/urls/grammar/CharSet.adoc[CharSet] CS&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;::xref:boost/urls/grammar/implementation_defined/cs_delim_rule.adoc[cs&lowbar;delim&lowbar;rule]&lt;CS&gt;
xref:boost/urls/grammar/delim_rule-01.adoc[delim&lowbar;rule](CS const& cs) noexcept
requires ! std&colon;&colon;is&lowbar;convertible&lt;
        CS, char&gt;&colon;&colon;value;
----

[.small]#xref:boost/urls/grammar/delim_rule-01.adoc[_» more..._]#

== Description


This matches the specified character&period;    The value is a reference to the character    in the underlying buffer, expressed as a    `core&colon;&colon;string&lowbar;view`&period; The function xref:boost/urls/grammar/squelch.adoc[squelch]    may be used to turn this into `void` instead&period;    If there is no more input, the error code    xref:boost/urls/grammar/error.adoc[error&colon;&colon;need&lowbar;more] is returned&period;


=== Value Type

[,cpp]
----
using value_type = core::string_view;
----

=== Example

Rules are used with the function xref:boost/urls/grammar/parse-02.adoc[parse]&period;

[,cpp]
----
system::result< core::string_view > rv = parse( ".", delim_rule('.') );
----

=== BNF

[,cpp]
----
char        = %00-FF
----


== Parameters


|===
| Name | Description

| *ch*
| The character to match


| *cs*
| The character set to use&period;


|===

== See Also


xref:boost/urls/grammar/parse-02.adoc[parse],        xref:boost/urls/grammar/squelch.adoc[squelch]&period;






[.small]#Created with https://www.mrdocs.com[MrDocs]#
