Daniele Bartolini 9 سال پیش
والد
کامیت
dc6773af1d
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      tools/core/json/sjson.vala

+ 4 - 4
tools/core/json/sjson.vala

@@ -236,7 +236,7 @@ namespace Crown
 
 
 		static Value? parse_value(uint8 [] json, ref int index)
 		static Value? parse_value(uint8 [] json, ref int index)
 		{
 		{
-			uint8 c = Next(json, ref index);
+			uint8 c = next(json, ref index);
 
 
 			if (c == '{')
 			if (c == '{')
 				return parse_object(json, ref index);
 				return parse_object(json, ref index);
@@ -269,7 +269,7 @@ namespace Crown
 
 
 		}
 		}
 
 
-		static uint8 Next(uint8 [] json, ref int index)
+		static uint8 next(uint8 [] json, ref int index)
 		{
 		{
 			skip_whitespace(json, ref index);
 			skip_whitespace(json, ref index);
 			return json[index];
 			return json[index];
@@ -281,7 +281,7 @@ namespace Crown
 			consume(json, ref index, "{");
 			consume(json, ref index, "{");
 			skip_whitespace(json, ref index);
 			skip_whitespace(json, ref index);
 
 
-			while (Next(json, ref index) != '}') {
+			while (next(json, ref index) != '}') {
 				string key = parse_identifier(json, ref index);
 				string key = parse_identifier(json, ref index);
 				consume(json, ref index, "=");
 				consume(json, ref index, "=");
 				Value? value = parse_value(json, ref index);
 				Value? value = parse_value(json, ref index);
@@ -295,7 +295,7 @@ namespace Crown
 		{
 		{
 			ArrayList<Value?> a = new ArrayList<Value?>();
 			ArrayList<Value?> a = new ArrayList<Value?>();
 			consume(json, ref index, "[");
 			consume(json, ref index, "[");
-			while (Next(json, ref index) != ']') {
+			while (next(json, ref index) != ']') {
 				Value? value = parse_value(json, ref index);
 				Value? value = parse_value(json, ref index);
 				a.add(value);
 				a.add(value);
 			}
 			}