Add a wide string export fuction.

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@508477 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2006-02-11 21:18:03 +00:00
parent 361ce1635a
commit c35d249195
2 changed files with 10 additions and 0 deletions

View File

@ -241,6 +241,11 @@ std::string String::to8Bit(bool unicode) const
return s;
}
TagLib::wstring String::to32Bit() const
{
return d->data;
}
const char *String::toCString(bool unicode) const
{
delete [] d->CString;

View File

@ -169,6 +169,11 @@ namespace TagLib {
*/
std::string to8Bit(bool unicode = false) const;
/*!
* Returns a wstring version of the TagLib string as a wide string.
*/
wstring to32Bit() const;
/*!
* Creates and returns a C-String based on the data. This string is still
* owned by the String (class) and as such should not be deleted by the user.