slang/util/String.h file

Various string utilities.

Contents

Namespaces

namespace slang
Root namespace.

Functions

auto toStringView(span<char> text) -> string_view
Converts a span of characters into a string_view.
void uintToStr(SmallVector<char>& buffer, uint32_t value)
Converts the provided value into a string, storing it into buffer.
void uintToStr(SmallVector<char>& buffer, uint64_t value)
Converts the provided value into a string, storing it into buffer.
auto widen(string_view str) -> string_view
Widens the provided UTF8 string into UTF16 wchars.
auto narrow(string_view str) -> string_view
Widens the provided UTF16 string into UTF8.