#ifndef register_hh_INCLUDED #define register_hh_INCLUDED #include #include #include "memoryview.hh" namespace Kakoune { class Register { public: Register& operator=(const std::string& value); Register& operator=(const memoryview& values); const std::string& get() const; const std::string& get(size_t index) const; operator memoryview() const { return memoryview(m_content); } private: std::vector m_content; static const std::string ms_empty; }; } #endif // register_hh_INCLUDED