refactor(Core/Misc): acore to Acore (#6043)

This commit is contained in:
Kitzunu
2021-05-31 14:21:54 +02:00
committed by GitHub
parent 7eeae6866e
commit 897a02bb75
224 changed files with 942 additions and 942 deletions

View File

@@ -16,11 +16,11 @@
#include <string_view>
#include <type_traits>
namespace acore::Impl::StringConvertImpl
namespace Acore::Impl::StringConvertImpl
{
template <typename T, typename = void> struct For
{
static_assert(acore::dependant_false_v<T>, "Unsupported type used for ToString or StringTo");
static_assert(Acore::dependant_false_v<T>, "Unsupported type used for ToString or StringTo");
};
template <typename T>
@@ -241,18 +241,18 @@ namespace acore::Impl::StringConvertImpl
#endif
}
namespace acore
namespace Acore
{
template <typename Result, typename... Params>
Optional<Result> StringTo(std::string_view str, Params&&... params)
{
return acore::Impl::StringConvertImpl::For<Result>::FromString(str, std::forward<Params>(params)...);
return Acore::Impl::StringConvertImpl::For<Result>::FromString(str, std::forward<Params>(params)...);
}
template <typename Type, typename... Params>
std::string ToString(Type&& val, Params&&... params)
{
return acore::Impl::StringConvertImpl::For<std::decay_t<Type>>::ToString(std::forward<Type>(val), std::forward<Params>(params)...);
return Acore::Impl::StringConvertImpl::For<std::decay_t<Type>>::ToString(std::forward<Type>(val), std::forward<Params>(params)...);
}
}