summaryrefslogtreecommitdiff
path: root/sal/textenc/unichars.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-06 15:00:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-06 15:00:44 +0100
commit01690f571db071781a2358bcc15581a6fa9dd86c (patch)
treea6dd6ea602512e4d7be1abb0e78b6d218de585b0 /sal/textenc/unichars.cxx
parent353bed10cf7d41881654b82b0a833da8dff36a69 (diff)
Final disentanglement between sal and sal_textenc.
Diffstat (limited to 'sal/textenc/unichars.cxx')
-rw-r--r--sal/textenc/unichars.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/sal/textenc/unichars.cxx b/sal/textenc/unichars.cxx
index 1291fff8b8c0..65ef19ce9034 100644
--- a/sal/textenc/unichars.cxx
+++ b/sal/textenc/unichars.cxx
@@ -28,20 +28,10 @@
#include "sal/config.h"
-#include <cassert>
-
#include "sal/types.h"
#include "unichars.hxx"
-bool ImplIsNoncharacter(sal_uInt32 nUtf32)
-{
- // All code points that are noncharacters, as of Unicode 3.1.1:
- return (nUtf32 >= 0xFDD0 && nUtf32 <= 0xFDEF)
- || (nUtf32 & 0xFFFF) >= 0xFFFE
- || nUtf32 > 0x10FFFF;
-}
-
bool ImplIsControlOrFormat(sal_uInt32 nUtf32)
{
// All code points of
@@ -86,18 +76,6 @@ bool ImplIsControlOrFormat(sal_uInt32 nUtf32)
|| (nUtf32 >= 0xE0020 && nUtf32 <= 0xE007F);
}
-bool ImplIsHighSurrogate(sal_uInt32 nUtf32)
-{
- // All code points that are high-surrogates, as of Unicode 3.1.1.
- return nUtf32 >= 0xD800 && nUtf32 <= 0xDBFF;
-}
-
-bool ImplIsLowSurrogate(sal_uInt32 nUtf32)
-{
- // All code points that are low-surrogates, as of Unicode 3.1.1.
- return nUtf32 >= 0xDC00 && nUtf32 <= 0xDFFF;
-}
-
bool ImplIsPrivateUse(sal_uInt32 nUtf32)
{
// All code points of
@@ -119,22 +97,4 @@ bool ImplIsZeroWidth(sal_uInt32 nUtf32)
|| nUtf32 == 0xFEFF; // ZEOR WIDTH NO-BREAK SPACE
}
-sal_uInt32 ImplGetHighSurrogate(sal_uInt32 nUtf32)
-{
- assert(nUtf32 >= 0x10000);
- return ((nUtf32 - 0x10000) >> 10) | 0xD800;
-}
-
-sal_uInt32 ImplGetLowSurrogate(sal_uInt32 nUtf32)
-{
- assert(nUtf32 >= 0x10000);
- return ((nUtf32 - 0x10000) & 0x3FF) | 0xDC00;
-}
-
-sal_uInt32 ImplCombineSurrogates(sal_uInt32 nHigh, sal_uInt32 nLow)
-{
- assert(ImplIsHighSurrogate(nHigh) && ImplIsLowSurrogate(nLow));
- return (((nHigh & 0x3FF) << 10) | (nLow & 0x3FF)) + 0x10000;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */