X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4269ecde13580077c4d234b21784f704bf43e8fc..dd8a62a39c055230364641b7413ca34b2f00e51c:/lib/base/estring.h diff --git a/lib/base/estring.h b/lib/base/estring.h index a0b161de..727d591e 100644 --- a/lib/base/estring.h +++ b/lib/base/estring.h @@ -6,13 +6,23 @@ #include #include "eerror.h" +std::string buildShortName( const std::string &str ); + int strnicmp(const char*, const char*, int); std::string getNum(int num, int base=10); -std::string convertDVBUTF8(const unsigned char *data, int len, int table=5); -std::string convertUTF8DVB(const std::string &string); // with default ISO8859-5 -std::string convertDVBUTF8(const std::string &s, int table=5); + +std::string convertDVBUTF8(const unsigned char *data, int len, int table=1, int tsidonid=1); // with default ISO8859-1 / Latin1 std::string convertLatin1UTF8(const std::string &string); int isUTF8(const std::string &string); +std::string removeDVBChars(const std::string &s); +void makeUpper(std::string &s); +std::string replace_all(const std::string &in, const std::string &entity, const std::string &symbol); + +inline std::string convertDVBUTF8(const std::string &string, int table=1, int tsidonid=1) // with default ISO8859-1 / Latin1 +{ + return convertDVBUTF8((const unsigned char*)string.c_str(), string.length(), table, tsidonid); +} + #endif // __E_STRING__