Updated comments, add DEBUG_OUPUT to JSON_ARRAY.

This commit is contained in:
jvelilla
2013-11-07 19:18:20 -03:00
parent 137af843af
commit 3406780f65
3 changed files with 6 additions and 4 deletions

View File

@@ -20,6 +20,8 @@ inherit
ITERABLE [JSON_VALUE] ITERABLE [JSON_VALUE]
DEBUG_OUTPUT
create create
make_array make_array

View File

@@ -89,7 +89,7 @@ feature -- Access
Result.append_character ('%R') Result.append_character ('%R')
i := i + 2 i := i + 2
when 'u' then when 'u' then
--| Leave unicode \uXXXX unescaped --| Leave Unicode \uXXXX unescaped
Result.append_character ('\') Result.append_character ('\')
i := i + 1 i := i + 1
else else
@@ -274,7 +274,7 @@ feature {NONE} -- Implementation
end end
escaped_json_string_32 (s: READABLE_STRING_32): STRING_8 escaped_json_string_32 (s: READABLE_STRING_32): STRING_8
-- JSON string with '"' and '\' characters and unicode escaped -- JSON string with '"' and '\' characters and Unicode escaped
require require
s_not_void: s /= Void s_not_void: s /= Void
local local

View File

@@ -357,7 +357,7 @@ feature -- Commands
end end
read_unicode: STRING read_unicode: STRING
-- Read unicode and return value -- Read Unicode and return value
local local
i: INTEGER i: INTEGER
do do
@@ -449,7 +449,7 @@ feature {NONE} -- Implementation
end end
is_valid_unicode (a_unicode: STRING): BOOLEAN is_valid_unicode (a_unicode: STRING): BOOLEAN
-- is 'a_unicode' a valid unicode based on this regular expression -- is 'a_unicode' a valid Unicode based on this regular expression
-- "\\u[0-9a-fA-F]{4}" -- "\\u[0-9a-fA-F]{4}"
local local
i: INTEGER i: INTEGER