slang::ast::StringLiteral class final

Represents a string literal.

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

std::string_view getValue() const
Gets the value of the literal.
std::string_view getRawValue() const
Gets the raw unprocessed text of the string literal token.
const ConstantValue& getIntValue() const
Gets the value of the string literal interpretted as an integer constant.