From 3406780f654c5cb25ff9b0be24817aea90d92f25 Mon Sep 17 00:00:00 2001 From: jvelilla Date: Thu, 7 Nov 2013 19:18:20 -0300 Subject: [PATCH] Updated comments, add DEBUG_OUPUT to JSON_ARRAY. --- library/kernel/json_array.e | 2 ++ library/kernel/json_string.e | 4 ++-- library/kernel/scanner/json_parser.e | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/library/kernel/json_array.e b/library/kernel/json_array.e index 62480452..cd693f5c 100644 --- a/library/kernel/json_array.e +++ b/library/kernel/json_array.e @@ -20,6 +20,8 @@ inherit ITERABLE [JSON_VALUE] + DEBUG_OUTPUT + create make_array diff --git a/library/kernel/json_string.e b/library/kernel/json_string.e index d5401c37..a692219d 100644 --- a/library/kernel/json_string.e +++ b/library/kernel/json_string.e @@ -89,7 +89,7 @@ feature -- Access Result.append_character ('%R') i := i + 2 when 'u' then - --| Leave unicode \uXXXX unescaped + --| Leave Unicode \uXXXX unescaped Result.append_character ('\') i := i + 1 else @@ -274,7 +274,7 @@ feature {NONE} -- Implementation end 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 s_not_void: s /= Void local diff --git a/library/kernel/scanner/json_parser.e b/library/kernel/scanner/json_parser.e index d90264e5..a3bf29f3 100644 --- a/library/kernel/scanner/json_parser.e +++ b/library/kernel/scanner/json_parser.e @@ -357,7 +357,7 @@ feature -- Commands end read_unicode: STRING - -- Read unicode and return value + -- Read Unicode and return value local i: INTEGER do @@ -449,7 +449,7 @@ feature {NONE} -- Implementation end 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}" local i: INTEGER