I found an interesting bug, maybe even in .net (haven't try this in mono yet).
IndexOf()
method of string instance is returning signed values (-1 or lower) for certain special symbols,
for example I had a string which contained some special unicode characters and somewhere inside of this string was colon which I was looking for. Calling IndexOf(" :")
for a line that surely contains " :"
returned signed value
I will try to paste this string here, but given the special symbols it may be hard:
hitchcock.freenode.net 322 petan #hobbiton 5 :ˁ˚ᴥ˚ˀ > Good luck axa!
Is there a way to work around this?