'Same effect as concatenating the strings in items,
finding the character to which stringindex refers in that string,
and returning the index of the item in which that character resides.'

def _stringindex_to_listindex(self, stringindex, items):

    items.append(u'dummy')
    (i, count) = (0, 0)
    while (count <= stringindex):
        count += len(items[i])
        i += 1
    return (i - 1)
