Debian Codegraph @

Headers/SheenBidi/SBCodepointSequence.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2016-2025 Muhammad Tayyab Akram
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef _SB_PUBLIC_CODEPOINT_SEQUENCE_H
18 #define _SB_PUBLIC_CODEPOINT_SEQUENCE_Hcxx . . $ `Headers/SheenBidi/SBCodepointSequence.h:18:9`!
19
20 #include <SheenBidi/SBBase.h>cxx . . $ `<file>/Headers/SheenBidi/SBBase.h`/
21 #include <SheenBidi/SBCodepoint.h>cxx . . $ `<file>/Headers/SheenBidi/SBCodepoint.h`/
22
23 SB_EXTERN_C_BEGINcxx . . $ `Headers/SheenBidi/SBBase.h:26:9`!
24
25 enumcxx . . $ $anonymous_type_df532b250559b1c0_0# {
26 SBStringEncodingUTF8cxx . . $ SBStringEncodingUTF8. = 0, /**< An 8-bit representation of Unicode code points. */
27 SBStringEncodingUTF16cxx . . $ SBStringEncodingUTF16. = 1, /**< 16-bit UTF encoding in native endianness. */
28 SBStringEncodingUTF32cxx . . $ SBStringEncodingUTF32. = 2 /**< 32-bit UTF encoding in native endianness. */
29 };
30 typedef SBUInt32cxx . . $ SBUInt32# SBStringEncodingcxx . . $ SBStringEncoding#;
31
32 typedef struct _SBCodepointSequencecxx . . $ _SBCodepointSequence# {
33 SBStringEncodingcxx . . $ SBStringEncoding# stringEncodingcxx . . $ _SBCodepointSequence#stringEncoding.; /**< The encoding of the string. */
34 const void *stringBuffercxx . . $ _SBCodepointSequence#stringBuffer.; /**< The source string containing the code units. */
35 SBUIntegercxx . . $ SBUInteger# stringLengthcxx . . $ _SBCodepointSequence#stringLength.; /**< The length of the string in terms of code units. */
36 } SBCodepointSequencecxx . . $ SBCodepointSequence#;
37
38 /**
39 * Returns the code point before the given string index.
40 *
41 * @param codepointSequence
42 * The object holding the information of the string.
43 * @param stringIndex
44 * The index of code unit before which to get the code point. On output, it is set to point to
45 * the first code unit of returned code point.
46 * @return
47 * The code point before the given string index, or SBCodepointInvalid if stringIndex is equal
48 * to zero or larger than actual length of source string.
49 */
50 SB_PUBLICcxx . . $ `Headers/SheenBidi/SBBase.h:39:9`! SBCodepointcxx . . $ SBCodepoint# SBCodepointSequenceGetCodepointBeforecxx . . $ SBCodepointSequenceGetCodepointBefore(87e19e57fe1bb6c5).(
51 const SBCodepointSequencecxx . . $ SBCodepointSequence# *codepointSequence, SBUIntegercxx . . $ SBUInteger# *stringIndex);
52
53 /**
54 * Returns the code point at the given string index.
55 *
56 * @param codepointSequence
57 * The object holding the information of the string.
58 * @param stringIndex
59 * The index of code unit at which to get the code point. On output, it is set to point to the
60 * first code unit of next code point.
61 * @return
62 * The code point at the given string index, or SBCodepointInvalid if stringIndex is larger
63 * than or equal to actual length of source string.
64 */
65 SB_PUBLICcxx . . $ `Headers/SheenBidi/SBBase.h:39:9`! SBCodepointcxx . . $ SBCodepoint# SBCodepointSequenceGetCodepointAtcxx . . $ SBCodepointSequenceGetCodepointAt(87e19e57fe1bb6c5).(
66 const SBCodepointSequencecxx . . $ SBCodepointSequence# *codepointSequence, SBUIntegercxx . . $ SBUInteger# *stringIndex);
67
68 SB_EXTERN_C_ENDcxx . . $ `Headers/SheenBidi/SBBase.h:27:9`!
69
70 #endif