hcl/lib2/h3-strings.adb

20 lines
470 B
Ada
Raw Normal View History

2021-08-23 23:47:29 +00:00
package body H3.Strings is
2021-10-30 01:57:19 +00:00
procedure Append (Obj: in out Elastic_String; V: in Rune_Array) is
2021-08-23 23:47:29 +00:00
begin
2021-10-06 08:05:21 +00:00
P.Append (P.Elastic_Array(Obj), V);
end Append;
function Get_Rune (Obj: in Elastic_String; Pos: in System_Index) return Rune is
begin
return P.Get_Item(P.Elastic_Array(Obj), Pos);
end Get_Rune;
function To_Rune_Array (Obj: in Elastic_String) return Rune_Array is
begin
return P.To_Item_Array(P.Elastic_Array(Obj));
end To_Rune_Array;
2021-08-23 23:47:29 +00:00
end H3.Strings;