[Lldb-commits] [lldb] r124889 - in /lldb/trunk/source: Plugins/Disassembler/llvm/DisassemblerLLVM.cpp Plugins/Process/MacOSX-User/source/ProcessMacOSXLog.cpp Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp lldb-log.cpp
Chris Lattner
clattner at apple.com
Sun Feb 6 05:56:27 PST 2011
On Feb 4, 2011, at 10:55 AM, Greg Clayton wrote:
> Author: gclayton
> Date: Fri Feb 4 12:55:41 2011
> New Revision: 124889
>
> URL: http://llvm.org/viewvc/llvm-project?rev=124889&view=rev
> Log:
> Patch to remove uses of non-standard strcasestr and replace then with
> strncasecmp equivalents from Kirk Beitz.
FWIW, I strongly recommend using StringRef for this sort of code. It has methods like compare_lower which are portable, and also efficient.
For case sensitive stuff, LLVM has a StringSwitch template which works well and is also efficient.
-Chris
More information about the lldb-commits
mailing list