added a couple keys to console/key, and added append to string

This commit is contained in:
herbglitch 2024-07-08 04:37:47 -06:00
parent 3f5e631388
commit 7f0120f0c8
4 changed files with 60 additions and 3 deletions

View file

@ -78,6 +78,35 @@ void ARC_String_ReplaceWithSubstring(ARC_String **string, uint64_t start, uint64
*/
void ARC_String_RemoveSubstring(ARC_String **newString, ARC_String *original, ARC_String *substring);
/**
* @brief appends to an ARC_String with an ARC_String
*
* @note this uses ARC_String_AppendCString, so debug logs will be thrown in that function not this one
*
* @param string the string to add to, will not change on error
* @param append the string that will be added to the back of string
*/
void ARC_String_Append(ARC_String **string, ARC_String *append);
/**
* @brief appends to an ARC_String with an ARC_String
*
* @param string the string to add to, will not change on error
* @param cstring the cstring that will be added to the back of string
* @param length the length of the cstring that is being added
*/
void ARC_String_AppendCString(ARC_String **string, const char *cstring, uint64_t length);
/**
* @brief appends to an ARC_String with an ARC_String
*
* @note this uses ARC_String_AppendCString, so debug logs will be thrown in that function not this one
*
* @param string the string to add to, will not change on error
* @param cstring the cstring that will be added to the back of string
*/
void ARC_String_AppendCStringWithStrlen(ARC_String **string, const char *cstring);
/**
* @brief checks if two strings are the same
*