Steven Schveighoffer wrote: > I could never understand the mentality of returning -1 versus end of > string. It's not -1, it's uint.max. The reason for returning that value is that it is the only integer value that can never be a valid index.