Packagecom.esri.ags.utils
Classpublic class StringUtil
InheritanceStringUtil Inheritance Object

Since : ArcGIS API for Flex 2.3

The StringUtil utility class is an all-static class with methods for working with String objects.



Public Methods
 MethodDefined By
  
substitute(template:String, data:Object):String
[static] Performs parameterized substitutions on a string.
StringUtil
Method Detail
substitute()method
public static function substitute(template:String, data:Object):String

Performs parameterized substitutions on a string. The template can contain patterns like "{xxx}" where "xxx" is a key to a value in the data.

Parameters

template:String — String to be used as a template.
 
data:Object — Object used as a dictionary to look up substitutions.

Returns
String — the substituted string