33 char*
substring(
const char*
string,
int startPosition,
int length);
39 int offsetFromNext(
const char*
string,
char character,
int startPosition);
45 int count(
const char*
string,
char character,
int startPosition);
51 bool containsFrom(
const char*
string,
char character,
int startPosition);
Declaration of constants used by the modules.
Preprocessor file used for including library for modules.
bool isHexDigit(char character)
Checks if a char is a hexadecimal digit (not case sensitive).
bool containsFrom(const char *string, char character, int startPosition)
Checks if there is an occoruncy of the passed char from the passed position in the passed string.
int decimalDigitToInt(char digit)
If is a decimal digit, converts it to int; Otherwise returns ASCII integer representation of the pass...
int count(const char *string, char character, int startPosition)
Counts the number of occoruncies in the string, from a passed position, of the passed char.
int evalutateBase(char *number)
Evalutates the base of the number (by finding the biggest digit up to hexadecimal digit F) and return...
bool isDecimalDigit(char character)
Checks if a char is a decimal digit.
int offsetFromNext(const char *string, char character, int startPosition)
Counts the offset in the string between the position and the next occoruncy of the passed char.
int nDigits(int number)
Evalutates the number of digits of a number. The time complexity of this function is constant (O(1)).
char * substring(const char *string, int startPosition, int length)
Copies a substring (heap-allocated) from the passed string. If fails when allocating memory for the s...
int hexDigitToInt(char digit)
If is a hexadecimal digit (not case sensitive), converts it to int; Otherwise returns ASCII integer r...
bool containsSubstringFrom(const char *string, const char *subString, int startPosition)
Checks if there is an occoruncy of the passed substring from the passed position in the passed string...