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