flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [26/50] git commit: [flex-asjs] [refs/heads/master] - string conversion
Date Wed, 07 Sep 2016 22:34:01 GMT
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/master
Commit: c98d892d5f3d8378bedc42023f38303416e87878
Parents: 895f366
Author: Alex Harui <aharui@apache.org>
Authored: Tue Aug 9 13:59:36 2016 -0700
Committer: Alex Harui <aharui@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


Mime
View raw message