ReactOS  0.4.14-dev-293-g2b39b42
collate< wchar_t > Class Reference

#include <_collate.h>

Inheritance diagram for collate< wchar_t >:
Collaboration diagram for collate< wchar_t >:

Public Types

typedef wchar_t char_type
 
typedef wstring string_type
 

Public Member Functions

 collate (size_t __refs=0)
 
int compare (const wchar_t *__low1, const wchar_t *__high1, const wchar_t *__low2, const wchar_t *__high2) const
 
string_type transform (const wchar_t *__low, const wchar_t *__high) const
 
long hash (const wchar_t *__low, const wchar_t *__high) const
 

Static Public Attributes

static _STLP_STATIC_DECLSPEC locale::id id = { 14 }
 

Protected Member Functions

 ~collate ()
 
virtual int do_compare (const wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *) const
 
virtual string_type do_transform (const wchar_t *, const wchar_t *) const
 
virtual long do_hash (const wchar_t *__low, const wchar_t *__high) const
 
- Protected Member Functions inherited from locale::facet
 facet (size_t __init_count=0)
 
virtual ~facet ()
 
- Protected Member Functions inherited from _Refcount_Base
 _Refcount_Base (__stl_atomic_t __n)
 
__stl_atomic_t _M_incr ()
 
__stl_atomic_t _M_decr ()
 

Private Member Functions

 collate (const collate< wchar_t > &)
 
collate< wchar_t > & operator= (const collate< wchar_t > &)
 

Detailed Description

Definition at line 79 of file _collate.h.

Member Typedef Documentation

◆ char_type

Definition at line 81 of file _collate.h.

◆ string_type

typedef wstring collate< wchar_t >::string_type

Definition at line 82 of file _collate.h.

Constructor & Destructor Documentation

◆ collate() [1/2]

collate< wchar_t >::collate ( size_t  __refs = 0)
inlineexplicit

Definition at line 84 of file _collate.h.

84 : locale::facet(__refs) {}

◆ ~collate()

collate< wchar_t >::~collate ( )
protected

Definition at line 45 of file collate.cpp.

45 {}

◆ collate() [2/2]

collate< wchar_t >::collate ( const collate< wchar_t > &  )
private

Member Function Documentation

◆ compare()

int collate< wchar_t >::compare ( const wchar_t __low1,
const wchar_t __high1,
const wchar_t __low2,
const wchar_t __high2 
) const
inline

Definition at line 86 of file _collate.h.

87  {
88  return do_compare( __low1, __high1, __low2, __high2);
89  }
virtual int do_compare(const wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *) const
Definition: collate.cpp:48

Referenced by LocaleTest::collate_facet().

◆ do_compare()

int collate< wchar_t >::do_compare ( const wchar_t low1,
const wchar_t high1,
const wchar_t low2,
const wchar_t high2 
) const
protectedvirtual

Reimplemented in collate_byname< wchar_t >.

Definition at line 48 of file collate.cpp.

50 { return _STLP_PRIV __lexicographical_compare_3way(low1, high1, low2, high2); }
#define _STLP_PRIV
Definition: _dm.h:70
_STLP_MOVE_TO_PRIV_NAMESPACE int __lexicographical_compare_3way(_InputIter1 __first1, _InputIter1 __last1, _InputIter2 __first2, _InputIter2 __last2)
Definition: _algobase.c:78

◆ do_hash()

long collate< wchar_t >::do_hash ( const wchar_t __low,
const wchar_t __high 
) const
protectedvirtual

Definition at line 55 of file collate.cpp.

55  {
56  unsigned long result = 0;
57  for ( ; low < high; ++low)
58  result = 5 * result + *low;
59  return result;
60 }
GLuint64EXT * result
Definition: glext.h:11304

◆ do_transform()

wstring collate< wchar_t >::do_transform ( const wchar_t low,
const wchar_t high 
) const
protectedvirtual

Reimplemented in collate_byname< wchar_t >.

Definition at line 52 of file collate.cpp.

53 { return wstring(low, high); }

◆ hash()

long collate< wchar_t >::hash ( const wchar_t __low,
const wchar_t __high 
) const
inline

Definition at line 95 of file _collate.h.

96  { return do_hash(__low, __high); }
virtual long do_hash(const wchar_t *__low, const wchar_t *__high) const
Definition: collate.cpp:55

◆ operator=()

◆ transform()

string_type collate< wchar_t >::transform ( const wchar_t __low,
const wchar_t __high 
) const
inline

Definition at line 91 of file _collate.h.

91  {
92  return do_transform(__low, __high);
93  }
virtual string_type do_transform(const wchar_t *, const wchar_t *) const
Definition: collate.cpp:52

Referenced by LocaleTest::collate_facet().

Member Data Documentation

◆ id

locale::id collate< wchar_t >::id = { 14 }
static

Definition at line 98 of file _collate.h.


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