#include <iostream>
#include <string>
Go to the source code of this file.
|
string | toUpperString (const string &st) |
| Returns an uppercase version of the received string. More...
|
|
unsigned int | countCharsOfType (const string &st, int(*filterFunction)(int args), unsigned int fromIdx, unsigned int toIdx) |
|
unsigned int | countUppercase (const string &st) |
| Given a string will return the number of uppercase characters. More...
|
|
unsigned int | countLowercase (const string &st) |
| Given a string will return the number of lowercase characters. More...
|
|
unsigned int | countDigits (const string &st) |
| Given a string will return the number of digits. More...
|
|
unsigned int | countSymbols (const string &st) |
| Given a string will return the number of symbols. More...
|
|
unsigned int | middleDigitsOrSymbols (const string &st) |
| Returns the number of digits and symbols that are not the first or last characters of the received string. More...
|
|
int | isSymbol (int c) |
| Returns 1 if the passed argument is a symbol. More...
|
|
int | isDigitOrSymbol (int c) |
| Returns 1 if the passed argument is a digit or symbol. More...
|
|
unsigned int | countConsecutive (const string &st, int(*filterFunction)(int args)) |
|
unsigned int | consecUppercase (const string &st) |
| Given a string will return the number of uppercase characters that follow a character of that same type. More...
|
|
unsigned int | consecLowercase (const string &st) |
| Given a string will return the number of lowercase characters that follow a character of that same type. More...
|
|
unsigned int | consecDigits (const string &st) |
| Given a string will return the number of digits that follow a digit. More...
|
|
unsigned int consecDigits |
( |
const string & |
st | ) |
|
Given a string will return the number of digits that follow a digit.
- Parameters
-
st | string by reference to analyze |
unsigned int consecLowercase |
( |
const string & |
st | ) |
|
Given a string will return the number of lowercase characters that follow a character of that same type.
- Parameters
-
st | string by reference to analyze |
unsigned int consecUppercase |
( |
const string & |
st | ) |
|
Given a string will return the number of uppercase characters that follow a character of that same type.
- Parameters
-
st | string by reference to analyze |
unsigned int countDigits |
( |
const string & |
st | ) |
|
Given a string will return the number of digits.
- Parameters
-
st | string by reference to analyze |
unsigned int countLowercase |
( |
const string & |
st | ) |
|
Given a string will return the number of lowercase characters.
- Parameters
-
st | string by reference to analyze |
unsigned int countSymbols |
( |
const string & |
st | ) |
|
Given a string will return the number of symbols.
- Parameters
-
st | string by reference to analyze |
unsigned int countUppercase |
( |
const string & |
st | ) |
|
Given a string will return the number of uppercase characters.
- Parameters
-
st | string by reference to analyze |
int isDigitOrSymbol |
( |
int |
c | ) |
|
Returns 1 if the passed argument is a digit or symbol.
- Parameters
-
c | the character to be analyzed. |
Returns 1 if the passed argument is a symbol.
- Parameters
-
c | the character to be analyzed. |
unsigned int middleDigitsOrSymbols |
( |
const string & |
st | ) |
|
Returns the number of digits and symbols that are not the first or last characters of the received string.
- Parameters
-
st | string by reference to analyze |
string toUpperString |
( |
const string & |
st | ) |
|
Returns an uppercase version of the received string.
- Parameters
-
st | string by reference to analyze |