:relfileprefix: ../../../ [#boost-urls-grammar-token_rule] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/grammar.adoc[pass:[grammar]]::token_rule Match a non-empty string of characters from a set === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- template constexpr pass:q[_implementation-defined_] token_rule(CharSet const& cs) noexcept; ---- === Description 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( "abcdef", token_rule( alpha_chars ) ); ---- [,cpp] ---- token = 1*( ch ) ---- === Parameters |=== | Name | Description | *cs* | The character set to use |=== === See Also xref:boost/urls/grammar/alpha_chars.adoc[alpha_chars] , xref:boost/urls/grammar/parse-02.adoc[parse] .