blob: 3402228068da88ff8643801f0b354f47db96b667 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef __E_STRING__
#define __E_STRING__
#include <string>
#include <stdarg.h>
#include <stdio.h>
#include "eerror.h"
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=0, int tsidonid=0); // 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);
inline std::string convertDVBUTF8(const std::string &string, int table=0, int tsidonid=0) // with default ISO8859-1/Latin1
{
return convertDVBUTF8((const unsigned char*)string.c_str(), string.length(), table, tsidonid);
}
#endif // __E_STRING__
|