初始提交: UE5.3项目基础框架
This commit is contained in:
26
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumAsync/HttpHeaders.h
vendored
Normal file
26
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumAsync/HttpHeaders.h
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace CesiumAsync {
|
||||
|
||||
/**
|
||||
* @brief A case-insensitive `less-then` string comparison.
|
||||
*
|
||||
* This can be used as a `Compare` function, for example for a `std::map`.
|
||||
* It will compare strings case-insensitively, by converting them to
|
||||
* lower-case and comparing the results (leaving the exact behavior for
|
||||
* non-ASCII strings unspecified).
|
||||
*/
|
||||
struct CaseInsensitiveCompare {
|
||||
/** @brief Performs a case-insensitive comparison of the two strings using
|
||||
* `std::lexicographical_compare`. */
|
||||
bool operator()(const std::string& s1, const std::string& s2) const;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Http Headers that maps case-insensitive header key with header value.
|
||||
*/
|
||||
using HttpHeaders = std::map<std::string, std::string, CaseInsensitiveCompare>;
|
||||
} // namespace CesiumAsync
|
||||
Reference in New Issue
Block a user