mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[Strings] Refactor Strings Usage (#2305)
* Initial commit checkpoint * More functions converted * Commify * More functions * Fin * Sort declarations * Split functions between files * Bots * Update strings.h * Split * Revert find replaces * Repository template * Money * Misc function * Update CMakeLists.txt * Saylink * Update strings.cpp * Swap Strings::Saylink for Saylink::Create since saylink is coupled to zone database * API casings
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <string>
|
||||
#include "../../content/world_content_service.h"
|
||||
#include "../../string_util.h"
|
||||
#include "../../strings.h"
|
||||
|
||||
namespace ContentFilterCriteria {
|
||||
static std::string apply(std::string table_prefix = "")
|
||||
@@ -61,14 +61,14 @@ namespace ContentFilterCriteria {
|
||||
flags_in_filter_enabled = fmt::format(
|
||||
" OR CONCAT(',', {}content_flags, ',') REGEXP ',({}),' ",
|
||||
table_prefix,
|
||||
implode("|", flags_enabled)
|
||||
Strings::Implode("|", flags_enabled)
|
||||
);
|
||||
}
|
||||
if (!flags_disabled.empty()) {
|
||||
flags_in_filter_disabled = fmt::format(
|
||||
" OR CONCAT(',', {}content_flags_disabled, ',') REGEXP ',({}),' ",
|
||||
table_prefix,
|
||||
implode("|", flags_disabled)
|
||||
Strings::Implode("|", flags_disabled)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user