disable debug output
[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 std::string buildShortName( const std::string &str );
10
11 int strnicmp(const char*, const char*, int);
12
13 std::string getNum(int num, int base=10);
14
15 std::string convertDVBUTF8(const unsigned char *data, int len, int table=0, int tsidonid=0); // with default ISO8859-1/Latin1
16 std::string convertLatin1UTF8(const std::string &string);
17 int isUTF8(const std::string &string);
18
19 std::string removeDVBChars(const std::string &s);
20 void makeUpper(std::string &s);
21
22 inline std::string convertDVBUTF8(const std::string &string, int table=0, int tsidonid=0) // with default ISO8859-1/Latin1
23 {
24         return convertDVBUTF8((const unsigned char*)string.c_str(), string.length(), table, tsidonid);
25 }
26
27 #endif // __E_STRING__