Selaa lähdekoodia

[std] revert the JsonPrinter part of the reversal

(32152bd reverted too much)
Jens Fischer 6 vuotta sitten
vanhempi
commit
1980edf5a6
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      std/haxe/format/JsonPrinter.hx

+ 5 - 5
std/haxe/format/JsonPrinter.hx

@@ -185,8 +185,8 @@ class JsonPrinter {
 	}
 
 	function quote( s : String ) {
-		#if (neko || php || cpp)
-		if( s.length != haxe.Utf8.length(s) ) {
+		#if neko
+		if( s.length != neko.Utf8.length(s) ) {
 			quoteUtf8(s);
 			return;
 		}
@@ -236,10 +236,10 @@ class JsonPrinter {
 		addChar('"'.code);
 	}
 
-	#if (neko || php || cpp)
+	#if neko
 	function quoteUtf8( s : String ) {
-		var u = new haxe.Utf8();
-		haxe.Utf8.iter(s,function(c) {
+		var u = new neko.Utf8();
+		neko.Utf8.iter(s,function(c) {
 			switch( c ) {
 			case '\\'.code, '"'.code: u.addChar('\\'.code); u.addChar(c);
 			case '\n'.code: u.addChar('\\'.code); u.addChar('n'.code);