Core: Improving unicode support

git-svn-id: svn://ultimatepp.org/upp/trunk@11198 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-06-24 11:18:02 +00:00
parent c8f1cce1b1
commit 6f30c6489d
2 changed files with 60 additions and 36 deletions

View file

@ -96,11 +96,12 @@ Vector<dword> ToUtf32(const char *s, int len);
inline Vector<dword> ToUtf32(const char *s) { return ToUtf32(s, (int)strlen(s)); }
inline Vector<dword> ToUtf32(const String& s) { return ToUtf32(~s, s.GetCount()); }
enum { MAX_DECOMPOSED = 3 };
enum { MAX_DECOMPOSED = 18 };
int UnicodeDecompose(dword codepoint, dword t[MAX_DECOMPOSED], bool& canonical);
int UnicodeDecompose(dword codepoint, dword t[MAX_DECOMPOSED]);
dword UnicodeCompose(dword *t, int count);
int UnicodeDecompose(dword codepoint, dword t[MAX_DECOMPOSED], bool only_canonical = false);
Vector<dword> UnicodeDecompose(dword codepoint, bool only_canonical = false);
dword UnicodeCompose(const dword *t, int count);
inline dword UnicodeCompose(const Vector<dword>& t) { return UnicodeCompose(t, t.GetCount()); }
void SetDefaultCharset(byte charset);
byte GetDefaultCharset();

File diff suppressed because one or more lines are too long