mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-07-14 15:11:58 -05:00
13 lines
518 B
C++
13 lines
518 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
namespace StringUtil
|
|
{
|
|
// Gets a string formatted with va args.
|
|
std::string GetFormattedString(const char *Format, ...);
|
|
// Replaces a sequence of characters in a string with another.
|
|
void ReplaceInString(std::string &Target, std::string_view Find, std::string_view Replace);
|
|
// Tries to make string path safe. Returns false if it's not possible.
|
|
bool SanitizeStringForPath(const char *StringIn, char *StringOut, size_t StringOutSize);
|
|
} // namespace StringUtil
|