Share

AcString::assign

C++

AcString & assign(
    const char * psz, 
    Encoding encoding, 
    Adesk::UInt32 nLen
);

Description

Assigns a string of narrow chars to the string.

Parameters

Parameters Description
psz Input pointer to the string of narrow chars to assign
encoding Input Encoding type
nLen Input maximum length

Returns

A reference to this string object.

Remarks

Currently, only Utf8 encoding is supported.

This is useful from assigning from an std::string_view.

Links

AcString

Was this information helpful?