StringExpr

Constructors

this
this(const(void)[] data, Type charType)

Primary constructor.

this
this(Token*[] tokens)

For ASTSerializer.

Members

Functions

charType
TypeBasic charType()

Returns the underlying character type.

coerced
bool coerced()

Returns true if coerced, false if polysemous.

getDString
cdstring getDString()

Returns the UTF-32 string.

getString
cstring getString()

Returns the UTF-8 string.

getWString
cwstring getWString()

Returns the UTF-16 string.

length
size_t length()

Returns the number of characters in this string.

postfix
char postfix()

Returns 0, 'c', 'w', or 'd'.

tokens
Token*[] tokens()

Returns the tokens this literal comprises.

Variables

data
const(void)[] data;

Contains char, wchar or dchar characters.

Meta