PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
string_lower_upper.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __STRING_LOWER_UPPER_H__
8 #define __STRING_LOWER_UPPER_H__
9 
10 #include <string>
11 #include <list>
12 
13 bool isCharNumber(char ch);
14 bool isStrNumber(const std::string & str);
15 bool isListStrNumber(const std::list<std::string> & listStr);
16 bool isCharNumberOrDot(char ch);
17 bool isCharNumberDotMinusPlusE(char ch);
18 bool isStrNumberOrDot(const std::string & str);
19 bool isStrNumberDotMinusPlusE(const std::string & str);
20 bool isCharLetter(char ch);
21 bool isCharNumberOrLetter(char ch);
22 bool isCharNumberOrLetterOrDot(char ch);
23 bool isCharNumberOrStar(char ch);
24 bool isCharLetterOrStar(char ch);
25 bool isCharNumberOrLetterOrStar(char ch);
26 
27 bool isCharUpperCase(char ch);
28 bool isCharLowerCase(char ch);
29 
30 bool isStrUpperCase(const std::string & str);
31 bool isStrLowerCase(const std::string & str);
32 
33 std::string strToLower(const std::string & str);
34 std::string strToUpper(const std::string & str);
35 std::string strToLowerUnderscore(const std::string & str);
36 std::string firstToUpper(const std::string & str);
37 std::string firstToLower(const std::string & str);
38 
39 #endif
isCharNumber
bool isCharNumber(char ch)
Tels if the character is a number or not.
Definition: string_lower_upper.cpp:14
isCharLetter
bool isCharLetter(char ch)
Tels if the character is a letter or '_'.
Definition: string_lower_upper.cpp:98
firstToUpper
std::string firstToUpper(const std::string &str)
Convert first letter of the std::string in upper case.
Definition: string_lower_upper.cpp:248
firstToLower
std::string firstToLower(const std::string &str)
Convert first letter of the std::string in lower case.
Definition: string_lower_upper.cpp:262
isCharNumberOrLetterOrStar
bool isCharNumberOrLetterOrStar(char ch)
Tels if the character is letter, number, star or '_'.
Definition: string_lower_upper.cpp:138
isStrNumber
bool isStrNumber(const std::string &str)
Tels if std::string contains figures.
Definition: string_lower_upper.cpp:22
isCharNumberOrDot
bool isCharNumberOrDot(char ch)
Tels if the character is a number or a '.'.
Definition: string_lower_upper.cpp:52
isCharNumberOrLetter
bool isCharNumberOrLetter(char ch)
Tels if the character is letter, figure or '_'.
Definition: string_lower_upper.cpp:106
isCharUpperCase
bool isCharUpperCase(char ch)
Tels if the character is upper case letter.
Definition: string_lower_upper.cpp:146
isListStrNumber
bool isListStrNumber(const std::list< std::string > &listStr)
Say if the list of std::string contains a number.
Definition: string_lower_upper.cpp:37
isCharNumberOrLetterOrDot
bool isCharNumberOrLetterOrDot(char ch)
Tels if the character is a letter, number, '.' or '_'.
Definition: string_lower_upper.cpp:114
isStrNumberOrDot
bool isStrNumberOrDot(const std::string &str)
Tels if std::string contains figures or dots.
Definition: string_lower_upper.cpp:68
isCharNumberDotMinusPlusE
bool isCharNumberDotMinusPlusE(char ch)
Tels if the character is a figure, a '.', a -, +, e or E.
Definition: string_lower_upper.cpp:60
isCharLetterOrStar
bool isCharLetterOrStar(char ch)
Tels if the character is letter, star or '_'.
Definition: string_lower_upper.cpp:130
createReleaseCurl.str
str
Definition: createReleaseCurl.py:128
isStrLowerCase
bool isStrLowerCase(const std::string &str)
Say if the given std::string is in lowercase.
Definition: string_lower_upper.cpp:176
strToLowerUnderscore
std::string strToLowerUnderscore(const std::string &str)
Convert std::string in lower case and space in '_'.
Definition: string_lower_upper.cpp:228
strToUpper
std::string strToUpper(const std::string &str)
Convert std::string in upper case.
Definition: string_lower_upper.cpp:209
isCharLowerCase
bool isCharLowerCase(char ch)
Tels if the character is lower case letter.
Definition: string_lower_upper.cpp:154
isStrUpperCase
bool isStrUpperCase(const std::string &str)
Say if the given std::string is in uppercase.
Definition: string_lower_upper.cpp:162
strToLower
std::string strToLower(const std::string &str)
Convert std::string in lower case.
Definition: string_lower_upper.cpp:190
isCharNumberOrStar
bool isCharNumberOrStar(char ch)
Tels if the character is number or star.
Definition: string_lower_upper.cpp:122
isStrNumberDotMinusPlusE
bool isStrNumberDotMinusPlusE(const std::string &str)
Tels if std::string std::string contains figures, '.', -, +, e or E.
Definition: string_lower_upper.cpp:83