add simple add service to bouquet function (working with only one bouquet .. and...
[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 convertUTF8DVB(const std::string &string, int table=0); // with default ISO8859-1/Latin1
15 std::string convertLatin1UTF8(const std::string &string);
16 int isUTF8(const std::string &string);
17
18 std::string removeDVBChars(const std::string &s);
19 void makeUpper(std::string &s);
20
21 inline std::string convertDVBUTF8(const std::string &string, int table=0, int tsidonid=0) // with default ISO8859-1/Latin1
22 {
23         return convertDVBUTF8((const unsigned char*)string.c_str(), string.length(), table, tsidonid);
24 }
25
26 #endif // __E_STRING__