Debian Codegraph @

gcc/ada/libgnat/a-zchhan.ads

raw
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME COMPONENTS --
4 -- --
5 -- A D A . W I D E _ W I D E _ C H A R A C T E R S . H A N D L I N G --
6 -- --
7 -- S p e c --
8 -- --
9 -- This specification is derived from the Ada Reference Manual for use with --
10 -- GNAT. In accordance with the copyright of that document, you can freely --
11 -- copy and modify this specification, provided that if you redistribute a --
12 -- modified version, any changes that you have made are clearly indicated. --
13 -- --
14 ------------------------------------------------------------------------------
15
16 package Ada.Wide_Wide_Characters.Handling is
17 pragma Pure;
18
19 function Character_Set_Version return String;
20 pragma Inline (Character_Set_Version);
21 -- Returns an implementation-defined identifier that identifies the version
22 -- of the character set standard that is used for categorizing characters
23 -- by the implementation. For GNAT this is "Unicode v.v".
24
25 function Is_Control (Item : Wide_Wide_Character) return Boolean;
26 pragma Inline (Is_Control);
27 -- Returns True if the Wide_Wide_Character designated by Item is
28 -- categorized as other_control, otherwise returns false.
29
30 function Is_Letter (Item : Wide_Wide_Character) return Boolean;
31 pragma Inline (Is_Letter);
32 -- Returns True if the Wide_Wide_Character designated by Item is
33 -- categorized as letter_uppercase, letter_lowercase, letter_titlecase,
34 -- letter_modifier, letter_other, or number_letter. Otherwise returns
35 -- false.
36
37 function Is_Lower (Item : Wide_Wide_Character) return Boolean;
38 pragma Inline (Is_Lower);
39 -- Returns True if the Wide_Wide_Character designated by Item is
40 -- categorized as letter_lowercase, otherwise returns false.
41
42 function Is_Upper (Item : Wide_Wide_Character) return Boolean;
43 pragma Inline (Is_Upper);
44 -- Returns True if the Wide_Wide_Character designated by Item is
45 -- categorized as letter_uppercase, otherwise returns false.
46
47 function Is_Basic (Item : Wide_Wide_Character) return Boolean;
48 pragma Inline (Is_Basic);
49 -- Returns True if the Wide_Wide_Character designated by Item has no
50 -- Decomposition Mapping in the code charts of ISO/IEC 10646:2017,
51 -- otherwise returns False.
52
53 function Is_Digit (Item : Wide_Wide_Character) return Boolean;
54 pragma Inline (Is_Digit);
55 -- Returns True if the Wide_Wide_Character designated by Item is
56 -- categorized as number_decimal, otherwise returns false.
57
58 function Is_Decimal_Digit (Item : Wide_Wide_Character) return Boolean
59 renames Is_Digit;
60
61 function Is_Hexadecimal_Digit (Item : Wide_Wide_Character) return Boolean;
62 -- Returns True if the Wide_Wide_Character designated by Item is
63 -- categorized as number_decimal, or is in the range 'A' .. 'F' or
64 -- 'a' .. 'f', otherwise returns false.
65
66 function Is_Alphanumeric (Item : Wide_Wide_Character) return Boolean;
67 pragma Inline (Is_Alphanumeric);
68 -- Returns True if the Wide_Wide_Character designated by Item is
69 -- categorized as letter_uppercase, letter_lowercase, letter_titlecase,
70 -- letter_modifier, letter_other, number_letter, or number_decimal.
71 -- Otherwise returns false.
72
73 function Is_Special (Item : Wide_Wide_Character) return Boolean;
74 pragma Inline (Is_Special);
75 -- Returns True if the Wide_Wide_Character designated by Item
76 -- is categorized as graphic_character, but not categorized as
77 -- letter_uppercase, letter_lowercase, letter_titlecase, letter_modifier,
78 -- letter_other, number_letter, or number_decimal. Otherwise returns false.
79
80 function Is_Line_Terminator (Item : Wide_Wide_Character) return Boolean;
81 pragma Inline (Is_Line_Terminator);
82 -- Returns True if the Wide_Wide_Character designated by Item is
83 -- categorized as separator_line or separator_paragraph, or if Item is a
84 -- conventional line terminator character (CR, LF, VT, or FF). Otherwise
85 -- returns false.
86
87 function Is_Mark (Item : Wide_Wide_Character) return Boolean;
88 pragma Inline (Is_Mark);
89 -- Returns True if the Wide_Wide_Character designated by Item is
90 -- categorized as mark_non_spacing or mark_spacing_combining, otherwise
91 -- returns false.
92
93 function Is_Other_Format (Item : Wide_Wide_Character) return Boolean;
94 pragma Inline (Is_Other_Format);
95 -- Returns True if the Wide_Wide_Character designated by Item is
96 -- categorized as other_format, otherwise returns false.
97
98 function Is_Punctuation_Connector
99 (Item : Wide_Wide_Character) return Boolean;
100 pragma Inline (Is_Punctuation_Connector);
101 -- Returns True if the Wide_Wide_Character designated by Item is
102 -- categorized as punctuation_connector, otherwise returns false.
103
104 function Is_Space (Item : Wide_Wide_Character) return Boolean;
105 pragma Inline (Is_Space);
106 -- Returns True if the Wide_Wide_Character designated by Item is
107 -- categorized as separator_space, otherwise returns false.
108
109 function Is_NFKC (Item : Wide_Wide_Character) return Boolean;
110 pragma Inline (Is_NFKC);
111 -- Returns True if the Wide_Wide_Character designated by Item could be
112 -- present in a string normalized to Normalization Form KC (as defined by
113 -- Clause 21 of ISO/IEC 10646:2017), otherwise returns False.
114
115 function Is_Graphic (Item : Wide_Wide_Character) return Boolean;
116 pragma Inline (Is_Graphic);
117 -- Returns True if the Wide_Wide_Character designated by Item is
118 -- categorized as graphic_character, otherwise returns false.
119
120 function To_Lower (Item : Wide_Wide_Character) return Wide_Wide_Character;
121 pragma Inline (To_Lower);
122 -- Returns the Simple Lowercase Mapping of the Wide_Wide_Character
123 -- designated by Item. If the Simple Lowercase Mapping does not exist for
124 -- the Wide_Wide_Character designated by Item, then the value of Item is
125 -- returned.
126
127 function To_Lower (Item : Wide_Wide_String) return Wide_Wide_String;
128 -- Returns the result of applying the To_Lower Wide_Wide_Character to
129 -- Wide_Wide_Character conversion to each element of the Wide_Wide_String
130 -- designated by Item. The result is the null Wide_Wide_String if the value
131 -- of the formal parameter is the null Wide_Wide_String.
132
133 function To_Upper (Item : Wide_Wide_Character) return Wide_Wide_Character;
134 pragma Inline (To_Upper);
135 -- Returns the Simple Uppercase Mapping of the Wide_Wide_Character
136 -- designated by Item. If the Simple Uppercase Mapping does not exist for
137 -- the Wide_Wide_Character designated by Item, then the value of Item is
138 -- returned.
139
140 function To_Upper (Item : Wide_Wide_String) return Wide_Wide_String;
141 -- Returns the result of applying the To_Upper Wide_Wide_Character to
142 -- Wide_Wide_Character conversion to each element of the Wide_Wide_String
143 -- designated by Item. The result is the null Wide_Wide_String if the value
144 -- of the formal parameter is the null Wide_Wide_String.
145
146 function To_Basic (Item : Wide_Wide_Character) return Wide_Wide_Character;
147 pragma Inline (To_Basic);
148 -- Returns the Wide_Wide_Character whose code point is given
149 -- by the first value of its Decomposition Mapping in the code charts
150 -- of ISO/IEC 10646:2017 if any, returns Item otherwise.
151
152 function To_Basic (Item : Wide_Wide_String) return Wide_Wide_String;
153 -- Returns the result of applying the To_Basic conversion to each
154 -- Wide_Wide_Character element of the Wide_Wide_String designated by Item.
155 -- The result is the null Wide_Wide_String if the value of the formal
156 -- parameter is the null Wide_Wide_String. The lower bound of the result
157 -- Wide_Wide_String is 1.
158
159 end Ada.Wide_Wide_Characters.Handling;