My Project
 All Files Functions
psfunctions.h
1 #ifndef PSFUNCTIONS_H
2 #define PSFUNCTIONS_H
3 
4 #include <iostream>
5 #include <string>
6 
7 using namespace std;
8 
9 
10 string toUpperString(const string &st);
11 
12 unsigned int countCharsOfType(const string &st,
13  int (* filterFunction)(int args) ,
14  unsigned int fromIdx, unsigned int toIdx);
15 
16 unsigned int countUppercase(const string &st);
17 
18 unsigned int countLowercase(const string &st);
19 
20 unsigned int countDigits(const string &st);
21 
22 unsigned int countSymbols(const string &st);
23 
24 unsigned int middleDigitsOrSymbols(const string &st);
25 
26 int isSymbol(int c);
27 
28 int isDigitOrSymbol(int c);
29 
30 unsigned int countConsecutive(const string &st, int (* filterFunction)(int args) );
31 
32 unsigned int consecUppercase(const string &st);
33 
34 unsigned int consecLowercase(const string &st);
35 
36 unsigned int consecDigits(const string &st);
37 
38 
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