Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template parse_match_result



// In header: <boost/date_time/string_parse_tree.hpp>

template<typename charT> 
struct parse_match_result {
  // types
  typedef std::basic_string< charT > string_type;

  enum PARSE_STATE { PARSE_ERROR =  -1 };

  // construct/copy/destruct

  // public member functions
  string_type remaining() const;
  charT last_char() const;
  bool has_remaining() const;
  string_type cache;
  unsigned short match_depth;
  short current_match;


parse_match_result public construct/copy/destruct

  1. parse_match_result();

parse_match_result public member functions

  1. string_type remaining() const;
  2. charT last_char() const;
  3. bool has_remaining() const;
    Returns true if more characters were parsed than was necessary.

    Should be used in conjunction with last_char() to get the remaining character.