fixed string class so parameters that can be stored to will allways be the first parameter, might have broken everything, need to test

This commit is contained in:
herbglitch 2024-01-16 23:58:31 -07:00
parent d64340525a
commit af9a1f1040
5 changed files with 28 additions and 28 deletions

View file

@ -169,39 +169,39 @@ uint64_t ARC_String_FindBack(ARC_String *string, ARC_String *substring);
/**
* @brief strips the ends based on a given char
*
* @param original the string which whill have the matching char stripped from
* @param stripped where to store the string which has witespace stripped
* will be null if there is an error
* @param original the string which whill have the matching char stripped from
* @param charToStrip the char that will be stripped from the ends
*/
void ARC_String_StripEnds(ARC_String *original, ARC_String **stripped, char charToStrip);
void ARC_String_StripEnds(ARC_String **stripped, ARC_String *original, char charToStrip);
/**
* @brief strips whitespace from a ARC_String
*
* @param original the string which whill have whitespace stripped from
* @param stripped where to store the string which has witespace stripped
* will be null if there is an error
* @param original the string which whill have whitespace stripped from
*/
void ARC_String_StripWhitespace(ARC_String *original, ARC_String **stripped);
void ARC_String_StripWhitespace(ARC_String **stripped, ARC_String *original);
/**
* @brief strips the whitespace from the ends of a string
*
* @param original the string which whill have the whitespace stripped from its ends
* @param stripped where to store the string which has witespace stripped from the ends
* will be null if there is an error
* @param original the string which whill have the whitespace stripped from its ends
*/
void ARC_String_StripEndsWhitespace(ARC_String *original, ARC_String **stripped);
void ARC_String_StripEndsWhitespace(ARC_String **stripped, ARC_String *original);
/**
* @brief merges two strings together
*
* @param combined new ARC_String of combined strings frist + second
* @param first first part of string to combine
* @param second second part of string to combine
* @param combined new ARC_String of combined strings frist + second
*/
void ARC_String_Merge(ARC_String *first, ARC_String *second, ARC_String **combined);
void ARC_String_Merge(ARC_String **combined, ARC_String *first, ARC_String *second);
/**
* @brief copy a subtring from a givin ARC_String