Returns true if the UTF‐8 string between *source and sourceEnd is legal.

Synopsis

Declared in <llvm/Support/ConvertUTF.h>

Boolean
isLegalUTF8String(
    UTF8 const** source,
    UTF8 const* sourceEnd);

Description

On failure, *source is left pointing at the first illegal sequence.

Return Value

true if the string is a legal UTF‐8 sequence.

Parameters

Name

Description

source [inout]

Pointer to the start of the UTF‐8 string; advanced through the string, or left at the first illegal sequence on failure.

sourceEnd

Pointer just past the end of the string.

Created with MrDocs