[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Finds the start of the UTF-8 character at the specified position.
Source position: lazutf8.pas line 96
function UTF8FindNearestCharStart( |
UTF8Str: PChar; |
Len: SizeInt; |
BytePos: SizeInt |
):SizeInt; |
UTF8Str |
|
Values to examine in the function. |
Len |
|
Length of the input values. |
BytePos |
|
Offset into UTF8Str for the initial byte value. |
Position where the next codepoint begins.
Find the start of the UTF-8 character which contains BytePos. If BytePos is not part of a valid UTF-8 Codepoint the function returns BytePos. BytePos values starts at position 0.
Len is the length in bytes.
Version 3.2 | Generated 2024-02-25 | Home |