utf_decodeWchar

Decode a UTF-16 sequence as a single UTF-32 code point.

nothrow pure @nogc
immutable(char*)
utf_decodeWchar
(
const(wchar)* s
,
size_t len
,
ref size_t ridx
,
out dchar rresult
)

Parameters

s
Type: const(wchar)*

UTF-16 sequence

len
Type: size_t

number of code units in s[]

ridx
Type: size_t

starting index in s[], updated to reflect number of code units decoded

rresult
Type: dchar

set to character decoded

Return Value

Type: immutable(char*)

null on success, otherwise error message string

Meta