advanceRaw overloads

Synopses

Declared in <bdlde_utf8util.h>

Advance past Unicode code points in a string_view.

static
Utf8Util::IntPtr
advanceRaw(
    char const** result,
    std::string_view const& string,
    IntPtr numCodePoints);

Advance past Unicode code points in a null‐terminated string.

static
IntPtr
advanceRaw(
    char const** result,
    char const* string,
    IntPtr numCodePoints);

Advance past Unicode code points in a bounded string.

static
IntPtr
advanceRaw(
    char const** result,
    char const* string,
    size_type length,
    IntPtr numCodePoints);

Return Value

number of Unicode code points traversed

Parameters

Name

Description

result

receives address after the last code point traversed

string

UTF‐8 string view to advance through

numCodePoints

maximum number of code points to advance

length

length of string in bytes

Created with MrDocs