Commit 79bd4f82 authored by Sergey Zhupanov's avatar Sergey Zhupanov Committed by Facebook Github Bot

Drop the dependency on boost algorithm for Uri.

Summary: Replaced boost::algorithm::to_lower() with std::transform()

Reviewed By: yfeldblum

Differential Revision: D8264760

fbshipit-source-id: f6faa46c0bbced3a08c02b93eacbb58eb6927890
parent 5b2c689c
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#include <folly/Uri.h> #include <folly/Uri.h>
#include <algorithm>
#include <cctype> #include <cctype>
#include <boost/algorithm/string.hpp>
#include <boost/regex.hpp> #include <boost/regex.hpp>
namespace folly { namespace folly {
...@@ -46,7 +46,7 @@ Uri::Uri(StringPiece str) : hasAuthority_(false), port_(0) { ...@@ -46,7 +46,7 @@ Uri::Uri(StringPiece str) : hasAuthority_(false), port_(0) {
} }
scheme_ = submatch(match, 1); scheme_ = submatch(match, 1);
boost::algorithm::to_lower(scheme_); std::transform(scheme_.begin(), scheme_.end(), scheme_.begin(), ::tolower);
StringPiece authorityAndPath(match[2].first, match[2].second); StringPiece authorityAndPath(match[2].first, match[2].second);
boost::cmatch authorityAndPathMatch; boost::cmatch authorityAndPathMatch;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment