Merge branch 'master' into jgrpp

# Conflicts:
#	cmake/CompileFlags.cmake
#	src/cargomonitor.cpp
#	src/core/CMakeLists.txt
#	src/economy.cpp
#	src/landscape.cpp
#	src/linkgraph/flowmapper.cpp
#	src/linkgraph/linkgraph_gui.cpp
#	src/linkgraph/linkgraphschedule.cpp
#	src/misc_gui.cpp
#	src/newgrf_generic.cpp
#	src/newgrf_storage.cpp
#	src/rail_gui.cpp
#	src/saveload/afterload.cpp
#	src/saveload/station_sl.cpp
#	src/script/script_gui.cpp
#	src/station_cmd.cpp
#	src/station_gui.cpp
#	src/string_func.h
#	src/terraform_cmd.cpp
This commit is contained in:
Jonathan G Rennison
2023-06-07 21:28:46 +01:00
129 changed files with 2080 additions and 2061 deletions

View File

@@ -410,22 +410,6 @@ bool StrEndsWith(const std::string_view str, const std::string_view suffix)
return str.compare(str.size() - suffix_len, suffix_len, suffix, 0, suffix_len) == 0;
}
const char *StrConsumeToSeparator(std::string &result, const char *str)
{
if (str == nullptr) {
result = "";
return nullptr;
}
const char *end = str;
while (*end != '\0' && *end != 0x1F) {
end++;
}
result.assign(str, end);
if (*end == 0x1F) return end + 1;
return nullptr;
}
/** Case insensitive implementation of the standard character type traits. */
struct CaseInsensitiveCharTraits : public std::char_traits<char> {
static bool eq(char c1, char c2) { return toupper(c1) == toupper(c2); }