Boost C++ Libraries

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

PrevUpHomeNext

Struct template parse_match_result

boost::date_time::parse_match_result

Synopsis

// 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 };

  // public member functions
  parse_match_result();
  string_type remaining() const;
  charT last_char() const;
  bool has_remaining() const;

  // public data members
  string_type cache;
  unsigned short match_depth;
  short current_match;
};

Description

parse_match_result public member functions

  1. parse_match_result();
  2. string_type remaining() const;
  3. charT last_char() const;
  4. 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.


PrevUpHomeNext