diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-11-25 03:33:31 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-11-25 03:33:31 +0800 |
commit | 9cb44b58e235c88bfd4a9243d1862a32b1097efe (patch) | |
tree | 7348bec8d6c30ddd50a32dad7c8e052d038cc44b /embed | |
parent | ba10b4ea6fbe8b701e1720584e10700050b291f1 (diff) | |
download | gsoc2013-epiphany-9cb44b58e235c88bfd4a9243d1862a32b1097efe.tar gsoc2013-epiphany-9cb44b58e235c88bfd4a9243d1862a32b1097efe.tar.gz gsoc2013-epiphany-9cb44b58e235c88bfd4a9243d1862a32b1097efe.tar.bz2 gsoc2013-epiphany-9cb44b58e235c88bfd4a9243d1862a32b1097efe.tar.lz gsoc2013-epiphany-9cb44b58e235c88bfd4a9243d1862a32b1097efe.tar.xz gsoc2013-epiphany-9cb44b58e235c88bfd4a9243d1862a32b1097efe.tar.zst gsoc2013-epiphany-9cb44b58e235c88bfd4a9243d1862a32b1097efe.zip |
Re-sync with mozilla.
2003-11-24 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/nsUnicharUtils.cpp:
* embed/mozilla/nsUnicharUtils.h:
Re-sync with mozilla.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/nsUnicharUtils.cpp | 2 | ||||
-rw-r--r-- | embed/mozilla/nsUnicharUtils.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/embed/mozilla/nsUnicharUtils.cpp b/embed/mozilla/nsUnicharUtils.cpp index d70619303..ce469250a 100644 --- a/embed/mozilla/nsUnicharUtils.cpp +++ b/embed/mozilla/nsUnicharUtils.cpp @@ -53,7 +53,7 @@ static nsICaseConversion *gCaseConv = nsnull; class nsShutdownObserver : public nsIObserver { public: - nsShutdownObserver() { NS_INIT_ISUPPORTS(); } + nsShutdownObserver() { } virtual ~nsShutdownObserver() {} NS_DECL_ISUPPORTS diff --git a/embed/mozilla/nsUnicharUtils.h b/embed/mozilla/nsUnicharUtils.h index 6ae9a238d..17b3f4666 100644 --- a/embed/mozilla/nsUnicharUtils.h +++ b/embed/mozilla/nsUnicharUtils.h @@ -85,12 +85,16 @@ inline PRBool IsLowerCase(PRUnichar c) { #define SURROGATE_TO_UCS4(h, l) ((((PRUint32)(h)-(PRUint32)0xd800) << 10) + \ (PRUint32)(l) - (PRUint32)(0xdc00) + 0x10000) +#define H_SURROGATE(s) ((PRUnichar)(((PRUint32)s - (PRUint32)0x10000) >> 10) + (PRUnichar)0xd800) +#define L_SURROGATE(s) ((PRUnichar)(((PRUint32)s - (PRUint32)0x10000) & 0x3ff) + (PRUnichar)0xdc00) +#define IS_IN_BMP(ucs) ((PRUint32)ucs < 0x10000) + /* (0x3131u <= (u) && (u) <= 0x318eu) => Hangul Compatibility Jamo */ /* (0xac00u <= (u) && (u) <= 0xd7a3u) => Hangul Syllables */ #define IS_CJ_CHAR(u) \ ((0x2e80u <= (u) && (u) <= 0x312fu) || \ (0x3190u <= (u) && (u) <= 0xabffu) || \ (0xf900u <= (u) && (u) <= 0xfaffu) || \ - (0xff00u <= (u) && (u) <= 0xffffu) ) + (0xff00u <= (u) && (u) <= 0xffefu) ) #endif /* nsUnicharUtils_h__ */ |