edvbstring: add inlined convertDVBUTF8 with std::string param

Origin commit data
------------------
Branch: ni/coolstream
Commit: 72f566474a
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-01-18 (Wed, 18 Jan 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-01-18 15:05:26 +04:00
parent 3566ae0180
commit cf69b2b99a

View File

@@ -5,4 +5,10 @@ const std::string convertLatin1UTF8(const std::string &string);
int isUTF8(const std::string &string);
std::string convertDVBUTF8(const char *data, int len, int table, int tsidonid = 0);
int readEncodingFile();
inline std::string convertDVBUTF8(const std::string &string, int table=0, int tsidonid=0)
{
return convertDVBUTF8((const char*)string.c_str(), string.length(), table, tsidonid);
}
#endif // __E_STRING__