You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/08/25 15:32:37 UTC

[29/50] [abbrv] git commit: [flex-asjs] [refs/heads/spark] - string conversion

string conversion


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c98d892d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c98d892d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c98d892d

Branch: refs/heads/spark
Commit: c98d892d5f3d8378bedc42023f38303416e87878
Parents: 895f366
Author: Alex Harui <ah...@apache.org>
Authored: Tue Aug 9 13:59:36 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Aug 9 13:59:36 2016 -0700

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/utils/Language.as      | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c98d892d/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as b/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as
index 611bb0f..9ddc0d7 100644
--- a/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as
+++ b/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as
@@ -105,6 +105,17 @@ package org.apache.flex.utils
 		}
 
 		/**
+		 * int()
+		 *
+		 * @param value The value to be cast.
+		 * @return {string}
+		 */
+		static public function string(value:*):String
+		{
+			return value == null ? null : value.toString();
+		}
+
+		/**
 		 * is()
 		 *
 		 * @param leftOperand The lefthand operand of the