diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-04 16:39:58 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-04 16:41:09 +0200 |
| commit | c547aac3154962508fed5829d4c166394f2c168b (patch) | |
| tree | 61338991c93dded56dfede2a983d4cefebc64d18 /server/lexer/details/parse.hpp | |
| parent | adjust the formatting a little bit (diff) | |
| download | math-server-c547aac3154962508fed5829d4c166394f2c168b.tar.gz math-server-c547aac3154962508fed5829d4c166394f2c168b.zip | |
fix std::string_view usage
Diffstat (limited to 'server/lexer/details/parse.hpp')
| -rw-r--r-- | server/lexer/details/parse.hpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/server/lexer/details/parse.hpp b/server/lexer/details/parse.hpp index acf014b..d945c74 100644 --- a/server/lexer/details/parse.hpp +++ b/server/lexer/details/parse.hpp @@ -15,21 +15,21 @@ namespace impl { // Exposed for benchmarking: -std::optional<double> std_parse_number(const std::string_view&, std::string_view&); -std::optional<double> std_parse_number(const std::string_view&); -std::optional<double> boost_parse_number(const std::string_view&, std::string_view&); -std::optional<double> boost_parse_number(const std::string_view&); +std::optional<double> std_parse_number(std::string_view, std::string_view&); +std::optional<double> std_parse_number(std::string_view); +std::optional<double> boost_parse_number(std::string_view, std::string_view&); +std::optional<double> boost_parse_number(std::string_view); -std::string_view std_parse_whitespace(const std::string_view&); -std::string_view boost_parse_whitespace(const std::string_view&); +std::string_view std_parse_whitespace(std::string_view); +std::string_view boost_parse_whitespace(std::string_view); } // namespace impl // Exposed for testing: -std::string_view parse_whitespace(const std::string_view&); -std::optional<double> parse_number(const std::string_view&, std::string_view&); -std::optional<double> parse_number(const std::string_view&); -std::optional<token::Type> parse_const_token(const std::string_view&, std::string_view&); -std::optional<token::Type> parse_const_token(const std::string_view&); +std::string_view parse_whitespace(std::string_view); +std::optional<double> parse_number(std::string_view, std::string_view&); +std::optional<double> parse_number(std::string_view); +std::optional<token::Type> parse_const_token(std::string_view, std::string_view&); +std::optional<token::Type> parse_const_token(std::string_view); } // namespace math::server::lexer::details |
