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:
parent
d64340525a
commit
af9a1f1040
5 changed files with 28 additions and 28 deletions
|
|
@ -196,7 +196,7 @@ uint8_t ARC_ConfigKey_Read_String(ARC_Config* config, ARC_String *string, void *
|
|||
void ARC_ConfigKey_StringArray_ReadString(ARC_Config* config, ARC_String *stripped, uint64_t index, uint64_t length, uint64_t *arrayIndex, void **value){
|
||||
ARC_String *substr, *temp;
|
||||
ARC_String_CopySubstring(&temp, stripped, index, length);
|
||||
ARC_String_StripEndsWhitespace(temp, &substr);
|
||||
ARC_String_StripEndsWhitespace(&substr, temp);
|
||||
ARC_String_Destroy(temp);
|
||||
|
||||
// reading in reference
|
||||
|
|
@ -239,7 +239,7 @@ uint8_t ARC_ConfigKey_Read_StringArray(ARC_Config* config, ARC_String *string, v
|
|||
|
||||
ARC_String *temp, *stripped;
|
||||
ARC_String_CopySubstring(&temp, string, 1, string->length - 2);
|
||||
ARC_String_StripEndsWhitespace(temp, &stripped);
|
||||
ARC_String_StripEndsWhitespace(&stripped, temp);
|
||||
ARC_String_Destroy(temp);
|
||||
|
||||
uint64_t arraySize = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue