DCL 3.7.4
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 435 of file __STRING.h.

436{
437 CHAR_T sz[2] = { _ch, 0 };
438 return _str2.compare(sz) != 0;
439}
#define CHAR_T
Definition __STRING.h:20
int compare(const CHAR_T *_psz, size_t _len=(size_t) -1) const
Definition __STRING.h:377

◆ operator!=() [2/5]

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

Definition at line 424 of file __STRING.h.

425{
426 return _str2.compare(_psz) != 0;
427}

◆ operator!=() [3/5]

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

Definition at line 419 of file __STRING.h.

420{
421 return _str.compare(_psz) != 0;
422}

◆ operator!=() [4/5]

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

Definition at line 429 of file __STRING.h.

430{
431 CHAR_T sz[2] = { _ch, 0 };
432 return _str1.compare(sz) != 0;
433}

◆ operator!=() [5/5]

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

Definition at line 414 of file __STRING.h.

415{
416 return _str1.length() == _str2.length() ? _str1.compare(_str2) != 0 : true;
417}
size_t length() const
Definition __STRING.h:626

◆ operator<() [1/5]

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

Definition at line 491 of file __STRING.h.

492{
493 CHAR_T sz[2] = { _ch, 0 };
494 return _str2.compare(sz) > 0;
495}

◆ operator<() [2/5]

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

Definition at line 480 of file __STRING.h.

481{
482 return _str2.compare(_psz) > 0;
483}

◆ operator<() [3/5]

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

Definition at line 485 of file __STRING.h.

486{
487 CHAR_T sz[2] = { _ch, 0 };
488 return _str1.compare(sz) < 0;
489}

◆ operator<() [4/5]

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

Definition at line 475 of file __STRING.h.

476{
477 return _str1.compare(_psz) < 0;
478}

◆ operator<() [5/5]

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

Definition at line 469 of file __STRING.h.

470{
471 ssize_t n = _str1.length() - _str2.length();
472 return n == 0 ? _str1.compare(_str2) < 0 : n < 0;
473}

◆ operator<=() [1/5]

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

Definition at line 545 of file __STRING.h.

546{
547 CHAR_T sz[2] = { _ch, 0 };
548 return _str2.compare(sz) >= 0;
549}

◆ operator<=() [2/5]

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

Definition at line 534 of file __STRING.h.

535{
536 return _str2.compare(_psz) >= 0;
537}

◆ operator<=() [3/5]

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

Definition at line 539 of file __STRING.h.

540{
541 CHAR_T sz[2] = { _ch, 0 };
542 return _str1.compare(sz) <= 0;
543}

◆ operator<=() [4/5]

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

Definition at line 529 of file __STRING.h.

530{
531 return _str1.compare(_psz) <= 0;
532}

◆ operator<=() [5/5]

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

Definition at line 524 of file __STRING.h.

525{
526 return _str1.compare(_str2) <= 0;
527}

◆ operator==() [1/5]

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

Definition at line 408 of file __STRING.h.

409{
410 CHAR_T sz[2] = { _ch, 0 };
411 return _str2.compare(sz) == 0;
412}

◆ operator==() [2/5]

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

Definition at line 397 of file __STRING.h.

398{
399 return _str2.compare(_psz) == 0;
400}

◆ operator==() [3/5]

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

Definition at line 402 of file __STRING.h.

403{
404 CHAR_T sz[2] = { _ch, 0 };
405 return _str1.compare(sz) == 0;
406}

◆ operator==() [4/5]

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

Definition at line 392 of file __STRING.h.

393{
394 return _str1.compare(_psz) == 0;
395}

◆ operator==() [5/5]

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

Definition at line 387 of file __STRING.h.

388{
389 return _str1.length() == _str2.length() ? _str1.compare(_str2) == 0 : false;
390}

◆ operator>() [1/5]

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

Definition at line 463 of file __STRING.h.

464{
465 CHAR_T sz[2] = { _ch, 0 };
466 return _str2.compare(sz) < 0;
467}

◆ operator>() [2/5]

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

Definition at line 452 of file __STRING.h.

453{
454 return _str2.compare(_psz) < 0;
455}

◆ operator>() [3/5]

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

Definition at line 457 of file __STRING.h.

458{
459 CHAR_T sz[2] = { _ch, 0 };
460 return _str1.compare(sz) > 0;
461}

◆ operator>() [4/5]

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

Definition at line 447 of file __STRING.h.

448{
449 return _str1.compare(_psz) > 0;
450}

◆ operator>() [5/5]

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

Definition at line 441 of file __STRING.h.

442{
443 ssize_t n = _str1.length() - _str2.length();
444 return n == 0 ? _str1.compare(_str2) > 0 : n > 0;
445}

◆ operator>=() [1/5]

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

Definition at line 518 of file __STRING.h.

519{
520 CHAR_T sz[2] = { _ch, 0};
521 return _str2.compare(sz) <= 0;
522}

◆ operator>=() [2/5]

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

Definition at line 507 of file __STRING.h.

508{
509 return _str2.compare(_psz) <= 0;
510}

◆ operator>=() [3/5]

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

Definition at line 512 of file __STRING.h.

513{
514 CHAR_T sz[2] = { _ch, 0 };
515 return _str1.compare(sz) >= 0;
516}

◆ operator>=() [4/5]

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

Definition at line 502 of file __STRING.h.

503{
504 return _str1.compare(_psz) >= 0;
505}

◆ operator>=() [5/5]

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

Definition at line 497 of file __STRING.h.

498{
499 return _str1.compare(_str2) >= 0;
500}