extends Node
A String node represents an immutable Unicode character sequence.
Get the Boolean value of this String.
See also: XPath v1.0 4.3 Boolean Functions
A string is true if and only if its length is non-zero
Encode this String into a sequence of bytes.
Returns: A new Bytes object
Get the character code for the character at the given zero-indexed position. If this string does not have enough characters this function returns the empty set.
Create a new String that is the concatentation of this String and the string value of other.
Determine whether this String contains the character sequence represented by the string value of other.
Determine whether this String ends with the character sequence represented by the string value of other.
Get the first index of other.
Returns: The index of the first occurence of the string value of other if contained within this String (starting at 1), otherwise 0.
Get the last index of other.
Returns: The index of the last occurence of the string value of other if contained within this String (starting at 1), otherwise 0.
Get the size of this string
Returns: The number of characters in this String
Get this character sequence turned into lower case.
Returns a nodeset containing a String for each match in this String of the regular expression pattern.
Same as: RegularExpression($pattern).match($this)
Returns a nodeset containing a String for each match in this String of the regular expression pattern, stopping after limit splits.
Same as: RegularExpression($pattern).match($this, $limit)
Returns: Boolean true if this string matches pattern at least once.
Same as: RegularExpression($pattern).matches($this)
See also: XPath v1.0 4.4 Number Functions
A string that consists of optional whitespace followed by an optional minus sign followed by a Number followed by whitespace is converted to the IEEE 754 number that is the nearest (according to the IEEE 754 round-to-nearest rule) to the mathematical value represented by the string; any other string is converted to NaN.
Returns a nodeset containing the substring before and after each match in this String of the regular expression pattern, stopping after limit splits.
Same as: RegularExpression($pattern).split($this, $limit)
Returns a nodeset containing the substring before and after each match in this String of the regular expression pattern.
Same as: RegularExpression($pattern).split($this)
Determine whether this String starts with the character sequence represented by the string value of other.
Get the string value of this String.
Creates a new String where every match of the regular expression pattern has been replaced by the substitution expression substitution, stopping after limit substitutions.
Same as: RegularExpression($pattern).substitute($this, $substitution, $limit)
Creates a new String where every match of the regular expression pattern has been replaced by the substitution expression substitution.
Same as: RegularExpression($pattern).substitute($this, $replacement)
Create a new String that is the character sequence that starts at position from of this String and continues to the end of the sequence.
Same as: substring($this, $from)
Create a new String that is the character sequence that starts at and includes position from of this String and continues to position to, noninclusive.
Same as: substring($this, $from, $to)
Create a new String that is the character sequence that starts after the first position in this String of the string value of other and continues to the end.
Returns: A new String containing the sequence after the first match, or an empty String if this String does not contain other
Create a new String that is the character sequence that starts after the last position in this String of the string value of other and continues to the end.
Returns: A new String containing the sequence after the last match, or an empty String if this String does not contain other
Get the character sequence that starts at the beginning of this String and continues to the first position of the string value of other.
Returns: A new String containing the sequence before the first match, or an empty String if this String does not contain other
Create a new String that is the character sequence that starts at the beginning of this String and continues to the last position of the string value of other.
Returns: A new String containing the sequence before the last match, or an empty String if this String does not contain other
Same as: translate($this, $from, $to)
Creates a new String by removing any leading or trailing whitespace from this String.
Get this character sequence turned into upper case.