SubstrCP constructor
SubstrCP(
- dynamic string,
- dynamic index,
- dynamic count
Creates $substrCP operator expression
Returns the substring of a string. The substring starts with the character at the specified UTF-8 code point (CP) index (zero-based) in the string for the number of code points specified.
string- The string from which the substring will be extracted.stringexpression can be any valid expression as long as it resolves to a string. If the argument resolves to a value ofnullor refers to a field that is missing,$substrCPreturns an empty string. If the argument does not resolve to a string ornullnor refers to a missing field,$substrCPreturns an error.index- Indicates the starting point of the substring. code point index can be any valid expression as long as it resolves to a non-negative integer.count- Can be any valid expression as long as it resolves to a non-negative integer or number that can be represented as an integer (such as 2.0).
Implementation
SubstrCP(string, index, count)
: super('substrCP', AEList([string, index, count]));