SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Include
SA
Logger
Preprocessors
ChannelName.hpp
1
// Copyright (c) 2023 Sapphire's Suite. All Rights Reserved.
2
3
#pragma once
4
5
#ifndef SAPPHIRE_LOGGER_CHANNEL_NAME_GUARD
6
#define SAPPHIRE_LOGGER_CHANNEL_NAME_GUARD
7
8
#include <string>
9
#include <algorithm>
10
11
#include <SA/Support/Stringify.hpp>
12
13
namespace
SA
14
{
16
17
namespace
Intl
18
{
26
inline
std::wstring RemoveSpaces(std::wstring _str)
noexcept
27
{
28
_str.erase(std::remove_if(_str.begin(), _str.end(), isspace), _str.end());
29
30
return
_str;
31
}
32
}
33
34
#define __SA_CHAN_NAME(_chan) SA::Intl::RemoveSpaces(SA_WSTR(_chan))
35
37
}
38
39
#endif
// GUARD
Generated by
1.10.0