summaryrefslogtreecommitdiff
path: root/src/support/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/string.h')
-rw-r--r--src/support/string.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/support/string.h b/src/support/string.h
index 120835b80..a73121f6b 100644
--- a/src/support/string.h
+++ b/src/support/string.h
@@ -22,13 +22,12 @@
#define wasm_support_string_h
#include "support/utilities.h"
+#include <algorithm>
#include <cctype>
#include <string>
#include <vector>
-namespace wasm {
-
-namespace String {
+namespace wasm::String {
// Creates a vector of the split parts of a string, by a delimiter.
class Split : public std::vector<std::string> {
@@ -120,8 +119,6 @@ inline bool isNumber(const std::string& str) {
return !str.empty() && std::all_of(str.begin(), str.end(), ::isdigit);
}
-} // namespace String
-
-} // namespace wasm
+} // namespace wasm::String
#endif // wasm_support_string_h