Fixes RCU test cases error (loads should use Consume ordering)
[folly.git] / folly / Uri.cpp
index 03fe3a06c3620b55c1a15b3bbc497a494ddf8d19..8a4c790a19b933c02635d8b7a49c2686f19cf90c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2013-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,7 +16,8 @@
 
 #include <folly/Uri.h>
 
-#include <ctype.h>
+#include <cctype>
+
 #include <boost/regex.hpp>
 
 namespace folly {
@@ -35,7 +36,7 @@ void toLower(String& s) {
   }
 }
 
-}  // namespace
+} // namespace
 
 Uri::Uri(StringPiece str) : hasAuthority_(false), port_(0) {
   static const boost::regex uriRegex(
@@ -158,4 +159,4 @@ const std::vector<std::pair<std::string, std::string>>& Uri::getQueryParams() {
   return queryParams_;
 }
 
-}  // namespace folly
+} // namespace folly