Browse Source

Do not inline urlDecode and urlEncode for cpp

Hugh 11 years ago
parent
commit
07c90d9b83
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/StringTools.hx

+ 2 - 2
std/StringTools.hx

@@ -33,7 +33,7 @@ class StringTools {
 	/**
 	/**
 		Encode an URL by using the standard format.
 		Encode an URL by using the standard format.
 	**/
 	**/
-	#if !java inline #end public static function urlEncode( s : String ) : String untyped {
+	#if (!java && !cpp) inline #end public static function urlEncode( s : String ) : String untyped {
 		#if flash9
 		#if flash9
 			return __global__["encodeURIComponent"](s);
 			return __global__["encodeURIComponent"](s);
 		#elseif flash
 		#elseif flash
@@ -58,7 +58,7 @@ class StringTools {
 	/**
 	/**
 		Decode an URL using the standard format.
 		Decode an URL using the standard format.
 	**/
 	**/
-	#if !java inline #end public static function urlDecode( s : String ) : String untyped {
+	#if (!java && !cpp) inline #end public static function urlDecode( s : String ) : String untyped {
 		#if flash9
 		#if flash9
 			return __global__["decodeURIComponent"](s.split("+").join(" "));
 			return __global__["decodeURIComponent"](s.split("+").join(" "));
 		#elseif flash
 		#elseif flash