if Name_Buffer (J) = '.' then
Store_String_Chars ("__");
else
- Store_String_Char (Get_Char_Code (Name_Buffer (J)));
+ Store_String_Char (Name_Buffer (J));
end if;
end loop;
function Null_String return String_Id is
begin
Start_String;
- Store_String_Char (Get_Char_Code (ASCII.NUL));
+ Store_String_Char (ASCII.NUL);
return End_String;
end Null_String;
New_Val := Old_Val;
else
Start_String (Old_Val);
- Store_String_Char (Get_Char_Code (ASCII.NUL));
+ Store_String_Char (ASCII.NUL);
New_Val := End_String;
end if;
if Present (Scope (Scope (Ent))) then
Internal_Full_Qualified_Name (Scope (Ent));
- Store_String_Char (Get_Char_Code ('.'));
+ Store_String_Char ('.');
end if;
-- Every entity should have a name except some expanded blocks
Internal_Full_Qualified_Name (E);
if Append_NUL then
- Store_String_Char (Get_Char_Code (ASCII.NUL));
+ Store_String_Char (ASCII.NUL);
end if;
return End_String;
-- Copy all characters in Full_Name
- for J in 1 .. String_Length (Full_Name) loop
- Store_String_Char (Get_String_Char (Full_Name, Pos (J)));
- end loop;
+ Store_String_Chars (Full_Name);
-- Compute CRC and convert it to string one character at a time, so
-- as not to use Image within the compiler.
Start_String;
if Negative then
- Store_String_Char (Get_Char_Code ('-'));
+ Store_String_Char ('-');
end if;
S := Sloc (Expr);
Src := Source_Text (Get_Source_File_Index (S));
while Src (S) /= ';' and then Src (S) /= ' ' loop
- Store_String_Char (Get_Char_Code (Src (S)));
+ Store_String_Char (Src (S));
S := S + 1;
end loop;
if Parent_Name /= No_String then
Start_String (Parent_Name);
- Store_String_Char (Get_Char_Code ('.'));
+ Store_String_Char ('.');
else
Start_String;
end if;
else
Start_String;
- Store_String_Char (Get_Char_Code ('*'));
+ Store_String_Char ('*');
String_Val := Strval (Expr_Value_S (Link_Nam));
Store_String_Chars (String_Val);
Link_Nam :=
procedure Encode is
begin
- Store_String_Char (Get_Char_Code ('_'));
- Store_String_Char
- (Get_Char_Code (Hex (Integer (CC / 2 ** 12))));
- Store_String_Char
- (Get_Char_Code (Hex (Integer (CC / 2 ** 8 and 16#0F#))));
- Store_String_Char
- (Get_Char_Code (Hex (Integer (CC / 2 ** 4 and 16#0F#))));
- Store_String_Char
- (Get_Char_Code (Hex (Integer (CC and 16#0F#))));
+ Store_String_Char ('_');
+ Store_String_Char (Hex (Integer (CC / 2 ** 12)));
+ Store_String_Char (Hex (Integer (CC / 2 ** 8 and 16#0F#)));
+ Store_String_Char (Hex (Integer (CC / 2 ** 4 and 16#0F#)));
+ Store_String_Char (Hex (Integer (CC and 16#0F#)));
end Encode;
-- Start of processing for Set_Encoded_Interface_Name
procedure Store_String_Chars (S : String) is
begin
for J in S'First .. S'Last loop
- Store_String_Char (Get_Char_Code (S (J)));
+ Store_String_Char (S (J));
end loop;
end Store_String_Chars;