diff options
Diffstat (limited to 'src/field.cpp')
-rw-r--r-- | src/field.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/field.cpp b/src/field.cpp index bfc6dff..0e9b809 100644 --- a/src/field.cpp +++ b/src/field.cpp @@ -398,7 +398,7 @@ TQString Field::capitalize(TQString str_) { return str_; } // first letter is always capitalized - str_.replace(0, 1, str_.tqat(0).upper()); + str_.replace(0, 1, str_.at(0).upper()); // special case for french words like l'espace @@ -418,7 +418,7 @@ TQString Field::capitalize(TQString str_) { for(TQStringList::ConstIterator it = s_articlesApos.begin(); it != s_articlesApos.end(); ++it) { if(word.lower().startsWith(*it)) { uint l = (*it).length(); - str_.replace(l, 1, str_.tqat(l).upper()); + str_.replace(l, 1, str_.at(l).upper()); break; } } @@ -435,7 +435,7 @@ TQString Field::capitalize(TQString str_) { for(TQStringList::ConstIterator it = s_articlesApos.begin(); it != s_articlesApos.end(); ++it) { if(word.lower().startsWith(*it)) { uint l = (*it).length(); - str_.replace(pos+l+1, 1, str_.tqat(pos+l+1).upper()); + str_.replace(pos+l+1, 1, str_.at(pos+l+1).upper()); aposMatch = true; break; } @@ -444,7 +444,7 @@ TQString Field::capitalize(TQString str_) { if(!aposMatch) { wordRx.setPattern(TQChar('^') + TQRegExp::escape(word) + TQChar('$')); if(notCap.grep(wordRx).isEmpty() && nextPos-pos > 1) { - str_.replace(pos+1, 1, str_.tqat(pos+1).upper()); + str_.replace(pos+1, 1, str_.at(pos+1).upper()); } } |