Click here to Skip to main content
15,615,280 members

Comments by Bob Van Wagner (Top 1 by date)

Bob Van Wagner 17-Jan-12 8:54am View    
Line terminations are found closer to the end of a string than the beginning, you want to walk backwards and not forward looking for them. In super-high performance systems one could use one register load of a multibyte word and mask each byte for a match on '\n'.