|
|
|
@ -609,7 +609,7 @@ StringArray CompoundKeySplitKeyCompletely(CONST_STRPTR key) |
|
|
|
|
{ |
|
|
|
|
StringArrayAppendAndRetain(result, ""); |
|
|
|
|
StringArrayAppendAndRetain(result, ""); |
|
|
|
|
StringArrayAppendAndRetain(result, (STRPTR)ArrayBackValue(STRPTR, parts)); |
|
|
|
|
StringArrayAppendAndRetain(result, (STRPTR)ArrayBack(STRPTR, parts)); |
|
|
|
|
} |
|
|
|
|
else if( numberOfParts == 2 ) // section and variable ["section","","var"]
|
|
|
|
|
{ |
|
|
|
@ -630,7 +630,7 @@ StringArray CompoundKeySplitKeyCompletely(CONST_STRPTR key) |
|
|
|
|
// start at index 1, and add (size -2 (start+end)) parts
|
|
|
|
|
StringArrayAppend(result, StringArrayJoinedParts(parts, '.', 1, SizeOfArray(parts)-2)); |
|
|
|
|
|
|
|
|
|
StringArrayAppendAndRetain(result, (STRPTR)ArrayBackValue(STRPTR, parts)); // variable
|
|
|
|
|
StringArrayAppendAndRetain(result, (STRPTR)ArrayBack(STRPTR, parts)); // variable
|
|
|
|
|
} |
|
|
|
|
StringArrayFree(parts, TRUE); |
|
|
|
|
return result; |
|
|
|
@ -664,7 +664,7 @@ StringArray CompoundKeySplitKeyForVar(CONST_STRPTR key) |
|
|
|
|
// now we join all but the last part
|
|
|
|
|
sectionPart = StringArrayJoinedParts(parts, '.', 0, SizeOfArray(parts)-1); |
|
|
|
|
StringArrayAppend(result, sectionPart); // its been alloced so dont copy
|
|
|
|
|
varPart = (STRPTR)ArrayBackValue(STRPTR, parts); |
|
|
|
|
varPart = (STRPTR)ArrayBack(STRPTR, parts); |
|
|
|
|
StringArrayAppendAndRetain(result, varPart); // its a reference so copy
|
|
|
|
|
StringArrayFree(parts, TRUE); |
|
|
|
|
return result; |
|
|
|
|