XStr Class Reference
[String Manipulations]

Search Toolkit Book for XStr

#include <ncbi_xstr.hpp>

List of all members.


Detailed Description

XStr --.

Template-based string comparison

Definition at line 227 of file ncbi_xstr.hpp.

Public Types

enum  ECase { eCase, eNocase }

Static Public Member Functions

template<typename _TChar>
static int CompareCase (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)
template<typename _TChar>
static int CompareCase (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)
template<typename _TChar>
static int CompareCase (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)
template<typename _TChar>
static int CompareCase (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)
template<typename _TChar>
static int CompareNocase (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)
template<typename _TChar>
static int CompareNocase (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)
template<typename _TChar>
static int CompareNocase (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)
template<typename _TChar>
static int CompareNocase (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)
template<typename _TChar>
static int Compare (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern, ECase use_case=eCase)
template<typename _TChar>
static int Compare (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern, ECase use_case=eCase)
template<typename _TChar>
static int Compare (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern, ECase use_case=eCase)
template<typename _TChar>
static int Compare (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern, ECase use_case=eCase)
template<typename _TChar>
static int strcmp (const _TChar *s1, const _TChar *s2)
template<typename _TChar>
static int strncmp (const _TChar *s1, const _TChar *s2, size_t n)
template<typename _TChar>
static int strcasecmp (const _TChar *s1, const _TChar *s2)
template<typename _TChar>
static int strncasecmp (const _TChar *s1, const _TChar *s2, size_t n)
template<typename _TChar>
static int CompareCase (const _TChar *s1, const _TChar *s2)
template<typename _TChar>
static int CompareCase (const basic_string< _TChar > &s1, const basic_string< _TChar > &s2)
template<typename _TChar>
static int CompareNocase (const _TChar *s1, const _TChar *s2)
template<typename _TChar>
static int CompareNocase (const basic_string< _TChar > &s1, const basic_string< _TChar > &s2)
template<typename _TChar>
static int Compare (const basic_string< _TChar > &s1, const _TChar *s2, ECase use_case=eCase)
template<typename _TChar>
static int Compare (const _TChar *s1, const _TChar *s2, ECase use_case=eCase)
template<typename _TChar>
static int Compare (const basic_string< _TChar > &s1, const basic_string< _TChar > &s2, ECase use_case=eCase)
template<typename _TChar>
static int Compare (const _TChar *s1, const basic_string< _TChar > &s2, ECase use_case=eCase)


Member Enumeration Documentation

enum XStr::ECase
 

Enumerator:
eCase  Case sensitive compare.
eNocase  Case insensitive compare.

Definition at line 230 of file ncbi_xstr.hpp.


Member Function Documentation

template<typename _TChar>
static int XStr::Compare const _TChar *  s1,
const basic_string< _TChar > &  s2,
ECase  use_case = eCase
[inline, static]
 

Definition at line 411 of file ncbi_xstr.hpp.

References CompareCase(), CompareNocase(), and eCase.

template<typename _TChar>
static int XStr::Compare const basic_string< _TChar > &  s1,
const basic_string< _TChar > &  s2,
ECase  use_case = eCase
[inline, static]
 

Definition at line 405 of file ncbi_xstr.hpp.

References CompareCase(), CompareNocase(), and eCase.

template<typename _TChar>
static int XStr::Compare const _TChar *  s1,
const _TChar *  s2,
ECase  use_case = eCase
[inline, static]
 

Definition at line 399 of file ncbi_xstr.hpp.

References CompareCase(), CompareNocase(), and eCase.

template<typename _TChar>
static int XStr::Compare const basic_string< _TChar > &  s1,
const _TChar *  s2,
ECase  use_case = eCase
[inline, static]
 

Definition at line 393 of file ncbi_xstr.hpp.

References CompareCase(), CompareNocase(), and eCase.

template<typename _TChar>
static int XStr::Compare const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern,
ECase  use_case = eCase
[inline, static]
 

Definition at line 327 of file ncbi_xstr.hpp.

References CompareCase(), CompareNocase(), and eCase.

template<typename _TChar>
static int XStr::Compare const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern,
ECase  use_case = eCase
[inline, static]
 

Definition at line 321 of file ncbi_xstr.hpp.

References CompareCase(), CompareNocase(), and eCase.

template<typename _TChar>
static int XStr::Compare const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern,
ECase  use_case = eCase
[inline, static]
 

Definition at line 314 of file ncbi_xstr.hpp.

References CompareCase(), CompareNocase(), and eCase.

template<typename _TChar>
static int XStr::Compare const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern,
ECase  use_case = eCase
[inline, static]
 

Definition at line 308 of file ncbi_xstr.hpp.

References CompareCase(), CompareNocase(), and eCase.

template<typename _TChar>
static int XStr::CompareCase const basic_string< _TChar > &  s1,
const basic_string< _TChar > &  s2
[inline, static]
 

Definition at line 369 of file ncbi_xstr.hpp.

References strcmp().

template<typename _TChar>
static int XStr::CompareCase const _TChar *  s1,
const _TChar *  s2
[inline, static]
 

Definition at line 363 of file ncbi_xstr.hpp.

References strcmp().

template<typename _TChar>
static int XStr::CompareCase const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern
[inline, static]
 

Definition at line 269 of file ncbi_xstr.hpp.

References CompareCase(), and pos.

template<typename _TChar>
static int XStr::CompareCase const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern
[inline, static]
 

Definition at line 259 of file ncbi_xstr.hpp.

References CompareCase(), and pos.

template<typename _TChar>
static int XStr::CompareCase const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern
[inline, static]
 

Definition at line 248 of file ncbi_xstr.hpp.

References CompareCase(), and pos.

template<typename _TChar>
static int XStr::CompareCase const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern
[inline, static]
 

Definition at line 238 of file ncbi_xstr.hpp.

References pos.

Referenced by Compare(), CompareCase(), strcmp(), and strncmp().

template<typename _TChar>
static int XStr::CompareNocase const basic_string< _TChar > &  s1,
const basic_string< _TChar > &  s2
[inline, static]
 

Definition at line 384 of file ncbi_xstr.hpp.

References strcasecmp().

template<typename _TChar>
static int XStr::CompareNocase const _TChar *  s1,
const _TChar *  s2
[inline, static]
 

Definition at line 378 of file ncbi_xstr.hpp.

References strcasecmp().

template<typename _TChar>
static int XStr::CompareNocase const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern
[inline, static]
 

Definition at line 300 of file ncbi_xstr.hpp.

References CompareNocase().

template<typename _TChar>
static int XStr::CompareNocase const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern
[inline, static]
 

Definition at line 294 of file ncbi_xstr.hpp.

References CompareNocase().

template<typename _TChar>
static int XStr::CompareNocase const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern
[inline, static]
 

Definition at line 287 of file ncbi_xstr.hpp.

References CompareNocase().

template<typename _TChar>
static int XStr::CompareNocase const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern
[inline, static]
 

Definition at line 281 of file ncbi_xstr.hpp.

Referenced by Compare(), CompareNocase(), strcasecmp(), and strncasecmp().

template<typename _TChar>
static int XStr::strcasecmp const _TChar *  s1,
const _TChar *  s2
[inline, static]
 

Definition at line 348 of file ncbi_xstr.hpp.

References CompareNocase().

Referenced by CompareNocase().

template<typename _TChar>
static int XStr::strcmp const _TChar *  s1,
const _TChar *  s2
[inline, static]
 

Definition at line 336 of file ncbi_xstr.hpp.

References CompareCase().

Referenced by CompareCase().

template<typename _TChar>
static int XStr::strncasecmp const _TChar *  s1,
const _TChar *  s2,
size_t  n
[inline, static]
 

Definition at line 354 of file ncbi_xstr.hpp.

References CompareNocase().

template<typename _TChar>
static int XStr::strncmp const _TChar *  s1,
const _TChar *  s2,
size_t  n
[inline, static]
 

Definition at line 342 of file ncbi_xstr.hpp.

References CompareCase().


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 16:01:11 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:35 2009 by modify_doxy.py rev. 173732