Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template null_regex_traits

boost::xpressive::null_regex_traits — stub regex_traits for non-char data

Synopsis

// In header: <boost/xpressive/traits/null_regex_traits.hpp>

template<typename Elem> 
struct null_regex_traits {
  // types
  typedef                        ;      
  typedef    ;    
  typedef                 ;    
  typedef                         ;
  typedef regex_traits_version_1_tag ;    

  // construct/copy/destruct
  ( = );

  // public member functions
   (null_regex_traits< ) ;
   (null_regex_traits< ) ;
   () ;

  // public static functions
   ();
   ();
   ();
   (, , );
   (, , );
  template<typename FwdIter>  (, );
  template<typename FwdIter> 
     (, );
  template<typename FwdIter> 
     (, );
  template<typename FwdIter> 
     (, , );
   (, );
   (, );
   ();
   ();
};

Description

null_regex_traits public construct/copy/destruct

  1. ( = );

    Initialize a null_regex_traits object.

null_regex_traits public member functions

  1.  (null_regex_traits<  that) ;

    Checks two null_regex_traits objects for equality

    Returns:

    true.

  2.  (null_regex_traits<  that) ;

    Checks two null_regex_traits objects for inequality

    Returns:

    false.

  3.  ( ch) ;

    Convert a char to a Elem

    Parameters:

    ch

    The source character.

    Returns:

    Elem(ch).

null_regex_traits public static functions

  1.  ( ch);

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

    Parameters:

    ch

    The source character.

    Returns:

    a value between 0 and UCHAR_MAX, inclusive.

  2.  ( ch);

    No-op

    Parameters:

    ch

    The source character.

    Returns:

    ch

  3.  ( ch);

    No-op

    Parameters:

    ch

    The source character.

    Returns:

    ch

  4.  ( first,  last,  ch);

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

    Parameters:

    ch

    The source character.

    first

    The bottom of the range, inclusive.

    last

    The top of the range, inclusive.

    Returns:

    first <= ch && ch <= last.

  5.  ( first,  last,  ch);

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

    [Note] Note

    Since the null_regex_traits does not do case-folding, this function is equivalent to in_range().

    Parameters:

    ch

    The source character.

    first

    The bottom of the range, inclusive.

    last

    The top of the range, inclusive.

    Returns:

    first <= ch && ch <= last.

  6. template<typename FwdIter> 
       ( begin,  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).

    [Note] Note

    Not currently used

  7. template<typename FwdIter> 
       ( begin,  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).

    [Note] Note

    Not currently used

  8. template<typename FwdIter> 
       ( begin,  end);

    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.

    [Note] Note

    Not currently used

  9. template<typename FwdIter> 
       
      ( begin,  end,  icase);

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

    Parameters:

    begin

    not used

    end

    not used

    icase

    not used

    Returns:

    static_cast<char_class_type>(0)

  10.  ( ch,  mask);

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

    Parameters:

    ch

    not used

    mask

    not used

    Returns:

    false

  11.  ( ch,  radix);

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

    Parameters:

    ch

    not used

    radix

    not used

    Returns:

    -1

  12.  ( loc);

    Not used

    Parameters:

    loc

    not used

    Returns:

    loc

  13.  ();

    Returns locale_type().

    Returns:

    locale_type()


PrevUpHomeNext