Developing Apama Applications > Developing Apama Applications in EPL > EPL Methods Quick Reference > string methods
string methods
Method
Result
canParse(string)
Returns a boolean true if the argument can be successfully parsed.
clone(string)
Returns a reference to the specified string.
find(substring)
Returns an integer indicating the index position of the argument. EPL string indices start at 0.
findFrom(substring, fromIndex)
Behaves like find() but starts searching at fromIndex.
intern()
Marks the string as interned. Subsequent incoming events that contain a string that is identical to an interned string use the same string object.
join(sequence<string> s )
Concatenates the strings in s using the operand as a separator.
length()
Returns an integer indicating the length of the string.
ltrim()
Returns a string where all white space characters at the beginning have been removed.
parse(string)
Returns the string value represented by the string argument without enclosing that value in quotation marks. You can call this method on the string type or on an instance of a string type.
replaceAll(string1, string2)
Makes a copy of the operand string, replaces instances of string1 with instances of string2 and returns the revised string.
rtrim()
Returns a string where all whitespace characters at the end have been removed.
split(string)
Returns a sequence of strings that represent the argument split at occurrences of the operand string.
substring(integer, integer)
Returns the substring indicated by the integer arguments.
toBoolean()
Returns a boolean true if the string is "true".
toDecimal()
Returns a decimal representation of the string.
toFloat()
Returns a float representation of the string.
toInteger()
Returns an integer representation of the string.
tokenize(string)
Categorizes each character in the argument as either part of a delimiter (the character appears in the operand string) or part of a token (any other character), divides the argument into tokens separated by delimiters, and returns the tokens as a sequence of strings.
toLower()
Returns an all-lowercase string representation.
toUpper()
Returns an all-uppercase string representation
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.