File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 12
12
-- See the License for the specific language governing permissions and
13
13
-- limitations under the License.
14
14
15
- with Ada.Characters.Handling ;
16
15
with Ada.Characters.Latin_1 ;
17
16
with Ada.IO_Exceptions ;
18
17
with Ada.Strings.Bounded ;
@@ -28,6 +27,7 @@ package body JSON.Tokenizers is
28
27
Escaped : Boolean := False;
29
28
30
29
use type Streams.AS.Stream_Element_Offset;
30
+ use Ada.Characters.Latin_1;
31
31
begin
32
32
loop
33
33
C := Stream.Read_Character (Index);
@@ -49,7 +49,7 @@ package body JSON.Tokenizers is
49
49
end case ;
50
50
elsif C /= ' \' then
51
51
-- Check C is not a control character
52
- if Ada.Characters.Handling.Is_Control (C) then
52
+ if C in NUL .. US then
53
53
raise Tokenizer_Error with " Unexpected control character in string" ;
54
54
end if ;
55
55
end if ;
You can’t perform that action at this time.
0 commit comments