TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Functions
TTK::Codec Namespace Reference

Functions

TTK_MODULE_EXPORT QString toUnicode (const char *chars, const char *format="GBK")
 
TTK_MODULE_EXPORT QString toUnicode (const QByteArray &chars, const char *format="GBK")
 
TTK_MODULE_EXPORT QByteArray fromUnicode (const QString &chars, const char *format="GBK")
 
TTK_MODULE_EXPORT void setLocalCodec (const char *format="UTF-8")
 

Function Documentation

QByteArray TTK::Codec::fromUnicode ( const QString &  chars,
const char *  format = "GBK" 
)

Set string from unicode string by format.

Definition at line 17 of file musiccodecutils.cpp.

void TTK::Codec::setLocalCodec ( const char *  format = "UTF-8")

Set local codec by format.

Definition at line 23 of file musiccodecutils.cpp.

Referenced by MusicRunTimeManager::run().

QString TTK::Codec::toUnicode ( const char *  chars,
const char *  format = "GBK" 
)

Set string to unicode string by format.

Definition at line 5 of file musiccodecutils.cpp.

QString TTK::Codec::toUnicode ( const QByteArray &  chars,
const char *  format = "GBK" 
)

Set string to unicode string by format.

Definition at line 11 of file musiccodecutils.cpp.