diff options
author | Kargatum <dowlandtop@yandex.com> | 2022-01-19 12:01:59 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 12:01:59 +0700 |
commit | 259b9133f68ef0d740fc871d59fab3d2791f33b4 (patch) | |
tree | 89da4d2a14ee203de3baff62e6c2d5b4b025bbfa /src/common/Utilities/StringFormat.h | |
parent | b5ab409614bf0d45e7a4f03c57b15edf113fe5f0 (diff) |
feat(Core/Common): add new helpers for time utility (#10207)
Diffstat (limited to 'src/common/Utilities/StringFormat.h')
-rw-r--r-- | src/common/Utilities/StringFormat.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/common/Utilities/StringFormat.h b/src/common/Utilities/StringFormat.h index b8176ed219..e7f6fab3e0 100644 --- a/src/common/Utilities/StringFormat.h +++ b/src/common/Utilities/StringFormat.h @@ -1,13 +1,24 @@ /* - * Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3 - * Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore> - * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/> - * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> + * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by the + * Free Software Foundation; either version 3 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef _STRING_FORMAT_H_ #define _STRING_FORMAT_H_ +#include "Define.h" #include <fmt/core.h> #include <fmt/printf.h> @@ -58,7 +69,9 @@ namespace Acore namespace Acore::String { template<class Str> - Str Trim(const Str& s, const std::locale& loc = std::locale()); + AC_COMMON_API Str Trim(const Str& s, const std::locale& loc = std::locale()); + + AC_COMMON_API std::string TrimRightInPlace(std::string& str); } #endif |