some basic changes to try to fix for the -Wpedantic flag
This commit is contained in:
parent
19d6120871
commit
3f5e631388
4 changed files with 31 additions and 4 deletions
|
|
@ -58,6 +58,17 @@ void ARC_String_Copy(ARC_String **copy, ARC_String *original);
|
|||
*/
|
||||
void ARC_String_CopySubstring(ARC_String **substring, ARC_String *original, uint64_t start, uint64_t length);
|
||||
|
||||
/**
|
||||
* @brief replaces a string with a section of itself
|
||||
*
|
||||
* @note this uses ARC_String_CopySubstring so errors logs will be thrown in that function not this one
|
||||
*
|
||||
* @param string the string to replace, will not change on error
|
||||
* @param start the starting index of the substring
|
||||
* @param length the length of the substring
|
||||
*/
|
||||
void ARC_String_ReplaceWithSubstring(ARC_String **string, uint64_t start, uint64_t length);
|
||||
|
||||
/**
|
||||
* @brief copy a subtring from a givin ARC_String
|
||||
*
|
||||
|
|
@ -322,4 +333,4 @@ void ARC_String_ReplaceMatchingCStringWithStrlen(ARC_String **string, char *patt
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif //ARC_STD_STRING_H_
|
||||
#endif //ARC_STD_STRING_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue