forked from AdaDoom3/AdaDoom3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
neo-system-text.ads
74 lines (74 loc) · 1.53 KB
/
neo-system-text.ads
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
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
--
with
Ada.Finalization,
Neo.Foundation.Text_IO,
Neo.Foundation.Data_Types,
Neo.Foundation.Package_Testing;
use
Ada.Finalization,
Neo.Foundation.Text_IO,
Neo.Foundation.Data_Types,
Neo.Foundation.Package_Testing;
package Neo.System.Text
is
-----------
-- Types --
-----------
type Record_String_UTF8
is private;
----------------
-- Suprograms --
----------------
procedure Test;
function Get(
Item : in Record_String_UTF8;
Index : in Integer_4_Positive)
return Character_2;
function Get_Length(
Item : in Record_String_UTF8)
return Integer_4_Positive;
function Get_Clipboard
return String_2;
procedure Set_Clipboard(
Text : in String_2);
function Create_Media_Name(
Item : in String_2)
return String_2;
-------
private
-------
---------------
-- Constants --
---------------
MEDIA_NAME_NON_CONFORMANT : constant String_2 := "|:\";
MEDIA_NAME_NON_CONFORMANT_REPLACEMENT : constant Character_1 := '/';
MEDIA_NAME_EXTENSION_SEPORATOR : constant Character_1 := '.';
REPLACEMENT_FOR_EXTENDED_CHARACTER : constant Character_1 := '~';
--------------------
-- Implementation --
--------------------
package Implementation
is
procedure Set_Clipboard(
Text : in String_2);
function Get_Clipboard
return String_2;
end Implementation;
package body Implementation
is separate;
end Neo.System.Text;