mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Core: Improving unicode support
git-svn-id: svn://ultimatepp.org/upp/trunk@11198 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c8f1cce1b1
commit
6f30c6489d
2 changed files with 60 additions and 36 deletions
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue