From: Colin P. A. <co...@co...> - 2008-03-28 12:50:12
|
>>>>> "Eric" == Eric Bezault <er...@go...> writes: Eric> Otherwise I try to be very careful with Eric> strings. String concatenations and substring operations Eric> create a lot of intermediary objects. Be careful as well Eric> when strings get resized (even implicitly by some Eric> operations). Is there a more efficient way of doing this sort of thing? a_preceding_path := parent.path if STRING_.same_string (a_preceding_path, "/") then Result := STRING_.concat (a_preceding_path, node_name) else Result := STRING_.concat (a_preceding_path, "/") Result := STRING_.appended_string (Result, node_name) Result := STRING_.appended_string (Result, "[") Result := STRING_.appended_string (Result, simple_number) Result := STRING_.appended_string (Result, "]") end -- Colin Adams Preston Lancashire |