From 5c11d731cadd06204c8c6d6c1aea2253450204a8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 6 Jan 2020 13:40:22 +0300 Subject: lexer: std:: vs boost:: for whitespace parsing Added the corresponding benchmarks too. --- server/lexer/details/parse.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/lexer/details/parse.hpp') diff --git a/server/lexer/details/parse.hpp b/server/lexer/details/parse.hpp index 6a8688b..693dd35 100644 --- a/server/lexer/details/parse.hpp +++ b/server/lexer/details/parse.hpp @@ -13,11 +13,16 @@ namespace math::server::lexer::details { namespace impl { +// Exposed for benchmarking: + std::optional std_parse_number(const std::string_view&, std::string_view&); std::optional std_parse_number(const std::string_view&); std::optional boost_parse_number(const std::string_view&, std::string_view&); std::optional boost_parse_number(const std::string_view&); +std::string_view std_parse_whitespace(const std::string_view&); +std::string_view boost_parse_whitespace(const std::string_view&); + } // Exposed for testing: -- cgit v1.2.3