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/details/parse.cpp | |
| parent | update benchmark (diff) | |
| download | math-server-de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e.tar.gz math-server-de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e.zip | |
adjust the formatting a little bit
Diffstat (limited to '')
| -rw-r--r-- | server/lexer/details/parse.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/lexer/details/parse.cpp b/server/lexer/details/parse.cpp index e6f0898..1ba8097 100644 --- a/server/lexer/details/parse.cpp +++ b/server/lexer/details/parse.cpp @@ -33,7 +33,9 @@ public: // ^ I fucking hate C++. } - std::string to_str() const { return m_match[0].str(); } + std::string to_str() const { + return m_match[0].str(); + } protected: MatchResultsT m_match; @@ -64,7 +66,9 @@ protected: R"REGEX(^(?:\d+(?:\.\d*)?|\.\d+)(e[+-]?(\d*))?)REGEX"}; private: - bool matched_e() const { return this->m_match[1].matched; } + bool matched_e() const { + return this->m_match[1].matched; + } bool matched_e_power() const { return this->m_match[2].matched && this->m_match[2].length() != 0; |
