Lines Matching refs:GetSize

47 cString::cStringData::cStringData(const cStringData& in) : cRCObject(*this), m_size(in.GetSize()), …  in cStringData()
64 if (GetSize() == in.GetSize()) { in operator ==()
65 for (i = 0; i<GetSize() && (*this)[i] == in[i]; ++i) ; in operator ==()
67 return (i == GetSize()); // i == GetSize if all chars matched in operator ==()
76 for (i = 0; i < GetSize() && in[i]!='\0' && (*this)[i] == in[i]; i++) ; in Compare()
78 if (i == GetSize() && in[i] == '\0') return 0; // *this == in in Compare()
81 if (i < GetSize() && (*this)[i] > in[i]) return 1; // *this > in in Compare()
89 int j = GetSize() - 1; in IsContinueLine()
114 if (start >= GetSize()) return 0; in CountWhitespace()
116 while (start+count<GetSize() && IsWhitespace(start+count)) count++; in CountWhitespace()
123 if( start>=GetSize() ) return 0; in CountWordsize()
125 while( start+count<GetSize() && !IsWhitespace(start+count) ) in CountWordsize()
134 if( start>=GetSize() ) return 0; in CountLinesize()
136 while( start+count<GetSize() && (*this)[start+count]!='\n' ) in CountLinesize()
145 for( int i=0; i<GetSize(); ++i ){ in CountNumLines()
156 while( pos<GetSize() ) { in CountNumWords()
170 assert (pos <= GetSize()); // Position Past End of String: setting to end. in Find()
172 else if (pos > GetSize()) pos = GetSize(); in Find()
174 while( pos < GetSize() ) { in Find()
185 assert (pos <= GetSize()); // Position Past End of String: setting to end. in FindWord()
187 else if (pos > GetSize()) pos = GetSize(); in FindWord()
190 while (pos != -1 && pos + in.GetSize() < GetSize()) { in FindWord()
195 && ( pos==GetSize()-1 || IsWhitespace(pos+in.GetSize()) ) ){ in FindWord()
211 while( pos<GetSize() && cur_word<word_id ) { // If this isn't the word in GetWord()
234 for( int i=0; i < GetSize(); ++i){ in IsWhitespace()
242 for (int i = 0; i < GetSize(); ++i) { in IsUpperLetter()
250 for (int i = 0; i < GetSize(); ++i) { in IsLowerLetter()
258 for (int i = 0; i < GetSize(); ++i) { in IsLetter()
266 for (int i = 0; i < GetSize(); ++i) { in IsNumber()
274 for (int i = 0; i < GetSize(); ++i) { in IsNumeric()
282 for (int i = 0; i < GetSize(); ++i) { in IsAlphaNumeric()
294 assert(start + size <= GetSize()); // Position+Size Past End of String in Substring()
308 if ( start + in_string.GetSize() > GetSize() ) return false; in IsSubstring()
311 for (int i = 0; i < in_string.GetSize(); i++) { in IsSubstring()
345 Insert(new_st, location, old_st.GetSize()); in Replace()
363 while( GetSize()-ws_count-1>0 && IsWhitespace(GetSize()-ws_count-1) ) in RightJustify()
366 InsertStr(0, NULL, GetSize()-ws_count, ws_count); in RightJustify()
378 while (GetSize() - ws_count - 1 > 0 && IsWhitespace(GetSize() - ws_count - 1)) ws_count++; in Trim()
379 if (ws_count > 0) InsertStr(0, NULL, GetSize() - ws_count, ws_count); in Trim()
407 if (GetSize() == 0) return ""; in PopWord()
427 for (int pos = 0; pos < GetSize(); pos++) { in ToLower()
438 for (int pos = 0; pos < GetSize(); pos++) { in ToUpper()
449 cString new_st(GetSize()); in Reverse()
450 for( int i=0; i<GetSize(); ++i ){ in Reverse()
452 new_st[i] = value->GetData()[GetSize()-i-1]; in Reverse()
469 for( i=start_pos; i<GetSize(); ++i ){ in CompressWhitespace()
488 for( i=start_pos; i<GetSize(); ++i ){ in CompressWhitespace()
513 for (i = 0; i < GetSize(); ++i) { // count new size in RemoveWhitespace()
518 for (i = 0; i < GetSize(); ++i) { // count new size in RemoveWhitespace()
532 for (i = 0; i < GetSize(); ++i) { // count new size in RemoveChar()
537 for(i = 0; i < GetSize(); ++i) { // count new size in RemoveChar()
548 int new_size = GetSize() - 1; in RemovePos()
551 for( i=0; i<GetSize(); ++i ){ // count new size in RemovePos()
564 int o_sz = GetSize(); in ParseEscapeSequences()
605 tRCPtr<cStringData> new_value(new cStringData(GetSize() + in_size)); in AppendStr()
607 for(int i=0; i<GetSize(); ++i ) { // Copy self up to pos in AppendStr()
612 (*new_value)[i+GetSize()] = in[i]; in AppendStr()
629 assert (pos <= GetSize()); // Position past end of string in InsertStr()
631 assert (excise <= GetSize()-pos); // Excise number too large in InsertStr()
636 const int new_size = GetSize() + in_size - excise; in InsertStr()
647 for(int i=pos+excise; i<GetSize(); ++i ){ // Copy rest of self in InsertStr()
662 assert (pos <= GetSize()); // Position past end of string in EjectStr()
664 assert (excise <= GetSize()-pos); // Excise number too large in EjectStr()
670 const int new_size = GetSize() - excise; in EjectStr()
677 for(int i=pos+excise; i<GetSize(); ++i ){ // Copy post-excise self in EjectStr()
689 assert (pos<=GetSize()); // Position past end of string in FindStr()
691 while (pos < GetSize()) { in FindStr()
692 if( GetSize()-pos < in_size ) return -1; // Too near this string's end. in FindStr()
697 assert (pos+i < GetSize()); // Reached end of (*this) in Find in FindStr()