URL: https://graphicscomputing.fr/cgp/reference/functions/strings/
Description: Convert values and types to strings (str, type_str), change the case, pad with zeros.

# Strings and text

Convert values and types to strings (str, type_str), change the case, pad with zeros.

- `bool contains(std::map<T1,T2> const& m, T1 const& key)` - Checks whether a key exists in the map.
- `bool contains(std::map<std::string,T> const& m, char const* key)` - Checks whether a C-string key exists in a map with string keys.
- `std::string str(char const* s)` - Converts a C-string to std::string.
- `std::string str(char a)` - One-character string made of the given char.
- `std::string str(double a)` - Text representation of a double value (std::to_string).
- `std::string str(float a)` - Text representation of a float value (std::to_string).
- `std::string str(int a)` - Text representation of a int value (std::to_string).
- `std::string str(long long a)` - Text representation of a long long value (std::to_string).
- `std::string str(long a)` - Text representation of a long value (std::to_string).
- `std::string str(short a)` - Text representation of a short value (std::to_string).
- `std::string const& str(std::string const& s)` - Returns the string itself (identity overload so that str() works on any type).
- `std::string str(unsigned char a)` - Decimal representation of the unsigned char value (a number, not a character).
- `std::string str(unsigned int a)` - Text representation of a unsigned int value (std::to_string).
- `std::string str(unsigned long long a)` - Text representation of a unsigned long long value (std::to_string).
- `std::string str(unsigned long a)` - Text representation of a unsigned long value (std::to_string).
- `std::string str(unsigned short a)` - Text representation of a unsigned short value (std::to_string).
- `std::string str(std::map<T1,T2> const& m)` - Text representation of a map as "{key:value key:value }".
- `std::string str_lower(std::string const& s)` - Copy of the string converted to lowercase.
- `std::string str_upper(std::string const& s)` - Copy of the string converted to uppercase.
- `std::string str_zero_fill(std::string const& input, size_t number_of_zero)` - Left-pads the string with zeros up to the given total length (unchanged if already longer).
- `std::string type_str(char)` - Type name as a string: "char".
- `std::string type_str(double)` - Type name as a string: "double".
- `std::string type_str(float)` - Type name as a string: "float".
- `std::string type_str(int)` - Type name as a string: "int".
- `std::string type_str(int2 const&)` - Type name as a string: "int2".
- `std::string type_str(int3 const&)` - Type name as a string: "int3".
- `std::string type_str(int4 const&)` - Type name as a string: "int4".
- `std::string type_str(long long)` - Type name as a string: "long long".
- `std::string type_str(long)` - Type name as a string: "long".
- `std::string type_str(short)` - Type name as a string: "short".
- `std::string type_str(std::string const& s)` - Type name as a string: "string".
- `std::string type_str(uint2 const&)` - Type name as a string: "uint2".
- `std::string type_str(uint3 const&)` - Type name as a string: "uint3".
- `std::string type_str(uint4 const&)` - Type name as a string: "uint4".
- `std::string type_str(unsigned char)` - Type name as a string: "unsigned char".
- `std::string type_str(unsigned int)` - Type name as a string: "unsigned int".
- `std::string type_str(unsigned long long)` - Type name as a string: "unsigned long long".
- `std::string type_str(unsigned long)` - Type name as a string: "unsigned long".
- `std::string type_str(unsigned short)` - Type name as a string: "unsigned short".
- `std::string type_str(T const&)` - Fallback for types without a dedicated type_str overload; returns a placeholder message.
- `std::string type_str(std::set<T> const&)` - Type name as a string, e.g. "std::set<int>".
