blob: f05cba1a79b02651309216fd4022cb26d79f51a9 (
plain)
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
|
-- This source is licensed under the Sunset License v1.0
with
Ada.Containers.Vectors,
Ada.Strings.Unbounded,
Ada.Text_IO;
generic
Separator_Char : Character := ',';
Quote_Char : Character := '"';
Escape_Char : Character := '\';
package Deckdata.CSV is
procedure Put_Cell
(File_Handle : in Ada.Text_IO.File_Type;
Data : in String);
procedure Put_Cell
(File_Handle : in Ada.Text_IO.File_Type;
Data : in Ada.Strings.Unbounded.Unbounded_String);
procedure Put_Header
(File_Handle : in Ada.Text_IO.File_Type;
Titles : in Field_ID_Vector);
procedure Put_Row
(File_Handle : in Ada.Text_IO.File_Type;
Cells : in Field_Vector;
Quantity : in Positive);
end Deckdata.CSV;
|