[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Gets the number of bytes needed for the UTF-8 codepoint.
Source position: lazutf8.pas line 108
function UTF8CodepointStrictSize( |
P: PChar |
):Integer; |
P |
|
UTF-8-encoded values to examine. |
Number of bytes needed for the codepoint.
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.
Remark: | UTF8CodepointStrictSize stops examining the byte values in P when #0 (Decimal 0) is encountered. |
Version 3.2 | Generated 2024-02-25 | Home |