Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
StringTools.h File Reference

Go to the source code of this file.

Functions

JPH_NAMESPACE_BEGIN JPH_EXPORT String StringFormat (const char *inFMT,...)
 
template<typename T >
String ConvertToString (const T &inValue)
 Convert type to string. More...
 
constexpr uint64 HashString (const char *inString)
 
JPH_EXPORT void StringReplace (String &ioString, const string_view &inSearch, const string_view &inReplace)
 Replace substring with other string. More...
 
JPH_EXPORT void StringToVector (const string_view &inString, Array< String > &outVector, const string_view &inDelimiter=",", bool inClearVector=true)
 Convert a delimited string to an array of strings. More...
 
JPH_EXPORT void VectorToString (const Array< String > &inVector, String &outString, const string_view &inDelimiter=",")
 Convert an array strings to a delimited string. More...
 
JPH_EXPORT String ToLower (const string_view &inString)
 Convert a string to lower case. More...
 
JPH_EXPORT 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

◆ ConvertToString()

template<typename T >
String ConvertToString ( const T &  inValue)

Convert type to string.

◆ HashString()

constexpr uint64 HashString ( const char *  inString)
constexpr

◆ NibbleToBinary()

JPH_EXPORT const char * NibbleToBinary ( uint32  inNibble)

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

◆ StringFormat()

JPH_NAMESPACE_BEGIN JPH_EXPORT String StringFormat ( const char *  inFMT,
  ... 
)

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()

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

Replace substring with other string.

◆ StringToVector()

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

Convert a delimited string to an array of strings.

◆ ToLower()

JPH_EXPORT String ToLower ( const string_view &  inString)

Convert a string to lower case.

◆ VectorToString()

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

Convert an array strings to a delimited string.