From 1bb8f98f2bbcbfffa2a80805464dab9023892bb8 Mon Sep 17 00:00:00 2001 From: ndcollins Date: Tue, 28 May 2013 13:11:43 -0400 Subject: [PATCH 1/4] Update StringUtils.as --- .../src/com/adobe/coreUI/util/StringUtils.as | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Software Development Kit (SDK)/Flash Professional/Flash Player v10.3/src/com/adobe/coreUI/util/StringUtils.as b/Software Development Kit (SDK)/Flash Professional/Flash Player v10.3/src/com/adobe/coreUI/util/StringUtils.as index c49e992..81d83ff 100644 --- a/Software Development Kit (SDK)/Flash Professional/Flash Player v10.3/src/com/adobe/coreUI/util/StringUtils.as +++ b/Software Development Kit (SDK)/Flash Professional/Flash Player v10.3/src/com/adobe/coreUI/util/StringUtils.as @@ -84,9 +84,8 @@ package com.adobe.coreUI.util public static function trim(str:String):String { - for(var i:int = 0; str.charCodeAt(i) < 33; i++); - for(var j:int = str.length-1; str.charCodeAt(j) < 33; j--); - return str.substring(i, j+1); + if ( str == null ) return null; + return str.replace( /^\s*/, '' ).replace( /\s*$/, '' ); } } -} \ No newline at end of file +} From ba432631c9374113f8b3673a809c891518053e31 Mon Sep 17 00:00:00 2001 From: ndcollins Date: Tue, 28 May 2013 13:12:08 -0400 Subject: [PATCH 2/4] Update StringUtils.as --- .../src/com/adobe/coreUI/util/StringUtils.as | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Software Development Kit (SDK)/Flash Professional/Flash Player v10.1/src/com/adobe/coreUI/util/StringUtils.as b/Software Development Kit (SDK)/Flash Professional/Flash Player v10.1/src/com/adobe/coreUI/util/StringUtils.as index c49e992..81d83ff 100644 --- a/Software Development Kit (SDK)/Flash Professional/Flash Player v10.1/src/com/adobe/coreUI/util/StringUtils.as +++ b/Software Development Kit (SDK)/Flash Professional/Flash Player v10.1/src/com/adobe/coreUI/util/StringUtils.as @@ -84,9 +84,8 @@ package com.adobe.coreUI.util public static function trim(str:String):String { - for(var i:int = 0; str.charCodeAt(i) < 33; i++); - for(var j:int = str.length-1; str.charCodeAt(j) < 33; j--); - return str.substring(i, j+1); + if ( str == null ) return null; + return str.replace( /^\s*/, '' ).replace( /\s*$/, '' ); } } -} \ No newline at end of file +} From 5f27e689bd4636d501a8a0119bc520dcaf22f776 Mon Sep 17 00:00:00 2001 From: ndcollins Date: Tue, 28 May 2013 13:12:30 -0400 Subject: [PATCH 3/4] Update StringUtils.as --- .../src/com/adobe/coreUI/util/StringUtils.as | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Software Development Kit (SDK)/Flash Professional/Flash Player v10.0/src/com/adobe/coreUI/util/StringUtils.as b/Software Development Kit (SDK)/Flash Professional/Flash Player v10.0/src/com/adobe/coreUI/util/StringUtils.as index c49e992..81d83ff 100644 --- a/Software Development Kit (SDK)/Flash Professional/Flash Player v10.0/src/com/adobe/coreUI/util/StringUtils.as +++ b/Software Development Kit (SDK)/Flash Professional/Flash Player v10.0/src/com/adobe/coreUI/util/StringUtils.as @@ -84,9 +84,8 @@ package com.adobe.coreUI.util public static function trim(str:String):String { - for(var i:int = 0; str.charCodeAt(i) < 33; i++); - for(var j:int = str.length-1; str.charCodeAt(j) < 33; j--); - return str.substring(i, j+1); + if ( str == null ) return null; + return str.replace( /^\s*/, '' ).replace( /\s*$/, '' ); } } -} \ No newline at end of file +} From f1b8628359a0dfa714360a23bbf062a69cc6f684 Mon Sep 17 00:00:00 2001 From: ndcollins Date: Tue, 28 May 2013 12:12:58 -0500 Subject: [PATCH 4/4] Update StringUtils.as --- .../src/com/adobe/coreUI/util/StringUtils.as | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Software Development Kit (SDK)/Flash Professional/Flash Player v9.0/src/com/adobe/coreUI/util/StringUtils.as b/Software Development Kit (SDK)/Flash Professional/Flash Player v9.0/src/com/adobe/coreUI/util/StringUtils.as index c49e992..81d83ff 100644 --- a/Software Development Kit (SDK)/Flash Professional/Flash Player v9.0/src/com/adobe/coreUI/util/StringUtils.as +++ b/Software Development Kit (SDK)/Flash Professional/Flash Player v9.0/src/com/adobe/coreUI/util/StringUtils.as @@ -84,9 +84,8 @@ package com.adobe.coreUI.util public static function trim(str:String):String { - for(var i:int = 0; str.charCodeAt(i) < 33; i++); - for(var j:int = str.length-1; str.charCodeAt(j) < 33; j--); - return str.substring(i, j+1); + if ( str == null ) return null; + return str.replace( /^\s*/, '' ).replace( /\s*$/, '' ); } } -} \ No newline at end of file +}