[llvm-commits] [PATCH] review request - bounded case-insensitive StringRef compare

Chris Lattner clattner at apple.com
Wed Apr 27 18:16:36 PDT 2011


On Apr 26, 2011, at 3:21 PM, Lenny Maiorani wrote:

> This patch adds bounded case-insensitive compare to StringRef class, imitating strncasecmp(). Includes unit tests.

I'm still dubious about the 'n' functions being in StringRef, I don't understand why clients can't substr() the string before calling non-'n' versions. 

-Chris



More information about the llvm-commits mailing list