Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
StringTools.cpp File Reference
#include <Jolt/Jolt.h>
#include <Jolt/Core/StringTools.h>
#include <cstdarg>

Functions

JPH_SUPPRESS_WARNINGS_STD_BEGIN JPH_SUPPRESS_WARNINGS_STD_END JPH_NAMESPACE_BEGIN String StringFormat (const char *inFMT,...)
 
void StringReplace (String &ioString, const string_view &inSearch, const string_view &inReplace)
 Replace substring with other string. More...
 
void StringToVector (const string_view &inString, Array< String > &outVector, const string_view &inDelimiter, bool inClearVector)
 Convert a delimited string to an array of strings. More...
 
void VectorToString (const Array< String > &inVector, String &outString, const string_view &inDelimiter)
 Convert an array strings to a delimited string. More...
 
String ToLower (const string_view &inString)
 Convert a string to lower case. More...
 
const char * NibbleToBinary (uint32 inNibble)
 Converts the lower 4 bits of inNibble to a string that represents the number in binary format. More...
 

Function Documentation

◆ NibbleToBinary()

const char * NibbleToBinary ( uint32  inNibble)

Converts the lower 4 bits of inNibble to a string that represents the number in binary format.

◆ StringFormat()

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.

◆ StringReplace()

void StringReplace ( String ioString,
const string_view &  inSearch,
const string_view &  inReplace 
)

Replace substring with other string.

◆ StringToVector()

void StringToVector ( const string_view &  inString,
Array< String > &  outVector,
const string_view &  inDelimiter,
bool  inClearVector 
)

Convert a delimited string to an array of strings.

◆ ToLower()

String ToLower ( const string_view &  inString)

Convert a string to lower case.

◆ VectorToString()

void VectorToString ( const Array< String > &  inVector,
String outString,
const string_view &  inDelimiter 
)

Convert an array strings to a delimited string.