/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ #pragma once #include #include #include #include namespace AZ { class Matrix4x4; class Quaternion; class Transform; class Vector2; class Vector3; class Vector4; } namespace MCore { AZStd::string GenerateUniqueString(const char* prefix, const AZStd::function& validationFunction); AZStd::string ConstructStringSeparatedBySemicolons(const AZStd::vector& stringVec); class CharacterConstants { public: static const char space = ' '; static const char tab = '\t'; static const char endLine = '\n'; static const char comma = ','; static const char dot = '.'; static const char backSlash = '\\'; static const char forwardSlash = '/'; static const char semiColon = ';'; static const char colon = ':'; static const char doubleQuote = '\"'; static const char dash = '-'; static const char* wordSeparators; }; } namespace AZStd { void to_string(string& str, bool value); void to_string(string& str, const AZ::Vector2& value); void to_string(string& str, const AZ::Vector3& value); void to_string(string& str, const AZ::Vector4& value); void to_string(string& str, const AZ::Quaternion& value); void to_string(string& str, const AZ::Matrix4x4& value); void to_string(string& str, const AZ::Transform& value); inline AZStd::string to_string(bool val) { AZStd::string str; to_string(str, val); return str; } inline AZStd::string to_string(const AZ::Vector2& val) { AZStd::string str; to_string(str, val); return str; } inline AZStd::string to_string(const AZ::Vector3& val) { AZStd::string str; to_string(str, val); return str; } inline AZStd::string to_string(const AZ::Vector4& val) { AZStd::string str; to_string(str, val); return str; } inline AZStd::string to_string(const AZ::Quaternion& val) { AZStd::string str; to_string(str, val); return str; } inline AZStd::string to_string(const AZ::Matrix4x4& val) { AZStd::string str; to_string(str, val); return str; } inline AZStd::string to_string(const AZ::Transform& val) { AZStd::string str; to_string(str, val); return str; } }