![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
#include "string_lower_upper.h"
Go to the source code of this file.
Functions | |
std::string | firstToLower (const std::string &str) |
Convert first letter of the std::string in lower case. More... | |
std::string | firstToUpper (const std::string &str) |
Convert first letter of the std::string in upper case. More... | |
bool | isCharLetter (char ch) |
Tels if the character is a letter or '_'. More... | |
bool | isCharLetterOrStar (char ch) |
Tels if the character is letter, star or '_'. More... | |
bool | isCharLowerCase (char ch) |
Tels if the character is lower case letter. More... | |
bool | isCharNumber (char ch) |
Tels if the character is a number or not. More... | |
bool | isCharNumberDotMinusPlusE (char ch) |
Tels if the character is a figure, a '.', a -, +, e or E. More... | |
bool | isCharNumberOrDot (char ch) |
Tels if the character is a number or a '.'. More... | |
bool | isCharNumberOrLetter (char ch) |
Tels if the character is letter, figure or '_'. More... | |
bool | isCharNumberOrLetterOrDot (char ch) |
Tels if the character is a letter, number, '.' or '_'. More... | |
bool | isCharNumberOrLetterOrStar (char ch) |
Tels if the character is letter, number, star or '_'. More... | |
bool | isCharNumberOrStar (char ch) |
Tels if the character is number or star. More... | |
bool | isCharUpperCase (char ch) |
Tels if the character is upper case letter. More... | |
bool | isListStrNumber (const std::list< std::string > &listStr) |
Say if the list of std::string contains a number. More... | |
bool | isStrLowerCase (const std::string &str) |
Say if the given std::string is in lowercase. More... | |
bool | isStrNumber (const std::string &str) |
Tels if std::string contains figures. More... | |
bool | isStrNumberDotMinusPlusE (const std::string &str) |
Tels if std::string std::string contains figures, '.', -, +, e or E. More... | |
bool | isStrNumberOrDot (const std::string &str) |
Tels if std::string contains figures or dots. More... | |
bool | isStrUpperCase (const std::string &str) |
Say if the given std::string is in uppercase. More... | |
std::string | strToLower (const std::string &str) |
Convert std::string in lower case. More... | |
std::string | strToLowerUnderscore (const std::string &str) |
Convert std::string in lower case and space in '_'. More... | |
std::string | strToUpper (const std::string &str) |
Convert std::string in upper case. More... | |
std::string firstToLower | ( | const std::string & | str | ) |
Convert first letter of the std::string in lower case.
str | : std::string to be converted |
Definition at line 262 of file string_lower_upper.cpp.
References isCharUpperCase(), and createReleaseCurl::str.
Referenced by checkResultFirstLower().
std::string firstToUpper | ( | const std::string & | str | ) |
Convert first letter of the std::string in upper case.
str | : std::string to be converted |
Definition at line 248 of file string_lower_upper.cpp.
References isCharLowerCase(), and createReleaseCurl::str.
Referenced by checkResultFirstUpper().
bool isCharLetter | ( | char | ch | ) |
Tels if the character is a letter or '_'.
ch | : character to be analysed |
Definition at line 98 of file string_lower_upper.cpp.
Referenced by testCharsType().
bool isCharLetterOrStar | ( | char | ch | ) |
Tels if the character is letter, star or '_'.
ch | : character to be analysed |
Definition at line 130 of file string_lower_upper.cpp.
Referenced by testCharsType().
bool isCharLowerCase | ( | char | ch | ) |
Tels if the character is lower case letter.
ch | : caractère à tester |
Definition at line 154 of file string_lower_upper.cpp.
Referenced by firstToUpper(), isStrLowerCase(), strToUpper(), and testCharsType().
bool isCharNumber | ( | char | ch | ) |
Tels if the character is a number or not.
ch | : character to be analysed |
Definition at line 14 of file string_lower_upper.cpp.
Referenced by isStrNumber(), and testCharsType().
bool isCharNumberDotMinusPlusE | ( | char | ch | ) |
Tels if the character is a figure, a '.', a -, +, e or E.
ch | : character to be analysed |
Definition at line 60 of file string_lower_upper.cpp.
Referenced by isStrNumberDotMinusPlusE().
bool isCharNumberOrDot | ( | char | ch | ) |
Tels if the character is a number or a '.'.
ch | : character to be analysed |
Definition at line 52 of file string_lower_upper.cpp.
Referenced by isStrNumberOrDot(), and testIsType().
bool isCharNumberOrLetter | ( | char | ch | ) |
Tels if the character is letter, figure or '_'.
ch | : character to be analysed |
Definition at line 106 of file string_lower_upper.cpp.
Referenced by testCharsType().
bool isCharNumberOrLetterOrDot | ( | char | ch | ) |
Tels if the character is a letter, number, '.' or '_'.
ch | : character to be analysed |
Definition at line 114 of file string_lower_upper.cpp.
Referenced by testCharsType().
bool isCharNumberOrLetterOrStar | ( | char | ch | ) |
Tels if the character is letter, number, star or '_'.
ch | : character to be analysed |
Definition at line 138 of file string_lower_upper.cpp.
Referenced by testCharsType().
bool isCharNumberOrStar | ( | char | ch | ) |
Tels if the character is number or star.
ch | : character to be analysed |
Definition at line 122 of file string_lower_upper.cpp.
Referenced by testCharsType().
bool isCharUpperCase | ( | char | ch | ) |
Tels if the character is upper case letter.
ch | : caractère à tester |
Definition at line 146 of file string_lower_upper.cpp.
Referenced by firstToLower(), isStrUpperCase(), strToLower(), strToLowerUnderscore(), and testCharsType().
bool isListStrNumber | ( | const std::list< std::string > & | listStr | ) |
Say if the list of std::string contains a number.
listStr | : list of std::strings to be checked |
Definition at line 37 of file string_lower_upper.cpp.
References isStrNumber().
Referenced by testIsListStrNumber().
bool isStrLowerCase | ( | const std::string & | str | ) |
Say if the given std::string is in lowercase.
str | : std::string to be checked |
Definition at line 176 of file string_lower_upper.cpp.
References isCharLowerCase(), and createReleaseCurl::str.
Referenced by testIsLowerUpper().
bool isStrNumber | ( | const std::string & | str | ) |
Tels if std::string contains figures.
str | : std::string to be tested |
Definition at line 22 of file string_lower_upper.cpp.
References isCharNumber(), and createReleaseCurl::str.
Referenced by isListStrNumber(), and testIsType().
bool isStrNumberDotMinusPlusE | ( | const std::string & | str | ) |
Tels if std::string std::string contains figures, '.', -, +, e or E.
str | : std::string to be tested |
Definition at line 83 of file string_lower_upper.cpp.
References isCharNumberDotMinusPlusE(), and createReleaseCurl::str.
Referenced by testIsType().
bool isStrNumberOrDot | ( | const std::string & | str | ) |
Tels if std::string contains figures or dots.
str | : std::string to be tested |
Definition at line 68 of file string_lower_upper.cpp.
References isCharNumberOrDot(), and createReleaseCurl::str.
Referenced by testIsType().
bool isStrUpperCase | ( | const std::string & | str | ) |
Say if the given std::string is in uppercase.
str | : std::string to be checked |
Definition at line 162 of file string_lower_upper.cpp.
References isCharUpperCase(), and createReleaseCurl::str.
Referenced by testIsLowerUpper().
std::string strToLower | ( | const std::string & | str | ) |
Convert std::string in lower case.
str | : std::string to be converted |
Definition at line 190 of file string_lower_upper.cpp.
References isCharUpperCase(), and createReleaseCurl::str.
Referenced by checkResultLower().
std::string strToLowerUnderscore | ( | const std::string & | str | ) |
Convert std::string in lower case and space in '_'.
str | : std::string to be converted |
Definition at line 228 of file string_lower_upper.cpp.
References isCharUpperCase(), and createReleaseCurl::str.
Referenced by checkResultLowerUnderscore().
std::string strToUpper | ( | const std::string & | str | ) |
Convert std::string in upper case.
str | : std::string to be converted |
Definition at line 209 of file string_lower_upper.cpp.
References isCharLowerCase(), and createReleaseCurl::str.
Referenced by checkResultUpper().