boost::urls::grammar::unsigned_rule

Match an unsigned decimal

Synopsis

template<class Unsigned>
struct unsigned_rule;

Types

Name

Description

value_type

Member Functions

Name

Description

parse

Description

Extra leading zeroes are disallowed.

using value_type = Unsigned;

Rules are used with the function

parse .

system::result< unsigned short > rv = parse( "32767", unsigned_rule< unsigned short >{} );
unsigned      = "0" / ( ["1"..."9"] *DIGIT )

Template Parameters

Name Description

Unsigned

The unsigned integer type used to store the result.

See Also