diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-04 15:38:28 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-04 15:38:28 +0200 |
| commit | de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e (patch) | |
| tree | bf3843cdf626c678f17e64704bd42125f5a6a5be /server/lexer/input.hpp | |
| parent | update benchmark (diff) | |
| download | math-server-de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e.tar.gz math-server-de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e.zip | |
adjust the formatting a little bit
Diffstat (limited to 'server/lexer/input.hpp')
| -rw-r--r-- | server/lexer/input.hpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/server/lexer/input.hpp b/server/lexer/input.hpp index addea89..0e28b13 100644 --- a/server/lexer/input.hpp +++ b/server/lexer/input.hpp @@ -16,13 +16,21 @@ class Input { public: explicit Input(const std::string_view& input) : m_pos{0}, m_input{input} {} - const std::string_view& get_input() const { return m_input; } + const std::string_view& get_input() const { + return m_input; + } - std::size_t get_pos() const { return m_pos; } + std::size_t get_pos() const { + return m_pos; + } - std::size_t get_length() const { return m_input.length(); } + std::size_t get_length() const { + return m_input.length(); + } - bool empty() const { return m_input.empty(); } + bool empty() const { + return m_input.empty(); + } void consume(std::size_t len) { if (m_input.length() < len) { @@ -32,7 +40,9 @@ public: m_input.remove_prefix(len); } - void consume(const std::string_view& sub) { consume(sub.length()); } + void consume(const std::string_view& sub) { + consume(sub.length()); + } private: std::size_t m_pos; |
