Skip to content
Magnus Karlsson edited this page Mar 25, 2015 · 2 revisions

String (for more details please look at the tests in the test project: jshuntingyard-test)

The strings are single quoted.

len

len ( string x )

substr

substr ( string x , int from , int to )

charAt

charAt ( string x , int index )

compareTo

compareTo ( string x , string  y)

compareToIgnoreCase

compareToIgnoreCase ( string x , string  y)

equals

equals ( string x , string  y)

concat

concat ( string x , string y )

contains

contains ( string x , string y )

endsWith

endsWith ( string x , character x )

replace

replace ( string x , string toBeReplaced , string replaceWith )

startsWith

startsWith ( string x , string searchString )

toUpperCase

toUpperCase ( string x )

toLowerCase

toLowerCase ( string x )

indexOf

indexOf ( string x , string index )

lastIndexOf

lastIndexOf ( string x , string index )

numberFormat

numberFormat (string formatStr , double valueToFormat)

matches

matches ( string stringToBeMatched , string regex )

like

like ( string stringToBeSearchedIn , string likeSearch )

Clone this wiki locally