Sign in Join
FPDoc Onlineexperiment

UTF8CodepointSizeFast function

In unit LazUTF8

Fast version of UTF8CodepointSize.

Declaration

pascal
function UTF8CodepointSizeFast(p: PChar): Integer

Arguments

p

Encoded values to examine in the function.

Function result

Number of bytes for the codepoint.

Description

Fast version of UTF8CodepointSize. Assumes the UTF-8 codepoint is valid. The return value is for a single codepoint.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.