halirutan
02/27/2019, 9:46 AM<name>Carla</name>
to finally get "<name>Carla</name> and <name>Bob</name> went to school".
Is there an easy way in Kotlin to achieve this without tracking the lengths that I have already inserted?diesieben07
02/27/2019, 10:00 AMhalirutan
02/27/2019, 11:31 AMPavlo Liapota
02/27/2019, 1:15 PMStringBuilder
and append part by part while using input ranges on original string.halirutan
02/27/2019, 1:32 PMString.replaceRange(range: IntRange, replacement: CharSequence)
for several ranges exists which does the job. I'm going to follow your advice.