Package org.wso2.siddhi.extension.string
package org.wso2.siddhi.extension.string
-
ClassDescriptioncharAt(string , index) Returns the char value in 'string' at the specified 'index'.contains(inputSequence, searchingSequence) This method returns true if and only if this string contains the specified sequence of char values.equalsIgnoreCase(string, compareTo) Compares two strings lexicographically.hex(a) Returns a hexadecimal string representation of str, where each byte of each character in str is converted to two hexadecimal digits.length(string) Returns the length of this string.lower(string) Converts the capital letters in the input string to the equivalent simple letters.regexp(string, regex) Tells whether or not this 'string' matches the given regular expression 'regex'.repeat(string , times) Repeats a string for a specified number of times.replaceAll(string, regex, replacement) Replaces each substring of this string that matches the given expression with the given replacement.replaceFirst(string, regex, replacement) Replaces the first substring of this string that matches the given expression with the given replacement.reverse(string) Returns the reverse ordered string of the input.split(sourceText, splitCharacter, returnedOutputPosition) Splits the source String by splitCharacter and return the string in the index given by returnedOutputPosition​ ​ Accept Type(s): (STRING, STRING, INT) Return Type(s): STRINGstrcmp(string, compareTo) Compares two strings lexicographically.substr(sourceText, beginIndex) or substr(sourceText, beginIndex, length) or substr(sourceText, regex) or substr(sourceText, regex, groupNumber) Returns a new string that is a substring of this string.trim(string) Returns a copy of the string, with leading and trailing whitespace omitted.upper(string) Converts the simple letters in the input string to the equivalent capital letters.