It looks like there's a slight problem with the ArWinner.ash code. On line 19, where it reads
int NumberBoughtEnd = index_of( log , ")" , NumberBoughtStart ) - 1;
it should instead read
int NumberBoughtEnd = index_of( log , "(" , NumberBoughtStart ) - 1;