![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
#include <stdlib.h>#include <unistd.h>#include <sys/ioctl.h>#include "string_function.h"#include "string_color.h"
Include dependency graph for string_color.cpp:Go to the source code of this file.
Functions | |
| void | clearTerminal () |
| fonction qui permet d'éffacer le terminal More... | |
| std::string | colorString (const std::string &str, PTerminalStyle color) |
| fonction qui permet de colorier du texte dans une string More... | |
| short unsigned int | getNbColTerminal () |
| fonction qui renvoie le nombre de colonnes du terminal More... | |
| short unsigned int | getNbRowTerminal () |
| fonction qui renvoie le nombre de lignes du terminal More... | |
| void | printAll (const std::string &strLeft, char ch, const std::string &strRight) |
| fonction qui écrit un texte dans la console en l'alignant à droite (ne prend pas en compte la couleur du texte) More... | |
| void | printAllCerr (const std::string &strLeft, char ch, const std::string &strRight) |
| fonction qui écrit un texte dans la console d'erreur en l'alignant à droite (ne prend pas en compte la couleur du texte) More... | |
| void | printAllCol (const std::string &strLeft, char ch, const std::string &strRight) |
| fonction qui écrit un texte dans la console en l'alignant à droite (prend en compte la couleur du texte) More... | |
| void | printAllColCerr (const std::string &strLeft, char ch, const std::string &strRight) |
| fonction qui écrit un texte dans la console d'erreur en l'alignant à droite (prend en compte la couleur du texte) More... | |
| void | printColor (const std::string &str, PTerminalStyle color) |
| fonction qui affiche un texte coloré dans le terminal More... | |
| void | printColorCerr (const std::string &str, PTerminalStyle color) |
| fonction qui affiche un texte coloré dans le terminal More... | |
| void | printDelire (const std::string &str) |
| fonction qui utilise toutes les couleur du terminal pour afficher un message More... | |
| std::string | termBBlack () |
| affiche le fond du terminal en noir More... | |
| std::string | termBBlue () |
| affiche le fond du terminal en bleu More... | |
| std::string | termBCyan () |
| affiche le fond du terminal en cyan More... | |
| std::string | termBGreen () |
| affiche le fond du terminal en vert More... | |
| std::string | termBlack () |
| affiche le terminal noir More... | |
| std::string | termBlink () |
| affiche le terminal clignotant More... | |
| std::string | termBlue () |
| affiche le terminal blue More... | |
| std::string | termBPurple () |
| affiche le fond du terminal en violet More... | |
| std::string | termBRed () |
| affiche le fond du terminal en rouge More... | |
| std::string | termBright () |
| affiche le terminal brillant More... | |
| std::string | termBWhite () |
| affiche le fond du terminal en blanc More... | |
| std::string | termBYellow () |
| affiche le fond du terminal en jaune More... | |
| std::string | termCyan () |
| affiche le terminal cyan More... | |
| std::string | termDefault () |
| affiche le terminal par défaut More... | |
| std::string | termGreen () |
| affiche le terminal vert More... | |
| std::string | termNegative () |
| affiche le terminal négatif More... | |
| std::string | termPositive () |
| affiche le terminal positif More... | |
| std::string | termPurple () |
| affiche le terminal violet More... | |
| std::string | termRed () |
| affiche le terminal rouge More... | |
| std::string | termUnderlined () |
| affiche le terminal souligné More... | |
| std::string | termWhite () |
| affiche le terminal blanc More... | |
| std::string | termYellow () |
| affiche le terminal jaune More... | |
| void | textColor (const char *color) |
| focntion qui permet de changer la couleur du texte dan le terminal More... | |
| void | textColor (PTerminalStyle color) |
| focntion qui permet de changer la couleur du texte dan le terminal More... | |
| void | textColorCerr (const char *color) |
| focntion qui permet de changer la couleur du texte dan le terminal (sortie d'erreur) More... | |
| void | textColorCerr (PTerminalStyle color) |
| focntion qui permet de changer la couleur du texte dan le terminal (sortie d'erreur) More... | |
| void clearTerminal | ( | ) |
fonction qui permet d'éffacer le terminal
Definition at line 128 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string colorString | ( | const std::string & | str, |
| PTerminalStyle | color | ||
| ) |
fonction qui permet de colorier du texte dans une string
| str | : méssage à afficher dans le terminal |
| color | : couleur des caractères dans le terminal |
Definition at line 181 of file string_color.cpp.
References createReleaseCurl::str.
Referenced by testStringColor().
Here is the caller graph for this function:| short unsigned int getNbColTerminal | ( | ) |
fonction qui renvoie le nombre de colonnes du terminal
Definition at line 206 of file string_color.cpp.
Referenced by ProgressTime::initialisationProgressTime(), printAll(), printAllCerr(), printAllCol(), printAllColCerr(), and testStringColor().
Here is the caller graph for this function:| short unsigned int getNbRowTerminal | ( | ) |
fonction qui renvoie le nombre de lignes du terminal
Definition at line 215 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| void printAll | ( | const std::string & | strLeft, |
| char | ch, | ||
| const std::string & | strRight | ||
| ) |
fonction qui écrit un texte dans la console en l'alignant à droite (ne prend pas en compte la couleur du texte)
| strLeft | : texte à écrire aligné à gauche |
| ch | : caractère à afficher entre les deux |
| strRight | : texte à écrire aligné à droite |
Definition at line 247 of file string_color.cpp.
References getNbColTerminal().
Referenced by testStringColor().
Here is the call graph for this function:
Here is the caller graph for this function:| void printAllCerr | ( | const std::string & | strLeft, |
| char | ch, | ||
| const std::string & | strRight | ||
| ) |
fonction qui écrit un texte dans la console d'erreur en l'alignant à droite (ne prend pas en compte la couleur du texte)
| strLeft | : texte à écrire aligné à gauche |
| ch | : caractère à afficher entre les deux |
| strRight | : texte à écrire aligné à droite |
Definition at line 268 of file string_color.cpp.
References getNbColTerminal().
Referenced by testStringColor().
Here is the call graph for this function:
Here is the caller graph for this function:| void printAllCol | ( | const std::string & | strLeft, |
| char | ch, | ||
| const std::string & | strRight | ||
| ) |
fonction qui écrit un texte dans la console en l'alignant à droite (prend en compte la couleur du texte)
| strLeft | : texte à écrire aligné à gauche |
| ch | : caractère à afficher entre les deux |
| strRight | : texte à écrire aligné à droite |
Definition at line 226 of file string_color.cpp.
References countNbChar(), and getNbColTerminal().
Referenced by testStringColor().
Here is the call graph for this function:
Here is the caller graph for this function:| void printAllColCerr | ( | const std::string & | strLeft, |
| char | ch, | ||
| const std::string & | strRight | ||
| ) |
fonction qui écrit un texte dans la console d'erreur en l'alignant à droite (prend en compte la couleur du texte)
| strLeft | : texte à écrire aligné à gauche |
| ch | : caractère à afficher entre les deux |
| strRight | : texte à écrire aligné à droite |
Definition at line 289 of file string_color.cpp.
References countNbChar(), and getNbColTerminal().
Referenced by testStringColor().
Here is the call graph for this function:
Here is the caller graph for this function:| void printColor | ( | const std::string & | str, |
| PTerminalStyle | color | ||
| ) |
fonction qui affiche un texte coloré dans le terminal
| str | : méssage à afficher dans le terminal |
| color | : couleur des caractères dans le terminal |
Definition at line 191 of file string_color.cpp.
References createReleaseCurl::str.
Referenced by testStringColor().
Here is the caller graph for this function:| void printColorCerr | ( | const std::string & | str, |
| PTerminalStyle | color | ||
| ) |
fonction qui affiche un texte coloré dans le terminal
| str | : méssage à afficher dans le terminal |
| color | : couleur des caractères dans le terminal |
Definition at line 199 of file string_color.cpp.
References createReleaseCurl::str.
Referenced by testStringColor().
Here is the caller graph for this function:| void printDelire | ( | const std::string & | str | ) |
fonction qui utilise toutes les couleur du terminal pour afficher un message
| str | : méssage à afficher dans le terminal |
Definition at line 163 of file string_color.cpp.
References createReleaseCurl::str, and textColor().
Referenced by testStringColor().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string termBBlack | ( | ) |
affiche le fond du terminal en noir
Definition at line 90 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBBlue | ( | ) |
affiche le fond du terminal en bleu
Definition at line 110 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBCyan | ( | ) |
affiche le fond du terminal en cyan
Definition at line 120 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBGreen | ( | ) |
affiche le fond du terminal en vert
Definition at line 100 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBlack | ( | ) |
affiche le terminal noir
Definition at line 50 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBlink | ( | ) |
affiche le terminal clignotant
Definition at line 35 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBlue | ( | ) |
affiche le terminal blue
Definition at line 70 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBPurple | ( | ) |
affiche le fond du terminal en violet
Definition at line 115 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBRed | ( | ) |
affiche le fond du terminal en rouge
Definition at line 95 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBright | ( | ) |
affiche le terminal brillant
Definition at line 25 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBWhite | ( | ) |
affiche le fond du terminal en blanc
Definition at line 125 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termBYellow | ( | ) |
affiche le fond du terminal en jaune
Definition at line 105 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termCyan | ( | ) |
affiche le terminal cyan
Definition at line 80 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termDefault | ( | ) |
affiche le terminal par défaut
Definition at line 20 of file string_color.cpp.
Referenced by Option::checkArgument(), and testStringColor().
Here is the caller graph for this function:| std::string termGreen | ( | ) |
affiche le terminal vert
Definition at line 60 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termNegative | ( | ) |
affiche le terminal négatif
Definition at line 40 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termPositive | ( | ) |
affiche le terminal positif
Definition at line 45 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termPurple | ( | ) |
affiche le terminal violet
Definition at line 75 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termRed | ( | ) |
affiche le terminal rouge
Definition at line 55 of file string_color.cpp.
Referenced by Option::checkArgument(), and testStringColor().
Here is the caller graph for this function:| std::string termUnderlined | ( | ) |
affiche le terminal souligné
Definition at line 30 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termWhite | ( | ) |
affiche le terminal blanc
Definition at line 85 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| std::string termYellow | ( | ) |
affiche le terminal jaune
Definition at line 65 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| void textColor | ( | const char * | color | ) |
focntion qui permet de changer la couleur du texte dan le terminal
| color | : couleur des caractères dans le terminal |
Definition at line 135 of file string_color.cpp.
Referenced by printDelire(), and testStringColor().
Here is the caller graph for this function:| void textColor | ( | PTerminalStyle | color | ) |
focntion qui permet de changer la couleur du texte dan le terminal
| color | : couleur des caractères dans le terminal |
Definition at line 149 of file string_color.cpp.
| void textColorCerr | ( | const char * | color | ) |
focntion qui permet de changer la couleur du texte dan le terminal (sortie d'erreur)
| color | : couleur des caractères dans le terminal (sortie d'erreur) |
Definition at line 142 of file string_color.cpp.
Referenced by testStringColor().
Here is the caller graph for this function:| void textColorCerr | ( | PTerminalStyle | color | ) |
focntion qui permet de changer la couleur du texte dan le terminal (sortie d'erreur)
| color | : couleur des caractères dans le terminal (sortie d'erreur) |
Definition at line 156 of file string_color.cpp.