13 int (* filterFunction)(
int args) ,
14 unsigned int fromIdx,
unsigned int toIdx);
30 unsigned int countConsecutive(
const string &st,
int (* filterFunction)(
int args) );
39 #endif // PSFUNCTIONS_H
int isDigitOrSymbol(int c)
isDigitOrSymbol - returns 1 if the passed argument is a digit or symbol.
Definition: psfunctions.cpp:77
unsigned int countUppercase(const string &st)
countUppercase - given a string will return the number of uppercase characters.
Definition: psfunctions.cpp:49
unsigned int countDigits(const string &st)
countDigits - given a string will return the number of digits.
Definition: psfunctions.cpp:86
unsigned int countSymbols(const string &st)
countSymbols - given a string will return the number of symbols.
Definition: psfunctions.cpp:95
unsigned int countLowercase(const string &st)
countLowercase - given a string will return the number of lowercase characters.
Definition: psfunctions.cpp:59
unsigned int countCharsOfType(const string &st, int(*filterFunction)(int args), int fromIdx=0, int toIdx=-1)
countCharsOfType - given a string will return the number of characters of a certain type...
Definition: psfunctions.cpp:18
unsigned int consecUppercase(const string &st)
consecUppercase - given a string will return the number of uppercase characters that follow a charact...
Definition: psfunctions.cpp:157
unsigned int consecDigits(const string &st)
consecDigits - given a string will return the number of digits that follow a digit.
Definition: psfunctions.cpp:177
unsigned int middleDigitsOrSymbols(const string &st)
middleDigitsOrSymbols - returns the number of digits and symbols that are not the first or last chara...
Definition: psfunctions.cpp:117
int isSymbol(int c)
isSymbol - returns 1 if the passed argument is a symbol.
Definition: psfunctions.cpp:68
unsigned int countConsecutive(const string &st, int(*filterFunction)(int args))
countConsecutive - given a string will return the number of characters of a certain type that follow ...
Definition: psfunctions.cpp:131
string toUpperString(const string &st)
toUpperString - returns an uppercase version of the received string.
Definition: psfunctions.cpp:104
unsigned int consecLowercase(const string &st)
consecLowercase - given a string will return the number of lowercase characters that follow a charact...
Definition: psfunctions.cpp:167