2021-10-19 09:37:49 +02:00
|
|
|
#ifndef __STRING__
|
|
|
|
#define __STRING__
|
2021-10-08 13:36:22 +02:00
|
|
|
|
2023-08-10 11:13:06 +02:00
|
|
|
#include <stdbool.h>
|
2021-10-08 13:36:22 +02:00
|
|
|
#include <stdlib.h>
|
2023-08-10 11:13:06 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "character.h"
|
2021-10-08 13:36:22 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Returns the total number of occurrences of the given character in the string.
|
|
|
|
*
|
|
|
|
* @param string
|
|
|
|
* @param character
|
|
|
|
* @return size_t
|
|
|
|
*/
|
|
|
|
size_t string_total_occurrences_of_character(char* string, char character);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Returns the first non-repeating character in the given string.
|
|
|
|
*
|
|
|
|
* @param string
|
|
|
|
* @return char*
|
|
|
|
*/
|
|
|
|
char string_first_non_repeating_character(char* string);
|
|
|
|
|
|
|
|
#endif
|