Takes one existing Source value, and two parameters of equal length, SearchVals, NewVals
Description:
This function replaces all bytes from Source that match a byte from SearchVals with the corresponding byte from NewVals. The bytes are correlated between SearchVals and NewVals based on their index. In the example below, 'a' corresponds with 'x', and 'b' corresponds with 'y'.
SearchVals and NewVals parameters need to be the same length, and both parameters are case sensitive. Because of the 1-1 mapping and being case sensitive, ReplaceAny$ is orders of magnatude faster than Replace$.
Example:
[New] SearchVals = "ab"
[New] NewVals = "xy"
[New] source = "bac"
source = ReplaceAny$ SearchVals, NewVals
Html source 'Result is equal to "yxc"