*Core: Charset fix

git-svn-id: svn://ultimatepp.org/upp/trunk@2458 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-06-05 19:28:45 +00:00
parent 3d2f86e8fd
commit 882de5788c
2 changed files with 11 additions and 8 deletions

View file

@ -49,8 +49,10 @@
#define CHARSET_CP437 46
#define CHARSET_CP737 47
#define CHARSET_CP775 48
// 49
// 50
#define CHARSET_TCVN 49
#define CHARSET_TIS_620 50
#define CHARSET_CP853 51
#define CHARSET_CP855 52
#define CHARSET_CP856 53
@ -84,7 +86,9 @@
#define CHARSET_ISO_8859_8 81
#define CHARSET_ISO_8859_9 82
#define CHARSET_JIS_X0201 83
// 84
#define CHARSET_VISCII 84
#define CHARSET_KOI8_RU 85
#define CHARSET_KOI8_T 86
#define CHARSET_KOI8_U 87
@ -103,9 +107,6 @@
#define CHARSET_MULELAO_1 100
#define CHARSET_NEXTSTEP 101
#define CHARSET_RISCOS_LATIN1 102
#define CHARSET_TCVN 103
#define CHARSET_TIS_620 104
#define CHARSET_VISCII 105
#define CHARSET_TOASCII 253
#define CHARSET_UTF8 255

View file

@ -89,8 +89,10 @@ public:
int Find(const String& s, int from = 0) const { return Find(s.GetCount(), ~s, from); }
int ReverseFind(int len, const tchar *s, int from) const;
int ReverseFind(const tchar *s, int from = 0) const;
int ReverseFind(const String& s, int from = 0) const { return ReverseFind(s.GetCount(), ~s, from); }
int ReverseFind(const tchar *s, int from) const;
int ReverseFind(const String& s, int from) const { return ReverseFind(s.GetCount(), ~s, from); }
int ReverseFind(const tchar *s) const { return ReverseFind(s, GetLength()-1);}
int ReverseFind(const String& s) const { return ReverseFind(s, GetLength()-1);}
bool StartsWith(const tchar *s, int len) const;
bool StartsWith(const tchar *s) const { return StartsWith(s, strlen__(s)); }