annotate gcc/ada/libgnat/a-wichha.ads @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT RUN-TIME COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- A D A . W I D E _ C H A R A C T E R S . H A N D L I N G --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
kono
parents:
diff changeset
9 -- This specification is derived from the Ada Reference Manual for use with --
kono
parents:
diff changeset
10 -- GNAT. In accordance with the copyright of that document, you can freely --
kono
parents:
diff changeset
11 -- copy and modify this specification, provided that if you redistribute a --
kono
parents:
diff changeset
12 -- modified version, any changes that you have made are clearly indicated. --
kono
parents:
diff changeset
13 -- --
kono
parents:
diff changeset
14 ------------------------------------------------------------------------------
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 package Ada.Wide_Characters.Handling is
kono
parents:
diff changeset
17 pragma Pure;
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 function Character_Set_Version return String;
kono
parents:
diff changeset
20 pragma Inline (Character_Set_Version);
kono
parents:
diff changeset
21 -- Returns an implementation-defined identifier that identifies the version
kono
parents:
diff changeset
22 -- of the character set standard that is used for categorizing characters
kono
parents:
diff changeset
23 -- by the implementation. For GNAT this is "Unicode v.v".
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 function Is_Control (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
26 pragma Inline (Is_Control);
kono
parents:
diff changeset
27 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
28 -- other_control, otherwise returns False.
111
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 function Is_Letter (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
31 pragma Inline (Is_Letter);
kono
parents:
diff changeset
32 -- Returns True if the Wide_Character designated by Item is categorized as
kono
parents:
diff changeset
33 -- letter_uppercase, letter_lowercase, letter_titlecase, letter_modifier,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
34 -- letter_other, or number_letter. Otherwise returns False.
111
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 function Is_Lower (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
37 pragma Inline (Is_Lower);
kono
parents:
diff changeset
38 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
39 -- letter_lowercase, otherwise returns False.
111
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 function Is_Upper (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
42 pragma Inline (Is_Upper);
kono
parents:
diff changeset
43 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
44 -- letter_uppercase, otherwise returns False.
111
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 function Is_Digit (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
47 pragma Inline (Is_Digit);
kono
parents:
diff changeset
48 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
49 -- number_decimal, otherwise returns False.
111
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 function Is_Decimal_Digit (Item : Wide_Character) return Boolean
kono
parents:
diff changeset
52 renames Is_Digit;
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 function Is_Hexadecimal_Digit (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
55 -- Returns True if the Wide_Character designated by Item is categorized as
kono
parents:
diff changeset
56 -- number_decimal, or is in the range 'A' .. 'F' or 'a' .. 'f', otherwise
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
57 -- returns False.
111
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 function Is_Alphanumeric (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
60 pragma Inline (Is_Alphanumeric);
kono
parents:
diff changeset
61 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
62 -- letter_uppercase, letter_lowercase, letter_titlecase, letter_modifier,
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
63 -- letter_other, number_letter, or number_decimal; otherwise returns False.
111
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 function Is_Special (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
66 pragma Inline (Is_Special);
kono
parents:
diff changeset
67 -- Returns True if the Wide_Character designated by Item is categorized
kono
parents:
diff changeset
68 -- as graphic_character, but not categorized as letter_uppercase,
kono
parents:
diff changeset
69 -- letter_lowercase, letter_titlecase, letter_modifier, letter_other,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
70 -- number_letter, or number_decimal. Otherwise returns False.
111
kono
parents:
diff changeset
71
kono
parents:
diff changeset
72 function Is_Line_Terminator (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
73 pragma Inline (Is_Line_Terminator);
kono
parents:
diff changeset
74 -- Returns True if the Wide_Character designated by Item is categorized as
kono
parents:
diff changeset
75 -- separator_line or separator_paragraph, or if Item is a conventional line
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
76 -- terminator character (CR, LF, VT, or FF). Otherwise returns False.
111
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 function Is_Mark (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
79 pragma Inline (Is_Mark);
kono
parents:
diff changeset
80 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
81 -- mark_non_spacing or mark_spacing_combining, otherwise returns False.
111
kono
parents:
diff changeset
82
kono
parents:
diff changeset
83 function Is_Other_Format (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
84 pragma Inline (Is_Other_Format);
kono
parents:
diff changeset
85 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
86 -- other_format, otherwise returns False.
111
kono
parents:
diff changeset
87
kono
parents:
diff changeset
88 function Is_Punctuation_Connector (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
89 pragma Inline (Is_Punctuation_Connector);
kono
parents:
diff changeset
90 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
91 -- punctuation_connector, otherwise returns False.
111
kono
parents:
diff changeset
92
kono
parents:
diff changeset
93 function Is_Space (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
94 pragma Inline (Is_Space);
kono
parents:
diff changeset
95 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
96 -- separator_space, otherwise returns False.
111
kono
parents:
diff changeset
97
kono
parents:
diff changeset
98 function Is_Graphic (Item : Wide_Character) return Boolean;
kono
parents:
diff changeset
99 pragma Inline (Is_Graphic);
kono
parents:
diff changeset
100 -- Returns True if the Wide_Character designated by Item is categorized as
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
101 -- graphic_character, otherwise returns False.
111
kono
parents:
diff changeset
102
kono
parents:
diff changeset
103 function To_Lower (Item : Wide_Character) return Wide_Character;
kono
parents:
diff changeset
104 pragma Inline (To_Lower);
kono
parents:
diff changeset
105 -- Returns the Simple Lowercase Mapping of the Wide_Character designated by
kono
parents:
diff changeset
106 -- Item. If the Simple Lowercase Mapping does not exist for the
kono
parents:
diff changeset
107 -- Wide_Character designated by Item, then the value of Item is returned.
kono
parents:
diff changeset
108
kono
parents:
diff changeset
109 function To_Lower (Item : Wide_String) return Wide_String;
kono
parents:
diff changeset
110 -- Returns the result of applying the To_Lower Wide_Character to
kono
parents:
diff changeset
111 -- Wide_Character conversion to each element of the Wide_String designated
kono
parents:
diff changeset
112 -- by Item. The result is the null Wide_String if the value of the formal
kono
parents:
diff changeset
113 -- parameter is the null Wide_String.
kono
parents:
diff changeset
114
kono
parents:
diff changeset
115 function To_Upper (Item : Wide_Character) return Wide_Character;
kono
parents:
diff changeset
116 pragma Inline (To_Upper);
kono
parents:
diff changeset
117 -- Returns the Simple Uppercase Mapping of the Wide_Character designated by
kono
parents:
diff changeset
118 -- Item. If the Simple Uppercase Mapping does not exist for the
kono
parents:
diff changeset
119 -- Wide_Character designated by Item, then the value of Item is returned.
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 function To_Upper (Item : Wide_String) return Wide_String;
kono
parents:
diff changeset
122 -- Returns the result of applying the To_Upper Wide_Character to
kono
parents:
diff changeset
123 -- Wide_Character conversion to each element of the Wide_String designated
kono
parents:
diff changeset
124 -- by Item. The result is the null Wide_String if the value of the formal
kono
parents:
diff changeset
125 -- parameter is the null Wide_String.
kono
parents:
diff changeset
126
kono
parents:
diff changeset
127 end Ada.Wide_Characters.Handling;