Returns the byte length of the first UTF‐8 sequence, or 0 if it is invalid.

Synopsis

Declared in <llvm/Support/ConvertUTF.h>

unsigned int
getUTF8SequenceSize(
    UTF8 const* source,
    UTF8 const* sourceEnd);

Return Value

the byte length of the sequence, or 0 if it is invalid.

Parameters

Name

Description

source

Pointer to the first byte of the candidate UTF‐8 sequence.

sourceEnd

Pointer just past the end of the available buffer.

Created with MrDocs