hcl/lib2/h3-strings.ads

24 lines
615 B
Ada
Raw Normal View History

with H3.Arrays;
2021-08-23 23:47:29 +00:00
generic
type Item_Type is (<>);
G_Terminator_Value: Item_Type;
2021-08-23 23:47:29 +00:00
package H3.Strings is
package P is new H3.Arrays(Item_Type, 1, G_Terminator_Value);
Terminator_Length: System_Zero_Or_One renames P.Terminator_Length;
Terminator_Value: Item_Type renames P.Terminator_Value;
2021-08-23 23:47:29 +00:00
subtype Character_Array is P.Item_Array;
subtype Thin_Character_Array_Pointer is P.Thin_Item_Array_Pointer;
2021-08-23 23:47:29 +00:00
type Elastic_String is new P.Elastic_Array with record
--A: standard.integer := 999;
null;
2021-08-23 23:47:29 +00:00
end record;
2021-10-06 08:05:21 +00:00
overriding procedure Append (Obj: in out Elastic_String; V: in Character_Array);
2021-08-23 23:47:29 +00:00
end H3.Strings;