AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Strings::Utf8 Struct Reference

#include "PacketUtilities.h"

Static Public Member Functions

static bool Validate (std::string const &value)
 

Detailed Description

Member Function Documentation

◆ Validate()

bool WorldPackets::Strings::Utf8::Validate ( std::string const &  value)
static
37{
38 if (!utf8::is_valid(value.begin(), value.end()))
39 throw InvalidUtf8ValueException(value);
40
41 return true;
42}