Mercurial > hg > CbC > CbC_gcc
comparison gcc/ada/stringt.ads @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
4 -- -- | 4 -- -- |
5 -- S T R I N G T -- | 5 -- S T R I N G T -- |
6 -- -- | 6 -- -- |
7 -- S p e c -- | 7 -- S p e c -- |
8 -- -- | 8 -- -- |
9 -- Copyright (C) 1992-2018, Free Software Foundation, Inc. -- | 9 -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- |
10 -- -- | 10 -- -- |
11 -- GNAT is free software; you can redistribute it and/or modify it under -- | 11 -- GNAT is free software; you can redistribute it and/or modify it under -- |
12 -- terms of the GNU General Public License as published by the Free Soft- -- | 12 -- terms of the GNU General Public License as published by the Free Soft- -- |
13 -- ware Foundation; either version 3, or (at your option) any later ver- -- | 13 -- ware Foundation; either version 3, or (at your option) any later ver- -- |
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- | 14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- |
39 | 39 |
40 -- This package contains routines for handling the strings table which is | 40 -- This package contains routines for handling the strings table which is |
41 -- used to store string constants encountered in the source, and also those | 41 -- used to store string constants encountered in the source, and also those |
42 -- additional string constants generated by compile time concatenation and | 42 -- additional string constants generated by compile time concatenation and |
43 -- other similar processing. | 43 -- other similar processing. |
44 | |
45 -- WARNING: There is a C version of this package. Any changes to this | |
46 -- source file must be properly reflected in the C header file stringt.h | |
44 | 47 |
45 -- A string constant in this table consists of a series of Char_Code values, | 48 -- A string constant in this table consists of a series of Char_Code values, |
46 -- so that 16-bit character codes can be properly handled if this feature | 49 -- so that 16-bit character codes can be properly handled if this feature |
47 -- is implemented in the scanner. | 50 -- is implemented in the scanner. |
48 | 51 |
125 procedure Append (Buf : in out Bounded_String; S : String_Id); | 128 procedure Append (Buf : in out Bounded_String; S : String_Id); |
126 -- Append characters of given string to Buf. Error if any characters are | 129 -- Append characters of given string to Buf. Error if any characters are |
127 -- out of Character range. Does not attempt to do any encoding of | 130 -- out of Character range. Does not attempt to do any encoding of |
128 -- characters. | 131 -- characters. |
129 | 132 |
133 function To_String (S : String_Id) return String; | |
134 -- Return S as a String | |
135 | |
130 procedure String_To_Name_Buffer (S : String_Id); | 136 procedure String_To_Name_Buffer (S : String_Id); |
131 -- Place characters of given string in Name_Buffer, setting Name_Len. | 137 -- Place characters of given string in Name_Buffer, setting Name_Len. |
132 -- Error if any characters are out of Character range. Does not attempt | 138 -- Error if any characters are out of Character range. Does not attempt |
133 -- to do any encoding of any characters. | 139 -- to do any encoding of any characters. |
134 | 140 |