aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/lexer/details/parse.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-06 13:40:22 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-06 14:38:46 +0300
commit5c11d731cadd06204c8c6d6c1aea2253450204a8 (patch)
tree4bbea3a2f1180c39e958f9dad109ebf4adfe4e05 /server/lexer/details/parse.hpp
parentlexer: switch to Boost.Regex (diff)
downloadmath-server-5c11d731cadd06204c8c6d6c1aea2253450204a8.tar.gz
math-server-5c11d731cadd06204c8c6d6c1aea2253450204a8.zip
lexer: std:: vs boost:: for whitespace parsing
Added the corresponding benchmarks too.
Diffstat (limited to '')
-rw-r--r--server/lexer/details/parse.hpp5
1 files changed, 5 insertions, 0 deletions
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<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::string_view std_parse_whitespace(const std::string_view&);
+std::string_view boost_parse_whitespace(const std::string_view&);
+
}
// Exposed for testing: