A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/ncbi__xstr_8hpp_source.html below:

NCBI C++ ToolKit: include/corelib/ncbi_xstr.hpp Source File

1 #ifndef CORELIB___NCBI_XSTR__HPP 2 #define CORELIB___NCBI_XSTR__HPP 53 # define NCBI_TEXT(x) L ## x 55 # define NCBI_TEXT(x) x 61 template

<

typename

_TChar>

121  operator

basic_string<_TChar>(

void

)

const 123  return

basic_string<_TChar>(

data

(),

length

());

128  const

_TChar*

data

(

void

)

const 155  const

_TChar *s =

data

();

156  const

_TChar *p = pattern.

data

();

158  for

( ;

n

-- && (*s == *p); ++s,++p,++c )

161

_TChar pe = pattern[c];

165  return

se < pe ? -1 : 1;

170  const

ctype<_TChar>&

ct

=

172 #if defined(NCBI_COMPILER_WORKSHOP) 175

use_facet(

locale

(), (ctype<_TChar>*)0);

177

use_facet< ctype<_TChar> >(

locale

());

179 # define CT_TOLOWER(x) ct.tolower(x) 185  const

_TChar *s =

data

();

186  const

_TChar *p = pattern.

data

();

195  return

se < pe ? -1 : 1;

202  return

(

size_t

)

NPOS

;

228  template

<

typename

_TChar >

232  return str

.compare(pos,

n

,pattern);

234  template

<

typename

_TChar >

238  return

basic_string<_TChar>(

str

).compare(pos,

n

,pattern);

241  template

<

typename

_TChar >

245  return str

.compare(pos,

n

,pattern);

247  template

<

typename

_TChar >

251  return

basic_string<_TChar>(

str

).compare(pos,

n

,pattern);

255  template

<

typename

_TChar >

261  template

<

typename

_TChar >

268  template

<

typename

_TChar >

274  template

<

typename

_TChar >

282  template

<

typename

_TChar >

288  template

<

typename

_TChar >

295  template

<

typename

_TChar >

301  template

<

typename

_TChar >

310  template

<

typename

_TChar >

312  int strcmp

(

const

_TChar* s1,

const

_TChar* s2)

316  template

<

typename

_TChar >

318  int strncmp

(

const

_TChar* s1,

const

_TChar* s2,

size_t n

)

322  template

<

typename

_TChar >

328  template

<

typename

_TChar >

337  template

<

typename

_TChar >

343  template

<

typename

_TChar >

345  int CompareCase

(

const

basic_string<_TChar>& s1,

const

basic_string<_TChar>& s2)

347  return strcmp

(s1.c_str(),s2.c_str());

352  template

<

typename

_TChar >

358  template

<

typename

_TChar >

360  int CompareNocase

(

const

basic_string<_TChar>& s1,

const

basic_string<_TChar>& s2)

367  template

<

typename

_TChar >

373  template

<

typename

_TChar >

379  template

<

typename

_TChar >

381  int Compare

(

const

basic_string<_TChar>& s1,

const

basic_string<_TChar>& s2,

ECase

use_case =

eCase

)

385  template

<

typename

_TChar >

Include a standard set of the NCBI C++ Toolkit most basic headers.

static const char * str(char *buf, int n)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static int Compare(const _TChar *s1, const _TChar *s2, ECase use_case=eCase)

NCBI_NS_STD::string::size_type SIZE_TYPE

static int strncasecmp(const _TChar *s1, const _TChar *s2, size_t n)

int CompareCase(const CTempXStr< _TChar > &pattern) const

static int Compare(const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern, ECase use_case=eCase)

static int CompareNocase(const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)

static int strcasecmp(const _TChar *s1, const _TChar *s2)

size_t x_length(void) const

int CompareNocase(const CTempXStr< _TChar > &pattern) const

static int Compare(const basic_string< _TChar > &s1, const _TChar *s2, ECase use_case=eCase)

static int CompareCase(const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)

static int CompareCase(const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)

static int CompareNocase(const _TChar *s1, const _TChar *s2)

CTempXStr(const basic_string< _TChar > &str)

static int Compare(const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern, ECase use_case=eCase)

CTempXStr(const _TChar *str, size_t len)

static int Compare(const _TChar *s1, const basic_string< _TChar > &s2, ECase use_case=eCase)

static int CompareNocase(const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)

static int strcmp(const _TChar *s1, const _TChar *s2)

static int strncmp(const _TChar *s1, const _TChar *s2, size_t n)

static int CompareNocase(const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)

static int CompareNocase(const basic_string< _TChar > &s1, const basic_string< _TChar > &s2)

static int CompareCase(const _TChar *s1, const _TChar *s2)

size_t length(void) const

static int Compare(const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern, ECase use_case=eCase)

static int Compare(const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern, ECase use_case=eCase)

CTempXStr(const basic_string< _TChar > &str, size_t pos, size_t len)

static int CompareCase(const basic_string< _TChar > &s1, const basic_string< _TChar > &s2)

CTempXStr(const basic_string< _TChar > &str, size_t len)

static int CompareCase(const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)

const _TChar * data(void) const

static int Compare(const basic_string< _TChar > &s1, const basic_string< _TChar > &s2, ECase use_case=eCase)

CTempXStr(const _TChar *str)

CTempXStr(const _TChar *str, size_t pos, size_t len)

static size_t x_npos(void)

static int CompareCase(const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)

_TChar operator[](size_t pos) const

static int CompareNocase(const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)

CTempXStr(const CTempXStr &lw)

@ eNocase

Case insensitive compare.

@ eCase

Case sensitive compare.

static const char * locale


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4