aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/Util.cpp
AgeCommit message (Collapse)Author
2025-06-08Core/Misc: Remove boost/algorithm dependencyShauren
2025-04-09Core/Network: Move to separate projectShauren
2024-11-27Adjust previous commit to compile with clang on systems that have gcc 12 ↵Shauren
installed
2024-11-26Core/Misc: Modernize and improve GetMainPartOfNameShauren
2024-10-16Core/Misc: Replace std::ostringstream based formatting with ↵Shauren
Trinity::StringFormat where possible in common and database projects
2024-07-16Core/Logging: Minor internal refactorShauren
* Avoid formatting to output with fprintf * Use vector instead of unordered_map to store appenders in Logger
2023-12-01Core/Misc: Added windows version checks during startup to avoid confusion ↵Shauren
about crashes when running on unsupported OS
2023-11-21Core/Calendar: Implement different timezone support for ingame calendarShauren
Closes #8390 Closes #29427
2023-05-13Core/Misc: Replace string to int conversion functions from Common.h with ↵Shauren
c++17 std::from_chars based ones Trinity::StringTo
2023-01-08Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard ↵Shauren
compatible api)
2023-01-07Core/Misc: Replace enable_if overload selection with if constexprShauren
2022-10-01Core/Misc: Fix *BSD compile errors (#28287)Lloyd Dilley
(cherry picked from commit 2b8fc95fdec69ca5c057c2e63a1313d8165d44ea)
2022-03-09Core/Console: Improve ReadWinConsole logic and cosmetic changes (#26402)Mikhail Redko
* Core/Console: Improve ReadWinConsole logic and cosmetic changes * Core/Console: Fixed possible appearance of weird characters in the console when printing the output of child processes * Fix codestyle * Removed auto * Core/Misc: Explicit casting Difficulty values to uint8 before outputting to console * Core/Misc: Cast Difficulty to uint32 for output to console Co-authored-by: jackpoz <giacomopoz@gmail.com> (cherry picked from commit 6c12f45f3b7d7eab32ed29860d2261fc8a512f0e)
2022-03-08Core/Console: Fix uninitialized variableShauren
(cherry picked from commit 677952fbc59676b549337f9f7eb5c7e7abb1135e)
2022-03-08Core/Misc: Fixed utf8 encoding in console input/output. (#26352)Mikhail Redko
* Core/Misc: Fixed utf8 encoding in console input/output. * Fix gcc build * Fixed that weird 'a' with circle above it and other similar letters. Also fixed encoding in AppenderConsole which sometimes did not work as it should * Fix build on Linux * Probably better to do it like this (cherry picked from commit 1539bed3db86f2153f2d0d5fbf24bf9ee4af1d92)
2022-03-05Core/Misc: Remove unneeded null-terminator after switch from wchar_t to ↵Mikhail Redko
std::wstring in 309851e. Fixes creation characters with declined russian names (#25797) Closes #23775 (cherry picked from commit eaa22b8a1722fd362bf5ef2c6944b5c50b121afd)
2022-02-05[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)Treeston
(cherry picked from commit 75f9e7396e35360f3016cc0cb21e72e20f5d96d5)
2022-02-05Core/ChatCommands: make ExactSequence more readableTreeston
(cherry picked from commit feaaa595cae735bb6093b24a88562c27b2723cfe)
2022-02-04Core/Misc: Add support for custom link colors. Clean-up hyperlink ↵Treeston
validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs. (cherry picked from commit eaf8fa75a1c76131ecbf2585db6d6236b7334b8e)
2022-02-04Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327)Treeston
(cherry picked from commit 534a2388b7c662c8796aabb1ec8cb424879799b6)
2022-02-04Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR ↵Treeston
#25335) (cherry picked from commit cd30e0b86ce6ee88386a91cebdf353fc55805c57)
2022-02-04Core/Misc: std::string -> std::string_view in a bunch of places, notably ↵Treeston
chat commands and Util.h (cherry picked from commit a41bbd9ad9adedb15c7133bdef1575a6ec0eb1ab)
2022-01-26Core/ChatCommands: Add support for enum type arguments (PR #25242)Peter Keresztes Schmidt
(cherry picked from commit 5e40eb20e2789b86d4786d86b4bbb8ae83de5e1e)
2022-01-26Core/Common: Move old-style pointer+size HexStr methods to Trinity::Impl ↵Treeston
where they can't hurt anyone (cherry picked from commit 7b8b999516a824b0c417631a77f133eb47b8b2f4)
2022-01-23Dep: Switch to boost process instead of old standalone versionShauren
(cherry picked from commit 524d16739861d0b2279e2270e319b0c77ec9b03b)
2021-12-22Part1: Modernize codebase with Clang-Tidy range based loops (#24164)Ujp8LfXBJ6wCPR
(cherry picked from commit fb75a958f02695f166481033203869940d98b537)
2021-12-22Core/Server: improve timestamp format output for large time values (#24193)ForesterDev
(cherry picked from commit 71a01c75caa767c3323e295a596fe430dc8c7fb2)
2021-12-22Core/Server: correct timestamp format for shutdown/restart notification ↵ForesterDev
broadcasts (#24181) * Core/SmartScripts: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER * Core/Server: correct timestamp format for shutdown/restart notification broadcasts * remove unexpected changes * move enum from Common to Util * Use enum class instead of enum * Fix width for seconds 0 to 9 (cherry picked from commit 69231581e4f2d78384d3efe6f613be1b78e9d40f)
2021-12-18Common/Util: Sorry about that unexpected downtime at 3AM last night, ↵Treeston
everyone. (We call them happy little features.) (cherry picked from commit a4d5b24874e7f6f09efc69119785c7c9113870b4)
2021-12-18Core/Pooling: Quest pooling rewrite: (PR#23627)Treeston
- Split quest pooling from PoolMgr (into QuestPoolMgr) - Proper saving/restoring on server restart - No more hacking into sObjectMgr to insert/remove available quests (cherry picked from commit a5e73e41c0e813e674bb0a644e0052052435494e)
2021-12-18Core/Misc: Rewrite some old name handling functions that use raw buffers to ↵Treeston
no longer be old name handling functions that use raw buffers. (cherry picked from commit 309851ea2442457c87f791bb44abfa89e04af1af)
2021-12-16Core/Misc: Handle timezones for hour-specific events specifieds in ↵Giacomo Pozzoni
worldserver.conf (#23540) * Core/Misc: Handle timezones for hour-specific events specifieds in worldserver.conf * Handle Respawn.RestartQuietTime too * Handle XP.Boost.Daymask too * Core/Misc: Code cleanup * Core/Misc: Code cleanup * Update Util.cpp * Update boosted_xp.cpp (cherry picked from commit aeddd417c460c43d885cb89ceaa6e051c44b1d27)
2021-12-01Core/Calendar: Improve calendar timezone handlingjackpoz
Improve calendar timezone handling by at least creating events with the correct time if both client and server are in the same timezone. There is currently no information received from the client about in which timezone it is. (cherry picked from commit b33934f6ce9b0227597c712dd6a76b7ed49deea3)
2021-11-21Core/Utils: Handle UTF-8 conversion errorsjackpoz
Replace the output string when a UTF-8 conversion error happen with an error message instead of using an empty string, swallowing any message that the caller wanted to log. (cherry picked from commit bdb7e6e5e81e0d9376c9c803bae9da470b02d8cd)
2021-11-16Core/Utils: some code style adjustments, 6d6077e follow-upTreeston
(cherry picked from commit 4c3af3b636d5e9279fb694c9d9a5a4422ad773d0)
2021-11-16Core/Utils: Fix Unicode handlingTreeston
(cherry picked from commit 6d6077e36fe9c5cb8ea8e4f981d637e72ee87037)
2021-10-31Core/Chat: Unify chat hyperlink parsing (PR #22417)Treeston
- Validate most link properties all the time - If enabled, also validate link text (needs locale) - Instead of blocking the entire message, sanitize it - Apply filtering to DND/AFK messages. Closes #22399 (cherry picked from commit f27284594b18000a1c098262728fb19fdc63fc6c)
2021-10-25Scripts/Commands: New argument parsing methodology (PR #22363)Treeston
- Detect the arguments accepted by the command handler - Tokenize out those arguments automatically and feed them to the handler - Unmatched rest of the string can be accepted by trailing char const* or CommandArgs* (cherry picked from commit 66a87c4642d25f27ca24254cfeb0a0c4b21036b1)
2020-09-04Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup ↵Shauren
port
2020-08-14Core/Misc: Replace NULL with nullptrShauren
2020-08-03Core/Authserver: Authserver cleanup (PR#25093)Treeston
- Fix a handful of 1/256 bugs with most significant byte zero in BigNumber - Get rid of (most of) the C-style arrays in authserver - CryptoRandom as a unified source for cryptographic randomness - Bring our other crypto APIs into 2020 - BigNumber usability improvements - Authserver is now actually readable as a result of all of the above (cherry picked from commit 210176fd915cf4ba16f428d3c1a249a71f4aa7a7)
2020-05-21Core/Misc: GCC build and warning fixesShauren
2020-04-20Core/AuctionHouse: After taking a break at the start of patch 8.3 auction ↵Shauren
house is now back in business.
2020-01-02New YearAokromes
2019-01-01Update copyright note for 2019vincent-michael
auto happy = new year(2019);
2018-01-06Core/Misc: Added compatibility layer for boost 1.66 and future std:: ↵Shauren
networking stuff * Based on work done by @dimiandre in PR #21173 Closes #21171 Closes #21173
2018-01-01Update copyright note for 2018vincent-michael
auto happy = new year(2018);
2017-07-18Core/Spells: Implemented ConeAngle from DB2joschiwald
2017-06-07Core/Misc: Some /W4 warning fixesShauren
2017-05-11Core/Common: Include cleanupShauren