 |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
Go to the documentation of this file.
15 return (ch >= 48 && ch <= 57);
23 if(
str.size() == 0lu){
return false;}
25 long unsigned int i(0lu);
26 while(i <
str.size() && isMatch){
38 if(listStr.size() == 0lu){
return false;}
40 std::list<std::string>::const_iterator it(listStr.begin());
41 while(isMatch && it != listStr.end()){
53 return ((ch >= 48 && ch <= 57) || ch ==
'.');
61 return ((ch >= 48 && ch <= 57) || ch ==
'.' || ch ==
'-' || ch ==
'+' || ch ==
'e' || ch ==
'E');
69 if(
str.size() == 0l){
return false;}
71 long unsigned int i(0lu);
72 while(i <
str.size() && isMatch){
84 if(
str.size() == 0lu){
return false;}
86 long unsigned int i(0lu);
87 while(i <
str.size() && isMatch){
99 return (((
int)ch >= 65 && (
int)ch <= 90) || ((
int)ch >= 97 && (
int)ch <= 122) || ((
int)ch == 95));
107 return ((ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122) || (ch == 95) || (ch >= 48 && ch <= 57));
115 return ((ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122) || (ch == 95) || (ch >= 48 && ch <= 57) || (ch ==
'.'));
123 return ((ch >= 48 && ch <= 57) || ch ==
'*');
131 return (((
int)ch >= 65 && (
int)ch <= 90) || ((
int)ch >= 97 && (
int)ch <= 122) || ((
int)ch == 95) || ch ==
'*');
139 return ((ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122) || (ch == 95) || (ch >= 48 && ch <= 57) || ch ==
'*');
147 return (ch >= 65 && ch <= 90);
155 return (ch >= 97 && ch <= 122);
165 while(i <
str.size() && isUpper){
179 while(i <
str.size() && isLower){
191 std::string strOut(
"");
193 long unsigned int size(
str.size());
194 for(
long unsigned int i(0lu); i < size; ++i){
195 currentChar =
str[i];
197 strOut += currentChar + (char)32;
199 strOut += currentChar;
210 std::string strOut(
"");
212 long unsigned int size(
str.size());
213 for(
long unsigned int i(0); i < size; ++i){
214 currentChar =
str[i];
216 strOut += currentChar - (char)32;
218 strOut += currentChar;
229 std::string strOut(
"");
231 long unsigned int size(
str.size());
232 for(
long unsigned int i(0lu); i < size; ++i){
233 currentChar =
str[i];
235 strOut += currentChar + (char)32;
237 if(currentChar ==
' ') strOut +=
'_';
238 else strOut += currentChar;
249 if(
str.size() == 0lu)
return "";
250 std::string strOut(
str);
251 char currentChar = strOut[0lu];
253 strOut[0lu] = currentChar - (char)32;
263 if(
str.size() == 0lu)
return "";
264 std::string strOut(
str);
265 char currentChar = strOut[0lu];
267 strOut[0lu] = currentChar + (char)32;
bool isCharNumberOrLetterOrDot(char ch)
Tels if the character is a letter, number, '.' or '_'.
std::string firstToLower(const std::string &str)
Convert first letter of the std::string in lower case.
bool isStrUpperCase(const std::string &str)
Say if the given std::string is in uppercase.
std::string strToLower(const std::string &str)
Convert std::string in lower case.
bool isCharLetter(char ch)
Tels if the character is a letter or '_'.
std::string firstToUpper(const std::string &str)
Convert first letter of the std::string in upper case.
std::string strToLowerUnderscore(const std::string &str)
Convert std::string in lower case and space in '_'.
bool isStrLowerCase(const std::string &str)
Say if the given std::string is in lowercase.
bool isCharNumberOrLetterOrStar(char ch)
Tels if the character is letter, number, star or '_'.
bool isCharUpperCase(char ch)
Tels if the character is upper case letter.
bool isCharLowerCase(char ch)
Tels if the character is lower case letter.
bool isCharNumberOrStar(char ch)
Tels if the character is number or star.
bool isStrNumber(const std::string &str)
Tels if std::string contains figures.
bool isCharNumberOrDot(char ch)
Tels if the character is a number or a '.'.
bool isCharLetterOrStar(char ch)
Tels if the character is letter, star or '_'.
bool isListStrNumber(const std::list< std::string > &listStr)
Say if the list of std::string contains a number.
bool isCharNumberOrLetter(char ch)
Tels if the character is letter, figure or '_'.
bool isCharNumber(char ch)
Tels if the character is a number or not.
bool isCharNumberDotMinusPlusE(char ch)
Tels if the character is a figure, a '.', a -, +, e or E.
std::string strToUpper(const std::string &str)
Convert std::string in upper case.
bool isStrNumberOrDot(const std::string &str)
Tels if std::string contains figures or dots.
bool isStrNumberDotMinusPlusE(const std::string &str)
Tels if std::string std::string contains figures, '.', -, +, e or E.