23 if(separator == ~(uint64_t)0){
36 if(string->
data[0] !=
'{' || string->
data[string->
length - 1] !=
'}'){
68 if(string->
data[0] !=
'{' || string->
data[string->
length - 1] !=
'}'){
130 separator = current->
length;
189 if(string->
data[0] !=
'{' || string->
data[string->
length - 1] !=
'}'){
200 uint64_t arraySize = 1;
201 int64_t encapsulated = 0;
202 for(uint64_t i = 0; i < stripped->
length; i++){
203 if(stripped->
data[i] ==
'{'){
208 if(stripped->
data[i] ==
'}'){
213 if(!encapsulated && stripped->
data[i] ==
','){
228 ((
ARC_Array *) *value)->size = arraySize;
233 for(uint64_t i = 0; i < stripped->
length; i++){
234 if(stripped->
data[i] ==
'{'){
239 if(stripped->
data[i] ==
'}'){
244 if(!encapsulated && stripped->
data[i] ==
','){
252 if(arraySize == ((
ARC_Array *) *value)->size){
258 if(arraySize != ((
ARC_Array *) *value)->size){
#define ARC_DEBUG_LOG_ERROR_WITH_VARIABLES(STR,...)
void ARC_MathConfig_Init(ARC_Config *config)
uint8_t ARC_Point_Read(ARC_Config *config, ARC_String *string, void **value)
void ARC_RectArray_Delete(ARC_Config *config, ARC_String *string, void *value)
uint64_t ARC_MathConfig_GetIndexAndErrorCheck(ARC_String *string, char *search, uint64_t searchLength)
void ARC_Rect_Delete(ARC_Config *config, ARC_String *string, void *value)
void ARC_RectArray_ReadRect(ARC_Config *config, ARC_String *stripped, uint64_t index, uint64_t length, uint64_t *arrayIndex, void **value)
uint8_t ARC_RectArray_Read(ARC_Config *config, ARC_String *string, void **value)
void ARC_Point_Delete(ARC_Config *config, ARC_String *string, void *value)
uint8_t ARC_Rect_Read(ARC_Config *config, ARC_String *string, void **value)
void ARC_Config_AddKeyCString(ARC_Config *config, const char *type, uint64_t length, ARC_ConfigKeyRead keyRead, ARC_ConfigKeyDelete keyDelete)
adds a key from a cstring
void ARC_Config_Get(ARC_Config *config, ARC_String *keyname, void **value)
get a value from a given keyname
void ARC_String_StripEndsWhitespace(ARC_String **stripped, ARC_String *original)
strips the whitespace from the ends of a string
int64_t ARC_String_ToInt64_t(ARC_String *string)
converst substring from string to int64_t
void ARC_String_CopySubstring(ARC_String **substring, ARC_String *original, uint64_t start, uint64_t length)
copy a subtring from a givin ARC_String
uint64_t ARC_String_FindCString(ARC_String *string, const char *cstring, uint64_t length)
takes given cstring and gives position of first matching
void ARC_String_Destroy(ARC_String *string)
destroys ARC_String type
a type that holds an array of data and its size
substring position within a string