add support for python threads (python threads are just running when the mainloop
[enigma2.git] / lib / base / estring.h
1 #ifndef __E_STRING__
2 #define __E_STRING__
3
4 #include <string>
5 #include <stdarg.h>
6 #include <stdio.h>
7 #include "eerror.h"
8
9 int strnicmp(const char*, const char*, int);
10
11 std::string getNum(int num, int base=10);
12
13 std::string convertDVBUTF8(const unsigned char *data, int len, int table=0, int tsidonid=0); // with default ISO8859-1/Latin1
14 std::string convertLatin1UTF8(const std::string &string);
15 int isUTF8(const std::string &string);
16
17 std::string removeDVBChars(const std::string &s);
18 void makeUpper(std::string &s);
19
20 inline std::string convertDVBUTF8(const std::string &string, int table=0, int tsidonid=0) // with default ISO8859-1/Latin1
21 {
22         return convertDVBUTF8((const unsigned char*)string.c_str(), string.length(), table, tsidonid);
23 }
24
25 #endif // __E_STRING__