xref: /aoo4110/main/sal/textenc/unichars.h (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef INCLUDED_RTL_TEXTENC_UNICHARS_H
25 #define INCLUDED_RTL_TEXTENC_UNICHARS_H
26 
27 #include "sal/types.h"
28 
29 #if defined __cplusplus
30 extern "C" {
31 #endif /* __cpluscplus */
32 
33 #define RTL_TEXTENC_UNICODE_REPLACEMENT_CHARACTER 0xFFFD
34 
35 int ImplIsNoncharacter(sal_uInt32 nUtf32) SAL_THROW_EXTERN_C();
36 
37 int ImplIsControlOrFormat(sal_uInt32 nUtf32) SAL_THROW_EXTERN_C();
38 
39 int ImplIsHighSurrogate(sal_uInt32 nUtf32) SAL_THROW_EXTERN_C();
40 
41 int ImplIsLowSurrogate(sal_uInt32 nUtf32) SAL_THROW_EXTERN_C();
42 
43 int ImplIsPrivateUse(sal_uInt32 nUtf32) SAL_THROW_EXTERN_C();
44 
45 int ImplIsZeroWidth(sal_uInt32 nUtf32) SAL_THROW_EXTERN_C();
46 
47 sal_uInt32 ImplGetHighSurrogate(sal_uInt32 nUtf32) SAL_THROW_EXTERN_C();
48 
49 sal_uInt32 ImplGetLowSurrogate(sal_uInt32 nUtf32) SAL_THROW_EXTERN_C();
50 
51 sal_uInt32 ImplCombineSurrogates(sal_uInt32 nHigh, sal_uInt32 nLow)
52     SAL_THROW_EXTERN_C();
53 
54 #if defined __cplusplus
55 }
56 #endif /* __cpluscplus */
57 
58 #endif /* INCLUDED_RTL_TEXTENC_UNICHARS_H */
59