Main Content

matlab::data::Reference<CharArray>

C++ class to get reference to CharArray

Description

The CharArrayExt class extends the APIs available to a reference to a CharArray.

Class Details

Namespace:

matlab::data

Base class:

Reference<Array>

Include:

TypedArrayRef.hpp

Member Functions

toUTF16

String toUTF16() const
Returns

matlab::data::String

Contents of reference to CharArray as matlab::data::String string.

Throws

None

toAscii

std::string toAscii() const
Returns

std::string

Contents of reference to CharArray as ASCII string.

Throws

matlab::data::NonAsciiCharInRequestedAsciiOutputException

Data contains non-ASCII characters.

Introduced in R2017b