+UTF8CodepointCount is an overloaded PtrInt function used +to determine the number of UTF-8 codepoints found in the specified value. The +overloaded variants allow the value to be specified using either the String or +the PChar type. +
++UTF8CodepointCount iterates over the byte values in the s or p arguments, and +increments the return value when a valid UTF-8 codepoint is found. Valid +codepoints include those represented by combining character combinations. +UTF8CodepointLen (in system.pp) is called to the get the size for each +of the UTF-8 codepoints. The process is repeated until all of the bytes in the +input value have been examined, or a codepoint with a length of zero (0) is encountered. +
++The return value is zero (0) if the s or p arguments are empty, or when the +ByteCount argument is zero (0). +
+