mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 09:08:09 -04:00
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:
parent
361ce1635a
commit
c35d249195
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user