Added deNull().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5392 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-09-25 20:55:55 +00:00
parent e517ba314e
commit d48921acc2
+8
View File
@@ -53,6 +53,14 @@ public class StringUtil
return (str == null) || (str.search("\\S") == -1);
}
/**
* Return the specified String, or "" if it is null.
*/
public static function deNull (str :String) :String
{
return (str == null) ? "" : str;
}
/**
* Does the specified string end with the specified substring.
*/