21 #ifndef GF_STRING_UTILS_H 22 #define GF_STRING_UTILS_H 29 #include "Portability.h" 30 #include "StringRef.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 47 GF_API std::string
niceNum(
float num,
float precision);
64 GF_API std::string
formatString(
const char *fmt, ...) GF_FORMAT(1, 2);
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS 88 #endif // GF_STRING_UTILS_H std::string formatString(const char *fmt,...)
Format a string like printf.
The namespace for gf classes.
Definition: Action.h:34
std::string niceNum(float num, float precision)
Create a string representation of a floating point number.
std::vector< std::u32string > splitInWords(const std::u32string &str)
std::u32string computeUnicodeString(StringRef str)
Compute a UTF-32 string from a UTF-8 string.
std::vector< std::u32string > splitInParagraphs(const std::u32string &str)