9 #include "../runner/common/Platform.h"
11 #include <string_view>
35 [[nodiscard]] std::string_view
Get(
const std::string_view& text)
const;
42 std::string_view
Set(
const std::string_view& text);
45 [[nodiscard]]
address_t Find(
const std::string_view& text)
const noexcept;
46 [[nodiscard]] std::string_view Text(
const address_t address)
const;
49 std::vector<address_t> mAddress;
50 std::unique_ptr<char, decltype(&std::free)> mBuffer;
Definition: StringPool.h:21
StringPool()
Definition: StringPool.cpp:15
std::string_view Get(const std::string_view &text) const
Definition: StringPool.cpp:54
StringPool(const StringPool &other)=delete
std::string_view Set(const std::string_view &text)
Definition: StringPool.cpp:59
StringPool & operator=(const StringPool &other)=delete
StringPool & operator=(StringPool &&other) noexcept=delete
StringPool(StringPool &&other) noexcept=delete
Definition: CodeBuffer.cpp:12
std::uint32_t address_t
Definition: Type.h:31