foobar2000 SDK  2015-08-03
Static Public Member Functions
pfc::string::comparatorCaseSensitive

#include <stringNew.h>

+ Inheritance diagram for pfc::string::comparatorCaseSensitive:

Static Public Member Functions

template<typename T1 , typename T2 >
static int compare (T1 const &v1, T2 const &v2)
 
static int compare_ex (string_part_ref v1, string_part_ref v2)
 
static int compare_ex (const char *v1, t_size l1, const char *v2, t_size l2)
 

Additional Inherited Members

- Static Private Member Functions inherited from pfc::string::_comparatorCommon
template<typename T >
static const char * myStringToPtr (const T &val)
 
static const char * myStringToPtr (string_part_ref)
 

Detailed Description

Definition at line 150 of file stringNew.h.

Member Function Documentation

template<typename T1 , typename T2 >
static int pfc::string::comparatorCaseSensitive::compare ( T1 const &  v1,
T2 const &  v2 
)
inlinestatic

Definition at line 153 of file stringNew.h.

153  {
155  return compare_ex(stringToRef(v1), stringToRef(v2));
156  } else {
157  return strcmp(myStringToPtr(v1),myStringToPtr(v2));
158  }
159  }
static int compare_ex(string_part_ref v1, string_part_ref v2)
Definition: stringNew.h:160
static const char * myStringToPtr(const T &val)
Definition: stringNew.h:144
static string_part_ref stringToRef(T const &val)
Definition: string_base.h:1023
static int pfc::string::comparatorCaseSensitive::compare_ex ( string_part_ref  v1,
string_part_ref  v2 
)
inlinestatic

Definition at line 160 of file stringNew.h.

160  {
161  return strcmp_ex(v1.m_ptr, v1.m_len, v2.m_ptr, v2.m_len);
162  }
int strcmp_ex(const char *p1, t_size n1, const char *p2, t_size n2)
static int pfc::string::comparatorCaseSensitive::compare_ex ( const char *  v1,
t_size  l1,
const char *  v2,
t_size  l2 
)
inlinestatic

Definition at line 163 of file stringNew.h.

163  {
164  return strcmp_ex(v1, l1, v2, l2);
165  }
int strcmp_ex(const char *p1, t_size n1, const char *p2, t_size n2)

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