Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add To_Array_String for bareboard String_Util #72

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/unit_test/string_util/bb/string_util.adb
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,18 @@ package body String_Util is

-- Return the string representation of an array
function To_Array_String (R : in A; Show_Index : in Boolean := True) return String is
pragma Unreferenced (Image);
Ignore_R : A renames R;
Ignore : Boolean renames Show_Index;
begin
return "Array string are not supported on this platform!";
-- Dummy usage of Image to avoid warnings.
-- It basically achieves this
-- pragma Unreferenced(Image);
-- for this .adb file only.
declare
Dummy_String : constant String := Image (R (R'First));
begin
null;
end;
return R'Image;
end To_Array_String;

function Trim_Both (Input : in String) return String is
Expand Down