UTF8CodepointStrictSize function
Gets the number of bytes needed for the UTF-8 codepoint.
Declaration
function UTF8CodepointStrictSize(P: PChar): IntegerArguments
P | UTF-8-encoded values to examine. |
Function result
Number of bytes needed for the codepoint.
Description
Gets the number of bytes needed for the UTF-8 codepoint in P. The
return value contains the number of bytes need for the codepoint (in the
range 1..4), or 0 (zero) when P is not assigned or the codepoint is invalid.
UTF8CodepointStrictSize stops examining the byte values in P when #0 (Decimal
0) is encountered.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
