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/refactor-sprite
Commit: c98d892d5f3d8378bedc42023f38303416e87878
Parents: 895f366
Author: Alex Harui <aha...@apache.org>
Authored: Tue Aug 9 13:59:36 2016 -0700
Committer: Alex Harui <aha...@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

Reply via email to