#include <dt.h>
List of all members.
Detailed Description
Definition at line 331 of file dt.h.
Constructor & Destructor Documentation
Definition at line 336 of file dt.h.
Definition at line 337 of file dt.h.
Definition at line 339 of file dt.h.
TRStr::TRStr |
( |
const char * |
CStr, |
|
|
const int & |
MxLen |
|
) |
| [inline] |
Definition at line 341 of file dt.h.
{
Refs=0; Bf=new char[MxLen+1]; strncpy(Bf, CStr, MxLen); Bf[MxLen]=0;}
TRStr::TRStr |
( |
const char * |
CStr1, |
|
|
const char * |
CStr2 |
|
) |
| [inline] |
Definition at line 343 of file dt.h.
{
Refs=0; int CStr1Len=int(strlen(CStr1)); Bf=new char[CStr1Len+int(strlen(CStr2))+1];
strcpy(Bf, CStr1); strcpy(Bf+CStr1Len, CStr2);}
Definition at line 346 of file dt.h.
TRStr::TRStr |
( |
const char & |
Ch1, |
|
|
const char & |
Ch2 |
|
) |
| [inline] |
Definition at line 348 of file dt.h.
Definition at line 350 of file dt.h.
Definition at line 353 of file dt.h.
Member Function Documentation
int TRStr::CmpI |
( |
const char * |
CStr1, |
|
|
const char * |
CStr2 |
|
) |
| [static] |
Definition at line 675 of file dt.cpp.
{
if (!p){return r ? (*r ? -1 : 0) : 0;}
if (!r){return (*p ? 1 : 0);}
while (*p && *r){
int i=int(toupper(*p++))-int(toupper(*r++));
if (i!=0){return i;}
}
return int(toupper(*p++))-int(toupper(*r++));
}
Definition at line 366 of file dt.h.
Definition at line 367 of file dt.h.
Definition at line 368 of file dt.h.
Definition at line 373 of file dt.h.
Definition at line 361 of file dt.h.
{return int(sizeof(int))+int(strlen(Bf));}
Definition at line 387 of file dt.h.
{
static TRStr NullRStr; Assert(NullRStr.Bf!=NULL); return &NullRStr;}
Definition at line 648 of file dt.cpp.
{
int StrLen=Len();
for (int ChN=0; ChN<StrLen; ChN++){
if (('A'<=Bf[ChN])&&(Bf[ChN]<='Z')){return false;}}
return true;
}
Definition at line 636 of file dt.cpp.
{
int StrLen=Len();
for (int ChN=0; ChN<StrLen; ChN++){
if (('a'<=Bf[ChN])&&(Bf[ChN]<='z')){return false;}}
return true;
}
Definition at line 369 of file dt.h.
{return int(strlen(Bf));}
Definition at line 363 of file dt.h.
TRStr& TRStr::operator= |
( |
const TRStr & |
| ) |
[inline] |
Definition at line 360 of file dt.h.
void TRStr::PutCh |
( |
const int & |
ChN, |
|
|
const char & |
Ch |
|
) |
| [inline] |
Definition at line 371 of file dt.h.
Definition at line 356 of file dt.h.
{
if (IsSmall){SOut.Save(Bf);}
else {int BfL=int(strlen(Bf)); SOut.Save(BfL); SOut.Save(Bf, BfL);}}
Definition at line 661 of file dt.cpp.
{
int StrLen=Len();
if (StrLen>0){
Bf[0]=(char)toupper(Bf[0]);}
for (int ChN=1; ChN<StrLen; ChN++){
Bf[ChN]=(char)tolower(Bf[ChN]);}
}
Definition at line 655 of file dt.cpp.
{
int StrLen=Len();
for (int ChN=0; ChN<StrLen; ChN++){
Bf[ChN]=(char)tolower(Bf[ChN]);}
}
Definition at line 643 of file dt.cpp.
{
int StrLen=Len();
for (int ChN=0; ChN<StrLen; ChN++){
Bf[ChN]=(char)toupper(Bf[ChN]);}}
Definition at line 364 of file dt.h.
Member Data Documentation
Definition at line 333 of file dt.h.
Definition at line 334 of file dt.h.
The documentation for this class was generated from the following files: