| Package | com.esri.ags.utils |
| Class | public class StringUtil |
| Inheritance | StringUtil Object |
| Since : | ArcGIS API for Flex 2.3 |
| Method | Defined By | ||
|---|---|---|---|
substitute(template:String, data:Object):String [static]
Performs parameterized substitutions on a string. | StringUtil | ||
| substitute | () | method |
public static function substitute(template:String, data:Object):StringPerforms 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.
|
String — the substituted string
|