wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
client_version.cpp File Reference
#include <wowlib/core/client_version.hpp>
#include <array>
#include <ostream>
#include <utility>
#include <wowlib/core/reflect.hpp>
Include dependency graph for client_version.cpp:

Go to the source code of this file.

Namespaces

namespace  wowlib

Functions

std::ostream & wowlib::operator<< (std::ostream &out, const ClientVersion &version)
 render version as "major.minor.patch.build", with the flavor appended when it is not Retail ("1.15.9.69109 (ClassicEra)") — a Classic version is unreadable without it, since the tuple alone says nothing about the client.
std::string_view wowlib::localeCode (Locale locale)
 The four-letter code of locale ("enUS", ...) as used in MPQ locale directory and archive names.
std::optional< Locale > wowlib::localeFromCode (std::string_view code)
 Parse a four-letter locale code.
std::uint32_t wowlib::cascLocaleFlag (Locale locale)
 The CASC_LOCALE_* bit of locale for CascOpenStorage/CascOpenFile locale masks.