#include <dt.h>
List of all members.
Detailed Description
Definition at line 346 of file dt.h.
Constructor & Destructor Documentation
Definition at line 351 of file dt.h.
Definition at line 352 of file dt.h.
Definition at line 354 of file dt.h.
TRStr::TRStr |
( |
const char * |
CStr, |
|
|
const int & |
MxLen |
|
) |
| [inline] |
Definition at line 356 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 358 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 361 of file dt.h.
TRStr::TRStr |
( |
const char & |
Ch1, |
|
|
const char & |
Ch2 |
|
) |
| [inline] |
Definition at line 363 of file dt.h.
Definition at line 365 of file dt.h.
Definition at line 368 of file dt.h.
Member Function Documentation
int TRStr::CmpI |
( |
const char * |
CStr1, |
|
|
const char * |
CStr2 |
|
) |
| [static] |
Definition at line 699 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 381 of file dt.h.
Definition at line 382 of file dt.h.
Definition at line 383 of file dt.h.
Definition at line 388 of file dt.h.
Definition at line 376 of file dt.h.
{return int(sizeof(int))+int(strlen(Bf));}
Definition at line 402 of file dt.h.
{
static TRStr NullRStr; Assert(NullRStr.Bf!=NULL); return &NullRStr;}
Definition at line 672 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 660 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 384 of file dt.h.
{return int(strlen(Bf));}
Definition at line 378 of file dt.h.
TRStr& TRStr::operator= |
( |
const TRStr & |
| ) |
[inline] |
Definition at line 375 of file dt.h.
void TRStr::PutCh |
( |
const int & |
ChN, |
|
|
const char & |
Ch |
|
) |
| [inline] |
Definition at line 386 of file dt.h.
Definition at line 371 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 685 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 679 of file dt.cpp.
{
int StrLen=Len();
for (int ChN=0; ChN<StrLen; ChN++){
Bf[ChN]=(char)tolower(Bf[ChN]);}
}
Definition at line 667 of file dt.cpp.
{
int StrLen=Len();
for (int ChN=0; ChN<StrLen; ChN++){
Bf[ChN]=(char)toupper(Bf[ChN]);}}
Definition at line 379 of file dt.h.
Member Data Documentation
Definition at line 348 of file dt.h.
Definition at line 349 of file dt.h.
The documentation for this class was generated from the following files: