ReactOS  0.4.14-dev-815-ge410a12
collate< char > Class Reference

#include <_collate.h>

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

Public Types

typedef char char_type
 
typedef string string_type
 

Public Member Functions

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

Static Public Attributes

static _STLP_STATIC_DECLSPEC locale::id id = { 1 }
 

Protected Member Functions

 ~collate ()
 
virtual int do_compare (const char *, const char *, const char *, const char *) const
 
virtual string_type do_transform (const char *, const char *) const
 
virtual long do_hash (const char *, const char *) 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< char > &)
 
collate< char > & operator= (const collate< char > &)
 

Detailed Description

Definition at line 43 of file _collate.h.

Member Typedef Documentation

◆ char_type

typedef char collate< char >::char_type

Definition at line 45 of file _collate.h.

◆ string_type

Definition at line 46 of file _collate.h.

Constructor & Destructor Documentation

◆ collate() [1/2]

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

Definition at line 48 of file _collate.h.

48 : locale::facet(__refs) {}

◆ ~collate()

Definition at line 26 of file collate.cpp.

26 {}

◆ collate() [2/2]

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

Member Function Documentation

◆ compare()

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

Definition at line 50 of file _collate.h.

51  {
52  return do_compare( __low1, __high1, __low2, __high2);
53  }
virtual int do_compare(const char *, const char *, const char *, const char *) const
Definition: collate.cpp:28

Referenced by LocaleTest::collate_by_name(), and LocaleTest::collate_facet().

◆ do_compare()

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

Reimplemented in collate_byname< char >.

Definition at line 28 of file collate.cpp.

30 { 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< char >::do_hash ( const char low,
const char high 
) const
protectedvirtual

Definition at line 35 of file collate.cpp.

35  {
36  unsigned long result = 0;
37  for ( ; low < high; ++low)
38  result = 5 * result + *low;
39  return result;
40 }
GLuint64EXT * result
Definition: glext.h:11304

◆ do_transform()

string collate< char >::do_transform ( const char low,
const char high 
) const
protectedvirtual

Reimplemented in collate_byname< char >.

Definition at line 32 of file collate.cpp.

33 { return string(low, high); }
char string[160]
Definition: util.h:11

◆ hash()

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

Definition at line 59 of file _collate.h.

60  { return do_hash(__low, __high); }
virtual long do_hash(const char *, const char *) const
Definition: collate.cpp:35

◆ operator=()

collate<char>& collate< char >::operator= ( const collate< char > &  )
private

◆ transform()

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

Definition at line 55 of file _collate.h.

55  {
56  return do_transform(__low, __high);
57  }
virtual string_type do_transform(const char *, const char *) const
Definition: collate.cpp:32

Referenced by LocaleTest::collate_by_name(), and LocaleTest::collate_facet().

Member Data Documentation

◆ id

locale::id collate< char >::id = { 1 }
static

Definition at line 62 of file _collate.h.


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