you're right about this.  but why obfuscate the situation with Runes?
the only characters that rc will treat as special are us-ascii -- that is
< 0x80.

If r weren't a Rune, strchr would work as expected and you wouldn't
need the test for 0x80 (also, it would presumably be named c and not
r).  The function deals with Runes, not chars.  Isn't it less
obfuscated to do it explicitly?  I'm not suggesting you introduce
Runes where they aren't already, just that there's a library function
that does what you want with the Runes you've already got.

Micah

Reply via email to