DCL 4.0
Loading...
Searching...
No Matches
__STRING.h File Reference

Go to the source code of this file.

Classes

struct  BUFFER_T
class  STRING_T

Macros

#define _T(s)
#define CHAR_T   char
#define UCHAR_T   byte_t
#define BUFFER_T   ByteBuffer
#define STRING_T   ByteString
#define STRING_BUILDER_T   ByteStringBuilder
#define ARRAY_T   ByteStringArray

Functions

DCLCAPI bool operator== (const STRING_T &_str1, const STRING_T &_str2)
DCLCAPI bool operator== (const STRING_T &_str1, const CHAR_T *_psz)
DCLCAPI bool operator== (const CHAR_T *_psz, const STRING_T &_str2)
DCLCAPI bool operator== (const STRING_T &_str1, CHAR_T _ch)
DCLCAPI bool operator== (CHAR_T _ch, const STRING_T &_str2)
DCLCAPI bool operator!= (const STRING_T &_str1, const STRING_T &_str2)
DCLCAPI bool operator!= (const STRING_T &_str, const CHAR_T *_psz)
DCLCAPI bool operator!= (const CHAR_T *_psz, const STRING_T &_str2)
DCLCAPI bool operator!= (const STRING_T &_str1, CHAR_T _ch)
DCLCAPI bool operator!= (CHAR_T _ch, const STRING_T &_str2)
DCLCAPI bool operator> (const STRING_T &_str1, const STRING_T &_str2)
DCLCAPI bool operator> (const STRING_T &_str1, const CHAR_T *_psz)
DCLCAPI bool operator> (const CHAR_T *_psz, const STRING_T &_str2)
DCLCAPI bool operator> (const STRING_T &_str1, CHAR_T _ch)
DCLCAPI bool operator> (CHAR_T _ch, const STRING_T &_str2)
DCLCAPI bool operator< (const STRING_T &_str1, const STRING_T &_str2)
DCLCAPI bool operator< (const STRING_T &_str1, const CHAR_T *_psz)
DCLCAPI bool operator< (const CHAR_T *_psz, const STRING_T &_str2)
DCLCAPI bool operator< (const STRING_T &_str1, CHAR_T _ch)
DCLCAPI bool operator< (CHAR_T _ch, const STRING_T &_str2)
DCLCAPI bool operator>= (const STRING_T &_str1, const STRING_T &_str2)
DCLCAPI bool operator>= (const STRING_T &_str1, const CHAR_T *_psz)
DCLCAPI bool operator>= (const CHAR_T *_psz, const STRING_T &_str2)
DCLCAPI bool operator>= (const STRING_T &_str1, CHAR_T _ch)
DCLCAPI bool operator>= (CHAR_T _ch, const STRING_T &_str2)
DCLCAPI bool operator<= (const STRING_T &_str1, const STRING_T &_str2)
DCLCAPI bool operator<= (const STRING_T &_str1, const CHAR_T *_psz)
DCLCAPI bool operator<= (const CHAR_T *_psz, const STRING_T &_str2)
DCLCAPI bool operator<= (const STRING_T &_str1, CHAR_T _ch)
DCLCAPI bool operator<= (CHAR_T _ch, const STRING_T &_str2)

Macro Definition Documentation

◆ _T

#define _T ( s)
Value:
s

Definition at line 19 of file __STRING.h.

◆ ARRAY_T

#define ARRAY_T   ByteStringArray

Definition at line 25 of file __STRING.h.

◆ BUFFER_T

#define BUFFER_T   ByteBuffer

Definition at line 22 of file __STRING.h.

◆ CHAR_T

#define CHAR_T   char

Definition at line 20 of file __STRING.h.

◆ STRING_BUILDER_T

#define STRING_BUILDER_T   ByteStringBuilder

Definition at line 56 of file __STRING.h.

◆ STRING_T

#define STRING_T   ByteString

Definition at line 23 of file __STRING.h.

◆ UCHAR_T

#define UCHAR_T   byte_t

Definition at line 21 of file __STRING.h.

Function Documentation

◆ operator!=() [1/5]

DCLCAPI bool operator!= ( CHAR_T _ch,
const STRING_T & _str2 )
inline

Definition at line 445 of file __STRING.h.

446{
447 CHAR_T sz[2] = { _ch, 0 };
448 return _str2.compare(sz) != 0;
449}
#define CHAR_T
Definition __STRING.h:20
int compare(const CHAR_T *_psz, size_t _len=(size_t) -1) const
Definition __STRING.h:387

◆ operator!=() [2/5]

DCLCAPI bool operator!= ( const CHAR_T * _psz,
const STRING_T & _str2 )
inline

Definition at line 434 of file __STRING.h.

435{
436 return _str2.compare(_psz) != 0;
437}

◆ operator!=() [3/5]

DCLCAPI bool operator!= ( const STRING_T & _str,
const CHAR_T * _psz )
inline

Definition at line 429 of file __STRING.h.

430{
431 return _str.compare(_psz) != 0;
432}

◆ operator!=() [4/5]

DCLCAPI bool operator!= ( const STRING_T & _str1,
CHAR_T _ch )
inline

Definition at line 439 of file __STRING.h.

440{
441 CHAR_T sz[2] = { _ch, 0 };
442 return _str1.compare(sz) != 0;
443}

◆ operator!=() [5/5]

DCLCAPI bool operator!= ( const STRING_T & _str1,
const STRING_T & _str2 )
inline

Definition at line 424 of file __STRING.h.

425{
426 return _str1.length() == _str2.length() ? _str1.compare(_str2) != 0 : true;
427}
size_t length() const
Definition __STRING.h:636

◆ operator<() [1/5]

DCLCAPI bool operator< ( CHAR_T _ch,
const STRING_T & _str2 )
inline

Definition at line 501 of file __STRING.h.

502{
503 CHAR_T sz[2] = { _ch, 0 };
504 return _str2.compare(sz) > 0;
505}

◆ operator<() [2/5]

DCLCAPI bool operator< ( const CHAR_T * _psz,
const STRING_T & _str2 )
inline

Definition at line 490 of file __STRING.h.

491{
492 return _str2.compare(_psz) > 0;
493}

◆ operator<() [3/5]

DCLCAPI bool operator< ( const STRING_T & _str1,
CHAR_T _ch )
inline

Definition at line 495 of file __STRING.h.

496{
497 CHAR_T sz[2] = { _ch, 0 };
498 return _str1.compare(sz) < 0;
499}

◆ operator<() [4/5]

DCLCAPI bool operator< ( const STRING_T & _str1,
const CHAR_T * _psz )
inline

Definition at line 485 of file __STRING.h.

486{
487 return _str1.compare(_psz) < 0;
488}

◆ operator<() [5/5]

DCLCAPI bool operator< ( const STRING_T & _str1,
const STRING_T & _str2 )
inline

Definition at line 479 of file __STRING.h.

480{
481 ssize_t n = _str1.length() - _str2.length();
482 return n == 0 ? _str1.compare(_str2) < 0 : n < 0;
483}
void CharsetConvertException *size_t n
Definition SQLField.cpp:253

◆ operator<=() [1/5]

DCLCAPI bool operator<= ( CHAR_T _ch,
const STRING_T & _str2 )
inline

Definition at line 555 of file __STRING.h.

556{
557 CHAR_T sz[2] = { _ch, 0 };
558 return _str2.compare(sz) >= 0;
559}

◆ operator<=() [2/5]

DCLCAPI bool operator<= ( const CHAR_T * _psz,
const STRING_T & _str2 )
inline

Definition at line 544 of file __STRING.h.

545{
546 return _str2.compare(_psz) >= 0;
547}

◆ operator<=() [3/5]

DCLCAPI bool operator<= ( const STRING_T & _str1,
CHAR_T _ch )
inline

Definition at line 549 of file __STRING.h.

550{
551 CHAR_T sz[2] = { _ch, 0 };
552 return _str1.compare(sz) <= 0;
553}

◆ operator<=() [4/5]

DCLCAPI bool operator<= ( const STRING_T & _str1,
const CHAR_T * _psz )
inline

Definition at line 539 of file __STRING.h.

540{
541 return _str1.compare(_psz) <= 0;
542}

◆ operator<=() [5/5]

DCLCAPI bool operator<= ( const STRING_T & _str1,
const STRING_T & _str2 )
inline

Definition at line 534 of file __STRING.h.

535{
536 return _str1.compare(_str2) <= 0;
537}

◆ operator==() [1/5]

DCLCAPI bool operator== ( CHAR_T _ch,
const STRING_T & _str2 )
inline

Definition at line 418 of file __STRING.h.

419{
420 CHAR_T sz[2] = { _ch, 0 };
421 return _str2.compare(sz) == 0;
422}

◆ operator==() [2/5]

DCLCAPI bool operator== ( const CHAR_T * _psz,
const STRING_T & _str2 )
inline

Definition at line 407 of file __STRING.h.

408{
409 return _str2.compare(_psz) == 0;
410}

◆ operator==() [3/5]

DCLCAPI bool operator== ( const STRING_T & _str1,
CHAR_T _ch )
inline

Definition at line 412 of file __STRING.h.

413{
414 CHAR_T sz[2] = { _ch, 0 };
415 return _str1.compare(sz) == 0;
416}

◆ operator==() [4/5]

DCLCAPI bool operator== ( const STRING_T & _str1,
const CHAR_T * _psz )
inline

Definition at line 402 of file __STRING.h.

403{
404 return _str1.compare(_psz) == 0;
405}

◆ operator==() [5/5]

DCLCAPI bool operator== ( const STRING_T & _str1,
const STRING_T & _str2 )
inline

Definition at line 397 of file __STRING.h.

398{
399 return _str1.length() == _str2.length() ? _str1.compare(_str2) == 0 : false;
400}

◆ operator>() [1/5]

DCLCAPI bool operator> ( CHAR_T _ch,
const STRING_T & _str2 )
inline

Definition at line 473 of file __STRING.h.

474{
475 CHAR_T sz[2] = { _ch, 0 };
476 return _str2.compare(sz) < 0;
477}

◆ operator>() [2/5]

DCLCAPI bool operator> ( const CHAR_T * _psz,
const STRING_T & _str2 )
inline

Definition at line 462 of file __STRING.h.

463{
464 return _str2.compare(_psz) < 0;
465}

◆ operator>() [3/5]

DCLCAPI bool operator> ( const STRING_T & _str1,
CHAR_T _ch )
inline

Definition at line 467 of file __STRING.h.

468{
469 CHAR_T sz[2] = { _ch, 0 };
470 return _str1.compare(sz) > 0;
471}

◆ operator>() [4/5]

DCLCAPI bool operator> ( const STRING_T & _str1,
const CHAR_T * _psz )
inline

Definition at line 457 of file __STRING.h.

458{
459 return _str1.compare(_psz) > 0;
460}

◆ operator>() [5/5]

DCLCAPI bool operator> ( const STRING_T & _str1,
const STRING_T & _str2 )
inline

Definition at line 451 of file __STRING.h.

452{
453 ssize_t n = _str1.length() - _str2.length();
454 return n == 0 ? _str1.compare(_str2) > 0 : n > 0;
455}

◆ operator>=() [1/5]

DCLCAPI bool operator>= ( CHAR_T _ch,
const STRING_T & _str2 )
inline

Definition at line 528 of file __STRING.h.

529{
530 CHAR_T sz[2] = { _ch, 0};
531 return _str2.compare(sz) <= 0;
532}

◆ operator>=() [2/5]

DCLCAPI bool operator>= ( const CHAR_T * _psz,
const STRING_T & _str2 )
inline

Definition at line 517 of file __STRING.h.

518{
519 return _str2.compare(_psz) <= 0;
520}

◆ operator>=() [3/5]

DCLCAPI bool operator>= ( const STRING_T & _str1,
CHAR_T _ch )
inline

Definition at line 522 of file __STRING.h.

523{
524 CHAR_T sz[2] = { _ch, 0 };
525 return _str1.compare(sz) >= 0;
526}

◆ operator>=() [4/5]

DCLCAPI bool operator>= ( const STRING_T & _str1,
const CHAR_T * _psz )
inline

Definition at line 512 of file __STRING.h.

513{
514 return _str1.compare(_psz) >= 0;
515}

◆ operator>=() [5/5]

DCLCAPI bool operator>= ( const STRING_T & _str1,
const STRING_T & _str2 )
inline

Definition at line 507 of file __STRING.h.

508{
509 return _str1.compare(_str2) >= 0;
510}