Exemplo n.º 1
0
 void get_name_(FwdIter &begin, FwdIter end, string_type &name)
 {
     this->eat_ws_(begin, end);
     for(name.clear(); begin != end && this->is_alnum_(*begin); ++begin)
     {
         name.push_back(*begin);
     }
     this->eat_ws_(begin, end);
     detail::ensure(!name.empty(), regex_constants::error_paren, "incomplete extension");
 }
Exemplo n.º 2
0
    int_type overflow(int_type ch) {
        BOOST_ASSERT(string != nullptr);

        basic_ostringstreambuf::sync();
        if (!traits_type::eq_int_type(ch, traits_type::eof())) {
            string->push_back(traits_type::to_char_type(ch));
            return ch;
        }

        return traits_type::not_eof(ch);
    }
Exemplo n.º 3
0
 //! Puts an unbuffered character to the string
 int_type overflow(int_type c)
 {
     BOOST_ASSERT(m_Storage != 0);
     basic_ostringstreambuf::sync();
     if (!traits_type::eq_int_type(c, traits_type::eof()))
     {
         m_Storage->push_back(traits_type::to_char_type(c));
         return c;
     }
     else
         return traits_type::not_eof(c);
 }