String conversion TagLib <-> Qt

Алексей Новичков qtloverr at gmail.com
Sun Apr 24 08:38:30 CEST 2011


I've been using these macros according to TagLib sources:

#define QS(s) QString::fromUtf8(s.toCString(true))
#define TS(s) TagLib::String(s.toUtf8().constData(),TagLib::String::UTF8)

Is there any benefit (less memory consumption, faster conversion) to use the
following macros:

#define QS(s) QString::fromStdWString(s.toWString())
#define TS(s) TagLib::String(s.toStdWString())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110424/ad74f4a0/attachment.htm 


More information about the taglib-devel mailing list