[Solved] Delphi changing Chars in string – missunderstood behavior – XE3
There are several problems with your approach. One problem is with your use of String.Replace(), which replaces ALL occurrences of one Char with another Char. Once you replace a given Char, you can potentially replace that same index with a different value later on in your loops, thus trashing your data while you are looping. … Read more