diff options
Diffstat (limited to 'src/tools/qstring.cpp')
-rw-r--r-- | src/tools/qstring.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/tools/qstring.cpp b/src/tools/qstring.cpp index b610a91af..0c5e52c37 100644 --- a/src/tools/qstring.cpp +++ b/src/tools/qstring.cpp @@ -576,7 +576,7 @@ bool TQChar::isSymbol() const int TQChar::digitValue() const { #ifndef TQT_NO_UNICODETABLES - register int pos = TQUnicodeTables::decimal_info[row()]; + int pos = TQUnicodeTables::decimal_info[row()]; if( !pos ) return -1; return TQUnicodeTables::decimal_info[(pos<<8) + cell()]; @@ -654,7 +654,7 @@ static TQString shared_decomp; const TQString &TQChar::decomposition() const { #ifndef TQT_NO_UNICODETABLES - register int pos = TQUnicodeTables::decomposition_info[row()]; + int pos = TQUnicodeTables::decomposition_info[row()]; if(!pos) return TQString::null; pos = TQUnicodeTables::decomposition_info[(pos<<8)+cell()]; @@ -681,7 +681,7 @@ const TQString &TQChar::decomposition() const TQChar::Decomposition TQChar::decompositionTag() const { #ifndef TQT_NO_UNICODETABLES - register int pos = TQUnicodeTables::decomposition_info[row()]; + int pos = TQUnicodeTables::decomposition_info[row()]; if(!pos) return TQChar::Single; pos = TQUnicodeTables::decomposition_info[(pos<<8)+cell()]; @@ -961,7 +961,7 @@ private: TQLigature::TQLigature( TQChar c ) { - register int pos = TQUnicodeTables::ligature_info[c.row()]; + int pos = TQUnicodeTables::ligature_info[c.row()]; if( !pos ) ligatures = 0; else @@ -2528,7 +2528,7 @@ TQString TQString::multiArg( int numArgs, const TQString& a1, const TQString& a2 int digitUsed[10]; int argForDigit[10]; }; - register const TQChar *uc = d->unicode; + const TQChar *uc = d->unicode; const TQString *args[4]; const int len = (int) length(); const int end = len - 1; @@ -3018,7 +3018,7 @@ int TQString::find( TQChar c, int index, bool cs ) const index += l; if ( (uint)index >= l ) return -1; - register const TQChar *uc = unicode()+index; + const TQChar *uc = unicode()+index; const TQChar *end = unicode() + l; if ( cs ) { while ( uc < end && *uc != c ) @@ -3041,7 +3041,7 @@ int TQString::find( TQChar c, int index, bool cs ) const static void bm_init_skiptable( const TQString &pattern, uint *skiptable, bool cs ) { int i = 0; - register uint *st = skiptable; + uint *st = skiptable; int l = pattern.length(); while ( i++ < 0x100/8 ) { *(st++) = l; @@ -3078,7 +3078,7 @@ static int bm_find( const TQString &str, int index, const TQString &pattern, uin const uint pl = pattern.length(); const uint pl_minus_one = pl - 1; - register const TQChar *current = uc + index + pl_minus_one; + const TQChar *current = uc + index + pl_minus_one; const TQChar *end = uc + l; if ( cs ) { while ( current < end ) { @@ -3269,7 +3269,7 @@ int TQString::findRev( TQChar c, int index, bool cs ) const if ( (uint)index >= l ) return -1; const TQChar *end = unicode(); - register const TQChar *uc = end + index; + const TQChar *uc = end + index; if ( cs ) { while ( uc >= end && *uc != c ) uc--; @@ -3836,7 +3836,7 @@ TQString TQString::mid( uint index, uint len ) const len = slen - index; if ( index == 0 && len == slen ) return *this; - register const TQChar *p = unicode()+index; + const TQChar *p = unicode()+index; TQString s( len, TRUE ); memcpy( s.d->unicode, p, len * sizeof(TQChar) ); s.d->len = len; @@ -3938,7 +3938,7 @@ TQString TQString::rightJustify( uint width, TQChar fill, bool truncate ) const TQString TQString::lower() const { int l = length(); - register TQChar *p = d->unicode; + TQChar *p = d->unicode; while ( l ) { if ( *p != ::lower(*p) ) { TQString s( *this ); @@ -3971,7 +3971,7 @@ TQString TQString::lower() const TQString TQString::upper() const { int l = length(); - register TQChar *p = d->unicode; + TQChar *p = d->unicode; while ( l ) { if ( *p != ::upper(*p) ) { TQString s( *this ); @@ -4012,7 +4012,7 @@ TQString TQString::stripWhiteSpace() const { if ( isEmpty() ) // nothing to do return *this; - register const TQChar *s = unicode(); + const TQChar *s = unicode(); if ( !s->isSpace() && !s[length()-1].isSpace() ) return *this; |