|
| template<class Object > |
| void | PrettyPrint (const Object &A, std::string name, const char *color=tc::white) |
| |
| int | MakeDir (const char *path) |
| | Create folder if not existing.
|
| |
| template<typename T > |
| std::string | toStringPointDecimal (T val) |
| |
| template<typename T > |
| void | PrintArray (T arr, const int size, const char delimiter) |
| |
| template<typename T > |
| void | PrintCMATArray (T arr, const int size, const char delimiter) |
| |
| template<typename T > |
| std::string | ArrayToString (T arr, const int size, const char delimiter) |
| |
| template<typename T > |
| std::string | CMATArrayToString (T arr, const int size, const char delimiter) |
| |
| template<typename T > |
| void | PrintSTLVector (T vecObj, const char delimiter, const std::string preText="") |
| |
| template<typename T > |
| std::string | STLVectorToString (T vecObj, const char delimiter, const std::string preText="") |
| |
| template<typename T > |
| void | PrintSTLVectOfVects (T vecObj, const char delimiter) |
| |
| std::string | GetCurrentDateFormatted () |
| |
| template<typename K , typename V > |
| bool | FindMapKeyByValue (const std::map< K, V > myMap, const V value, K &key) |
| |
| bool | CopyFile (const std::string &inputFile, const std::string &outputFile) |
| |
Escape sequence \033[<color_code>m or [<color_code>m
color : [\033[ <color_code>m] ]
e.g. bg=Blue, Bold, fg=Red
- \033[44;1;31m
- \033[44m\033[1;31m
Text attributes 0 All attributes off 1 Bold on 4 Underscore (on monochrome display adapter only) 5 Blink on 7 Reverse video on 8 Concealed on
Foreground colors 0;30 Black 1;30 Dark Gray 0;31 Red 1;31 Light Red 0;32 Green 1;32 Light Green 0;33 Brown 1;33 Yellow 0;34 Blue 1;34 Light Blue 0;35 Purple 1;35 Light Purple 0;36 Cyan 1;36 Light Cyan 0;37 Light Gray 1;37 White