org.eclipse.corona.tools
Class StringHelper

java.lang.Object
  extended by org.eclipse.corona.tools.StringHelper

public class StringHelper
extends java.lang.Object

General purpose helper methods that deal with Strings


Constructor Summary
StringHelper()
           
 
Method Summary
static java.lang.String expandString(java.lang.String oldString)
          Expand all macros within a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringHelper

public StringHelper()
Method Detail

expandString

public static java.lang.String expandString(java.lang.String oldString)
Expand all macros within a String. A string macros is any system property or environment variable enclosed in '${' "}'. For each macro encountered, its value is checked witihn system properties. If the macro is not found, than environment variables are checked. If no value is found, the macro string is left unexpanded. All macros within the original string will be expanded. Nesting of macros is not supported.

Parameters:
oldString -
Returns:
newString w/ expanded values

Copyright 2006 IBM Corporation and others.
All Rights Reserved.