Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::xpressive::null_regex_traits< Elem > Struct Template Reference

stub regex_traits for non-char data More...

#include <xpressive_fwd.hpp>

Public Types

typedef Elem char_type
 
typedef std::vector< char_typestring_type
 
typedef detail::not_a_locale locale_type
 
typedef int char_class_type
 
typedef regex_traits_version_1_tag version_tag
 

Public Member Functions

 null_regex_traits (locale_type=locale_type())
 Initialize a null_regex_traits object. More...
 
bool operator== (null_regex_traits< char_type > const &that) const
 Checks two null_regex_traits objects for equality. More...
 
bool operator!= (null_regex_traits< char_type > const &that) const
 Checks two null_regex_traits objects for inequality. More...
 
char_type widen (char ch) const
 Convert a char to a Elem. More...
 

Static Public Member Functions

static unsigned char hash (char_type ch)
 Returns a hash value for a Elem in the range [0, UCHAR_MAX]. More...
 
static char_type translate (char_type ch)
 No-op. More...
 
static char_type translate_nocase (char_type ch)
 No-op. More...
 
static bool in_range (char_type first, char_type last, char_type ch)
 Checks to see if a character is within a character range. More...
 
static bool in_range_nocase (char_type first, char_type last, char_type ch)
 Checks to see if a character is within a character range. More...
 
template<typename FwdIter >
static string_type transform (FwdIter begin, FwdIter end)
 Returns a sort key for the character sequence designated by the iterator range [F1, F2) such that if the character sequence [G1, G2) sorts before the character sequence [H1, H2) then v.transform(G1, G2) < v.transform(H1, H2). More...
 
template<typename FwdIter >
static string_type transform_primary (FwdIter begin, FwdIter end)
 Returns a sort key for the character sequence designated by the iterator range [F1, F2) such that if the character sequence [G1, G2) sorts before the character sequence [H1, H2) when character case is not considered then v.transform_primary(G1, G2) < v.transform_primary(H1, H2). More...
 
template<typename FwdIter >
static string_type lookup_collatename (FwdIter begin, FwdIter end)
 Returns a sequence of characters that represents the collating element consisting of the character sequence designated by the iterator range [F1, F2). More...
 
template<typename FwdIter >
static char_class_type lookup_classname (FwdIter begin, FwdIter end, bool icase)
 The null_regex_traits does not have character classifications, so lookup_classname() is unused. More...
 
static bool isctype (char_type ch, char_class_type mask)
 The null_regex_traits does not have character classifications, so isctype() is unused. More...
 
static int value (char_type ch, int radix)
 The null_regex_traits recognizes no elements as digits, so value() is unused. More...
 
static locale_type imbue (locale_type loc)
 Not used. More...
 
static locale_type getloc ()
 Returns locale_type(). More...
 

Detailed Description

template<typename Elem>
struct boost::xpressive::null_regex_traits< Elem >

stub regex_traits for non-char data

Member Typedef Documentation

template<typename Elem>
typedef int boost::xpressive::null_regex_traits< Elem >::char_class_type
template<typename Elem>
typedef Elem boost::xpressive::null_regex_traits< Elem >::char_type
template<typename Elem>
typedef detail::not_a_locale boost::xpressive::null_regex_traits< Elem >::locale_type
template<typename Elem>
typedef std::vector<char_type> boost::xpressive::null_regex_traits< Elem >::string_type

Constructor & Destructor Documentation

template<typename Elem>
boost::xpressive::null_regex_traits< Elem >::null_regex_traits ( locale_type  = locale_type())
inline

Initialize a null_regex_traits object.

Member Function Documentation

template<typename Elem>
static locale_type boost::xpressive::null_regex_traits< Elem >::getloc ( )
inlinestatic

Returns locale_type().

Returns
locale_type()
template<typename Elem>
static unsigned char boost::xpressive::null_regex_traits< Elem >::hash ( char_type  ch)
inlinestatic

Returns a hash value for a Elem in the range [0, UCHAR_MAX].

Parameters
chThe source character.
Returns
a value between 0 and UCHAR_MAX, inclusive.
template<typename Elem>
static locale_type boost::xpressive::null_regex_traits< Elem >::imbue ( locale_type  loc)
inlinestatic

Not used.

Parameters
locnot used
Returns
loc
template<typename Elem>
static bool boost::xpressive::null_regex_traits< Elem >::in_range ( char_type  first,
char_type  last,
char_type  ch 
)
inlinestatic

Checks to see if a character is within a character range.

Parameters
firstThe bottom of the range, inclusive.
lastThe top of the range, inclusive.
chThe source character.
Returns
first <= ch && ch <= last.

References boost::last.

template<typename Elem>
static bool boost::xpressive::null_regex_traits< Elem >::in_range_nocase ( char_type  first,
char_type  last,
char_type  ch 
)
inlinestatic

Checks to see if a character is within a character range.

Parameters
firstThe bottom of the range, inclusive.
lastThe top of the range, inclusive.
chThe source character.
Returns
first <= ch && ch <= last.
Attention
Since the null_regex_traits does not do case-folding, this function is equivalent to in_range().

References boost::last.

template<typename Elem>
static bool boost::xpressive::null_regex_traits< Elem >::isctype ( char_type  ch,
char_class_type  mask 
)
inlinestatic

The null_regex_traits does not have character classifications, so isctype() is unused.

Parameters
chnot used
masknot used
Returns
false

References boost::ignore_unused().

template<typename Elem>
template<typename FwdIter >
static char_class_type boost::xpressive::null_regex_traits< Elem >::lookup_classname ( FwdIter  begin,
FwdIter  end,
bool  icase 
)
inlinestatic

The null_regex_traits does not have character classifications, so lookup_classname() is unused.

Parameters
beginnot used
endnot used
icasenot used
Returns
static_cast<char_class_type>(0)

References boost::ignore_unused().

template<typename Elem>
template<typename FwdIter >
static string_type boost::xpressive::null_regex_traits< Elem >::lookup_collatename ( FwdIter  begin,
FwdIter  end 
)
inlinestatic

Returns a sequence of characters that represents the collating element consisting of the character sequence designated by the iterator range [F1, F2).

Returns an empty string if the character sequence is not a valid collating element.

Attention
Not currently used

References boost::ignore_unused().

template<typename Elem>
bool boost::xpressive::null_regex_traits< Elem >::operator!= ( null_regex_traits< char_type > const &  that) const
inline

Checks two null_regex_traits objects for inequality.

Returns
false.

References boost::ignore_unused().

template<typename Elem>
bool boost::xpressive::null_regex_traits< Elem >::operator== ( null_regex_traits< char_type > const &  that) const
inline

Checks two null_regex_traits objects for equality.

Returns
true.

References boost::ignore_unused().

template<typename Elem>
template<typename FwdIter >
static string_type boost::xpressive::null_regex_traits< Elem >::transform ( FwdIter  begin,
FwdIter  end 
)
inlinestatic

Returns a sort key for the character sequence designated by the iterator range [F1, F2) such that if the character sequence [G1, G2) sorts before the character sequence [H1, H2) then v.transform(G1, G2) < v.transform(H1, H2).

Attention
Not currently used
template<typename Elem>
template<typename FwdIter >
static string_type boost::xpressive::null_regex_traits< Elem >::transform_primary ( FwdIter  begin,
FwdIter  end 
)
inlinestatic

Returns a sort key for the character sequence designated by the iterator range [F1, F2) such that if the character sequence [G1, G2) sorts before the character sequence [H1, H2) when character case is not considered then v.transform_primary(G1, G2) < v.transform_primary(H1, H2).

Attention
Not currently used
template<typename Elem>
static char_type boost::xpressive::null_regex_traits< Elem >::translate ( char_type  ch)
inlinestatic

No-op.

Parameters
chThe source character.
Returns
ch
template<typename Elem>
static char_type boost::xpressive::null_regex_traits< Elem >::translate_nocase ( char_type  ch)
inlinestatic

No-op.

Parameters
chThe source character.
Returns
ch
template<typename Elem>
static int boost::xpressive::null_regex_traits< Elem >::value ( char_type  ch,
int  radix 
)
inlinestatic

The null_regex_traits recognizes no elements as digits, so value() is unused.

Parameters
chnot used
radixnot used
Returns
-1

References boost::ignore_unused().

template<typename Elem>
char_type boost::xpressive::null_regex_traits< Elem >::widen ( char  ch) const
inline

Convert a char to a Elem.

Parameters
chThe source character.
Returns
Elem(ch).

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