#include <MString.h>
Public Methods | |
MString () | |
MString (const char *) | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
MString (const MString &) | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
~MString () | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
const char * | data () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
int | length () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
void | resize (int) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
MString & | replace (int, int, const MString &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
MString & | operator+= (const char *) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
MString & | operator+= (const MString &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
MString & | operator= (const char *) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
MString & | operator= (const MString &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
MString & | operator= (char) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
operator const char * () const | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
char & | operator[] (int) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
char | operator[] (int) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
char & | operator() (int) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
char | operator() (int) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
MString | operator() (int, int) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
Private Attributes | |
char * | fString |
Friends | |
int | operator== (const MString &, const MString &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
int | operator!= (const MString &, const MString &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
int | operator== (const MString &, const char *) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... | |
int | operator!= (const MString &, const char *) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More... |
|
Definition at line 29 of file MString.cxx. References fString.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 38 of file MString.cxx.
00043 { 00044 fString = DuplicateString(aString==NULL?"":aString); 00045 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 47 of file MString.cxx.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 56 of file MString.cxx.
00060 { 00061 DeleteString(fString); 00062 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 64 of file MString.cxx.
00068 { 00069 return fString; 00070 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 72 of file MString.cxx.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 179 of file MString.cxx.
00183 { 00184 return fString; 00185 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 235 of file MString.cxx. References fString, and MINIMUM.
00241 { 00242 MString s; 00243 if(fString==NULL) return s; 00244 if( (aStart<0) || (aStart>=length()) ) return s; 00245 int begin = aStart; 00246 int end = MINIMUM(aStart + aLength - 1,length()-1); 00247 DeleteString(s.fString); 00248 s.fString = Create(end - begin + 1); 00249 int pos = 0; 00250 for(int count=begin;count<=end;count++,pos++) { 00251 s.fString[pos] = fString[count]; 00252 } 00253 return s; 00254 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 226 of file MString.cxx.
00231 { 00232 return (*this)[aIndex]; 00233 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 216 of file MString.cxx.
00222 { 00223 return (*this)[aIndex]; 00224 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 136 of file MString.cxx. References fString.
00141 { 00142 *this += aString.fString; 00143 return *this; 00144 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 126 of file MString.cxx.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 167 of file MString.cxx.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 158 of file MString.cxx.
00163 { 00164 return (*this = aFrom.fString); 00165 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 146 of file MString.cxx.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 202 of file MString.cxx.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 187 of file MString.cxx.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 102 of file MString.cxx. References MINIMUM. Referenced by Midnight::mncrck().
00109 { 00110 if(fString==NULL) return *this; 00111 if(aString.fString==NULL) return *this; 00112 if( (aStart<0) || (aStart>=length()) ) return *this; 00113 int begin = aStart; 00114 int end = MINIMUM(aStart + aLength - 1,length()-1); 00115 int l = aString.length(); 00116 int pos = 0; 00117 for(int count=begin;count<=end;count++,pos++) { 00118 if(pos<l) 00119 fString[count] = aString.fString[pos]; 00120 else 00121 fString[count] = ' '; 00122 } 00123 return *this; 00124 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 81 of file MString.cxx. Referenced by Midnight::mncntr(), and Midnight::mnplot().
00087 { 00088 if(fString==NULL) return; 00089 if(aLength<0) return; 00090 int l = strlen(fString); 00091 if(aLength<l) { 00092 fString[aLength] = '\0'; 00093 } else { 00094 char* s = Create(aLength-l); 00095 if(s!=NULL) { 00096 fString = ConcatenateString(fString,s); 00097 freeBlock(s); 00098 } 00099 } 00100 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 290 of file MString.cxx.
00296 { 00297 return (a1==a2 ? 0 : 1); 00298 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 268 of file MString.cxx.
00274 { 00275 return (a1==a2 ? 0 : 1); 00276 } |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 278 of file MString.cxx.
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.
Definition at line 256 of file MString.cxx.
|
|
Definition at line 42 of file MString.h. Referenced by MString(), operator()(), and operator+=(). |