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

#include <stringNew.h>

+ Inheritance diagram for pfc::string::comparatorCaseInsensitiveASCII:

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 178 of file stringNew.h.

Member Function Documentation

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

Definition at line 181 of file stringNew.h.

181  {
183  return compare_ex(stringToRef(v1), stringToRef(v2));
184  } else {
185  return stricmp_ascii(myStringToPtr(v1),myStringToPtr(v2));
186  }
187  }
static const char * myStringToPtr(const T &val)
Definition: stringNew.h:144
static int compare_ex(string_part_ref v1, string_part_ref v2)
Definition: stringNew.h:188
int stricmp_ascii(const char *s1, const char *s2)
static string_part_ref stringToRef(T const &val)
Definition: string_base.h:1023
static int pfc::string::comparatorCaseInsensitiveASCII::compare_ex ( string_part_ref  v1,
string_part_ref  v2 
)
inlinestatic

Definition at line 188 of file stringNew.h.

188  {
189  return stricmp_ascii_ex(v1.m_ptr, v1.m_len, v2.m_ptr, v2.m_len);
190  }
int stricmp_ascii_ex(const char *const s1, t_size const len1, const char *const s2, t_size const len2)
static int pfc::string::comparatorCaseInsensitiveASCII::compare_ex ( const char *  v1,
t_size  l1,
const char *  v2,
t_size  l2 
)
inlinestatic

Definition at line 191 of file stringNew.h.

191  {
192  return stricmp_ascii_ex(v1, l1, v2, l2);
193  }
int stricmp_ascii_ex(const char *const s1, t_size const len1, const char *const s2, t_size const len2)

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