4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::parse::basic_string< Ch > Class Template Reference

Detailed Description

template<typename Ch>
class fcppt::parse::basic_string< Ch >

Parses a specific string and returns nothing.

For a string c_1...c_n, the parser basic_string{c_1...c_n} succeeds if the next inputs characters are c_1, ..., c_n. Otherwise, an error is returned. This parser returns fcppt::unit on success.

Inheritance diagram for fcppt::parse::basic_string< Ch >:
fcppt::parse::tag

Public Types

using result_type = fcppt::unit
 

Public Member Functions

 basic_string (std::basic_string< Ch > &&)
 
template<typename Skipper >
fcppt::parse::result< Ch, result_typeparse (fcppt::reference< fcppt::parse::basic_stream< Ch > >, Skipper const &) const
 

Member Typedef Documentation

◆ result_type

template<typename Ch >
using fcppt::parse::basic_string< Ch >::result_type = fcppt::unit

Constructor & Destructor Documentation

◆ basic_string()

template<typename Ch >
fcppt::parse::basic_string< Ch >::basic_string ( std::basic_string< Ch > && )
explicit

Member Function Documentation

◆ parse()

template<typename Ch >
template<typename Skipper >
fcppt::parse::result< Ch, result_type > fcppt::parse::basic_string< Ch >::parse ( fcppt::reference< fcppt::parse::basic_stream< Ch > > ,
Skipper const &  ) const
nodiscard