diff options
Diffstat (limited to 'third-party/ghc/filesystem.hpp')
-rw-r--r-- | third-party/ghc/filesystem.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/third-party/ghc/filesystem.hpp b/third-party/ghc/filesystem.hpp index 1f0fe39209..bc00025f8e 100644 --- a/third-party/ghc/filesystem.hpp +++ b/third-party/ghc/filesystem.hpp @@ -6,6 +6,8 @@ // // Copyright (c) 2018, Steffen Schümann <s.schuemann@pobox.com> // +// SPDX-License-Identifier: MIT +// // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -211,7 +213,7 @@ public: template <typename char_type> constexpr char_type path_helper_base<char_type>::preferred_separator; #endif - + // 30.10.8 class path class GHC_FS_API_CLASS path #if defined(GHC_OS_WINDOWS) && defined(GHC_WIN_WSTRING_STRING_TYPE) @@ -228,7 +230,7 @@ public: #endif using string_type = std::basic_string<value_type>; using path_helper_base<value_type>::preferred_separator; - + // 30.10.10.1 enumeration format /// The path format in wich the constructor argument is given. enum format { @@ -1154,7 +1156,7 @@ GHC_INLINE std::error_code make_system_error(int err) return std::error_code(err ? err : errno, std::system_category()); } #endif - + #endif // GHC_EXPAND_IMPL template <typename Enum> @@ -1277,7 +1279,7 @@ GHC_INLINE unsigned consumeUtf8Fragment(const unsigned state, const uint8_t frag codepoint = (state ? (codepoint << 6) | (fragment & 0x3fu) : (0xffu >> category) & fragment); return state == S_RJCT ? static_cast<unsigned>(S_RJCT) : static_cast<unsigned>((utf8_state_info[category + 16] >> (state << 2)) & 0xf); } - + GHC_INLINE bool validUtf8(const std::string& utf8String) { std::string::const_iterator iter = utf8String.begin(); @@ -1295,9 +1297,9 @@ GHC_INLINE bool validUtf8(const std::string& utf8String) } } // namespace detail - + #endif - + namespace detail { template <class StringType, typename std::enable_if<(sizeof(typename StringType::value_type) == 1)>::type* = nullptr> |