SubstrCP constructor

SubstrCP(
  1. dynamic string,
  2. dynamic index,
  3. 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. string expression can be any valid expression as long as it resolves to a string. If the argument resolves to a value of null or refers to a field that is missing, $substrCP returns an empty string. If the argument does not resolve to a string or null nor refers to a missing field, $substrCP returns 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]));