cttl_impl::xtl_quote_c_double_quote< MiddleT, CharT > Class Template Reference

Implements behavior of C double quote helper function. More...

#include <xtl_quote.h>

Inheritance diagram for cttl_impl::xtl_quote_c_double_quote< MiddleT, CharT >:

cttl_impl::xtl_quote_base< xtl_wrap< xtl_char< CharT > >, MiddleT, xtl_wrap< xtl_char< CharT > >, xtl_quote_c_double_quote< MiddleT, CharT > >

List of all members.

Public Member Functions

template<typename SubstrT >
bool match_pair (SubstrT &edge_)
 Implements grammar evaluation behavior of C double quote helper function.
 xtl_quote_c_double_quote (MiddleT const &middle_)
 Constructs and initializes the object.
 xtl_quote_c_double_quote ()
 Default constructor assumes that any content inside the quotes is acceptable.


Detailed Description

template<typename MiddleT, typename CharT>
class cttl_impl::xtl_quote_c_double_quote< MiddleT, CharT >

Implements behavior of C double quote helper function.

Template Parameters:
MiddleT specifies type of grammar expression, describing interior clause of the quote.
CharT specifies character type of the quote.

Definition at line 644 of file xtl_quote.h.


Constructor & Destructor Documentation

template<typename MiddleT, typename CharT>
cttl_impl::xtl_quote_c_double_quote< MiddleT, CharT >::xtl_quote_c_double_quote (  ) 

Default constructor assumes that any content inside the quotes is acceptable.

Definition at line 651 of file xtl_quote.h.

00652     : xtl_quote_base<
00653         xtl_wrap< xtl_char< CharT > >,
00654         relaxed_bool_T,
00655         xtl_wrap< xtl_char< CharT > >,
00656         xtl_quote_c_double_quote< xtl_wrap< xtl_bool< true > >, CharT >
00657         >( CharT( '\"' ), true, CharT( '\"' ) )
00658     {
00659     }

template<typename MiddleT, typename CharT>
cttl_impl::xtl_quote_c_double_quote< MiddleT, CharT >::xtl_quote_c_double_quote ( MiddleT const &  middle_  ) 

Constructs and initializes the object.

Definition at line 662 of file xtl_quote.h.

00663     : xtl_quote_base< xtl_wrap< xtl_char< CharT > >, MiddleT, xtl_wrap< xtl_char< CharT > >, xtl_quote_c_double_quote< MiddleT, CharT > >( CharT( '\"' ), middle_, CharT( '\"' ) )
00664     {
00665     }


Member Function Documentation

template<typename MiddleT, typename CharT>
template<typename SubstrT >
bool cttl_impl::xtl_quote_c_double_quote< MiddleT, CharT >::match_pair ( SubstrT &  edge_  ) 

Implements grammar evaluation behavior of C double quote helper function.

Definition at line 674 of file xtl_quote.h.

00675     {
00676 //      typedef typename SubstrT::char_T char_T;
00677         static const CharT chars2find[] = { CharT( '\"' ), CharT( '\n' ), CharT( '\r' ), CharT( '\\' ), 0x00 };
00678         return xtl_match_quote( edge_, this->m_middle, this->m_right, chars2find ); // "\"\n\r\\"
00679     }


The documentation for this class was generated from the following file:

Generated on Sun Aug 23 13:43:47 2009 for Common Text Transformation Library by  doxygen 1.5.9