/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/Jolt/Core/StringTools.h
38 строк
1 KB
Jan Krassnigg
Updated Jolt and fixed an issue with collision layers (#1494)
25 фев 2025, 18:32
Не верифицирован
25 фев 2025, 18:32
a342626
Код
Авторство
О чём код?
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics) // SPDX-FileCopyrightText: 2021 Jorrit Rouwe // SPDX-License-Identifier: MIT #pragma once JPH_NAMESPACE_BEGIN /// Create a formatted text string for debugging purposes. /// Note that this function has an internal buffer of 1024 characters, so long strings will be trimmed. JPH_EXPORT String StringFormat(const char *inFMT, ...); /// Convert type to string template<typename T> String ConvertToString(const T &inValue) { using OStringStream = std::basic_ostringstream<char, std::char_traits<char>, STLAllocator<char>>; OStringStream oss; oss << inValue; return oss.str(); } /// Replace substring with other string JPH_EXPORT void StringReplace(String &ioString, const string_view &inSearch, const string_view &inReplace); /// Convert a delimited string to an array of strings JPH_EXPORT void StringToVector(const string_view &inString, Array<String> &outVector, const string_view &inDelimiter = ",", bool inClearVector = true); /// Convert an array strings to a delimited string JPH_EXPORT void VectorToString(const Array<String> &inVector, String &outString, const string_view &inDelimiter = ","); /// Convert a string to lower case JPH_EXPORT String ToLower(const string_view &inString); /// Converts the lower 4 bits of inNibble to a string that represents the number in binary format JPH_EXPORT const char *NibbleToBinary(uint32 inNibble); JPH_NAMESPACE_END