We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdd86a1 commit 8bcc2aaCopy full SHA for 8bcc2aa
src/json-tokenizers.adb
@@ -12,7 +12,6 @@
12
-- See the License for the specific language governing permissions and
13
-- limitations under the License.
14
15
-with Ada.Characters.Handling;
16
with Ada.Characters.Latin_1;
17
with Ada.IO_Exceptions;
18
with Ada.Strings.Bounded;
@@ -28,6 +27,7 @@ package body JSON.Tokenizers is
28
27
Escaped : Boolean := False;
29
30
use type Streams.AS.Stream_Element_Offset;
+ use Ada.Characters.Latin_1;
31
begin
32
loop
33
C := Stream.Read_Character (Index);
@@ -49,7 +49,7 @@ package body JSON.Tokenizers is
49
end case;
50
elsif C /= '\' then
51
-- Check C is not a control character
52
- if Ada.Characters.Handling.Is_Control (C) then
+ if C in NUL .. US then
53
raise Tokenizer_Error with "Unexpected control character in string";
54
end if;
55
0 commit comments