diff options
Diffstat (limited to 'src/cddb.cpp')
-rwxr-xr-x | src/cddb.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/cddb.cpp b/src/cddb.cpp index 5129987..c1ef793 100755 --- a/src/cddb.cpp +++ b/src/cddb.cpp @@ -126,7 +126,7 @@ CDDB::readLine(TQCString& ret) while (read_length < 40000) { // Look for a \n in buf - int ni = buf.tqfind('\n'); + int ni = buf.find('\n'); if (ni >= 0) { // Nice, so return this substring (without the \n), @@ -231,14 +231,14 @@ static void parse_query_resp (const TQCString& _r, TQCString& catg, TQCString& d_id, TQCString& title) { TQCString r = _r.stripWhiteSpace(); - int i = r.tqfind(' '); + int i = r.find(' '); if (i) { catg = r.left(i).stripWhiteSpace(); r.remove(0, i+1); r = r.stripWhiteSpace(); } - i = r.tqfind(' '); + i = r.find(' '); if (i) { d_id = r.left(i).stripWhiteSpace(); @@ -318,7 +318,7 @@ CDDB::parse_read_resp(TQTextStream *stream, TQTextStream *write_stream) else if (r.left(6) == "TTITLE") { r.remove(0, 6); - int e = r.tqfind('='); + int e = r.find('='); if (e) { bool ok; @@ -347,7 +347,7 @@ CDDB::parse_read_resp(TQTextStream *stream, TQTextStream *write_stream) /* XXX We should canonicalize the strings ("\n" --> '\n' e.g.) */ - int si = m_title.tqfind(" / "); + int si = m_title.find(" / "); if (si > 0) { m_artist = m_title.left(si).stripWhiteSpace(); @@ -355,7 +355,7 @@ CDDB::parse_read_resp(TQTextStream *stream, TQTextStream *write_stream) m_title = m_title.stripWhiteSpace(); } - si = m_title.tqfind(" - CD"); + si = m_title.find(" - CD"); if (si > 0) { TQString disc = m_title.right(m_title.length()-(si+5)).stripWhiteSpace(); @@ -367,22 +367,22 @@ CDDB::parse_read_resp(TQTextStream *stream, TQTextStream *write_stream) if (m_title.isEmpty()) m_title = i18n("No Title"); /*else - m_title.tqreplace(TQRegExp("/"), "%2f");*/ + m_title.replace(TQRegExp("/"), "%2f");*/ if (m_artist.isEmpty()) m_artist = i18n("Unknown"); /*else - m_artist.tqreplace(TQRegExp("/"), "%2f");*/ + m_artist.replace(TQRegExp("/"), "%2f");*/ //kdDebug(7101) << "CDDB: found Title: `" << m_title << "'" << endl; for (int i = 0; i < m_tracks; i++) { if (m_names[i].isEmpty()) m_names[i] += i18n("Track %1").tqarg(i); - //m_names[i].tqreplace(TQRegExp("/"), "%2f"); - si = m_names[i].tqfind(" - "); + //m_names[i].replace(TQRegExp("/"), "%2f"); + si = m_names[i].find(" - "); if (si < 0) { - si = m_names[i].tqfind(" / "); + si = m_names[i].find(" / "); } if (si > 0) { @@ -561,7 +561,7 @@ CDDB::queryCD(TQValueList<int>& track_ofs) } file.close(); /*TQString newname (file.name()); - newname.truncate(newname.tqfindRev('.')); + newname.truncate(newname.findRev('.')); if (TQDir::current().rename(file.name(), newname)) { //kdDebug(7101) << "CDDB: rename failed" << endl; file.remove(); |