11#ifndef __ACDC_STRING_H
12#define __ACDC_STRING_H
21char*
StringCopy(
char* dest,
const char* source);
Header file for the type bool.
Header file for intx_t and uintx_t types.
signed long int int32_t
Definition ACDC_stdint.h:21
int32_t StringIndexOf(const char *str, char c)
Finds and returns the index of first occurance the character c in the string str.
Definition ACDC_string.c:62
char * StringConvert(int32_t num)
Converts an int32_t into a string.
Definition ACDC_string.c:185
bool StringIsAlphabetic(const char *str)
Checks if all characters in the input string are alphabetic.
Definition ACDC_string.c:156
char * StringCopy(char *dest, const char *source)
Copies the string pointed by source (including the null character) to the destination dest.
Definition ACDC_string.c:20
char * StringConcat(char *dest, const char *source)
Appends the content of the string source to the end of the string dest.
Definition ACDC_string.c:51
char * StringToLower(char *str)
Converts all uppercase characters A-Z in the string str to lowercase.
Definition ACDC_string.c:103
char * StringToUpper(char *str)
Converts all lowercase characters a-z in the string str to uppercase.
Definition ACDC_string.c:92
bool StringIsAlphanumeric(const char *str)
Checks if all characters in the input string are alphanumeric.
Definition ACDC_string.c:170
bool StringIsLower(const char *str)
Checks if all characters in the input string are lowercase characters (can only contain characters)
Definition ACDC_string.c:128
int32_t StringLength(const char *str)
Calculates the length of the string str.
Definition ACDC_string.c:45
bool StringIsUpper(const char *str)
Checks if all characters in the input string are uppercase characters (can only contain characters)
Definition ACDC_string.c:114
bool StringIsNumeric(const char *str)
Checks if all characters in the input string are numeric.
Definition ACDC_string.c:142
char * StringSubstring(char *str, int32_t index)
Returns a substring of the input string str starting from the specified index.
Definition ACDC_string.c:70
bool StringEndsWith(const char *str, const char *compareWith)
Checks if the given string str ends with the specified substring compareWith.
Definition ACDC_string.c:82
int32_t StringCompare(const char *str1, const char *str2)
Compares two strings character by character. Returns 0 if the strings are equal, >0 if the first non-...
Definition ACDC_string.c:31
bool StringStartsWith(char *str, const char *compareWith)
Checks if the given string str starts with the specified substring compareWith.
Definition ACDC_string.c:74