-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstrings_edit-utf8-mapping.ads
More file actions
89 lines (88 loc) · 3.37 KB
/
strings_edit-utf8-mapping.ads
File metadata and controls
89 lines (88 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
-- --
-- package Copyright (c) Dmitry A. Kazakov --
-- Strings_Edit.UTF8.Mapping Luebeck --
-- Interface Spring, 2008 --
-- --
-- Last revision : 21:03 21 Apr 2009 --
-- --
-- This library is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public License as --
-- published by the Free Software Foundation; either version 2 of --
-- the License, or (at your option) any later version. This library --
-- is distributed in the hope that it will be useful, but WITHOUT --
-- ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. You should have --
-- received a copy of the GNU General Public License along with --
-- this library; if not, write to the Free Software Foundation, --
-- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
--____________________________________________________________________--
--
-- This package provides mappings of code points as defined by
-- UnicodeData file.
--
package Strings_Edit.UTF8.Mapping is
pragma Elaborate_Body (Strings_Edit.UTF8.Mapping);
--
-- Has_Case -- Case test
--
-- Value - Code point
--
-- Returns :
--
-- True if Value has either an upper or a lower case equivalent
-- different from Code.
--
function Has_Case (Value : UTF8_Code_Point) return Boolean;
--
-- Is_Lowercase -- Case test
--
-- Value - Code point
--
-- Returns :
--
-- True if Value is a lower case point
--
function Is_Lowercase (Value : UTF8_Code_Point) return Boolean;
--
-- Is_Uppercase -- Case test
--
-- Value - Code point
--
-- Returns :
--
-- True if Value is a lower case point
--
function Is_Uppercase (Value : UTF8_Code_Point) return Boolean;
--
-- To_Lowercase -- Convert to lower case
--
-- Value - Code point or UTF-8 encoded string
--
-- Returns :
--
-- The lower case eqivalent or else Value itself
--
function To_Lowercase (Value : UTF8_Code_Point)
return UTF8_Code_Point;
function To_Lowercase (Value : String) return String;
--
-- To_Uppercase -- Convert to upper case
--
-- Value - Code point or UTF-8 encoded string
--
-- Returns :
--
-- The upper case eqivalent or else Value itself
--
function To_Uppercase (Value : UTF8_Code_Point)
return UTF8_Code_Point;
function To_Uppercase (Value : String) return String;
end Strings_Edit.UTF8.Mapping;