#
367342e2 |
| 28-Apr-2011 |
Lenny Maiorani <lenny@colorado.edu> |
Remove bounded StringRef::compare() since nothing but Clang SA was using it and it is just as easy to use StringRef::substr() preceding StringRef::compare() to achieve the same thing.
llvm-svn: 1304
Remove bounded StringRef::compare() since nothing but Clang SA was using it and it is just as easy to use StringRef::substr() preceding StringRef::compare() to achieve the same thing.
llvm-svn: 130430
show more ...
|
#
fad9d957 |
| 15-Apr-2011 |
Lenny Maiorani <lenny@colorado.edu> |
Implements StringRef::compare with bounds. It is behaves similarly to strncmp(). Unit tests also included.
llvm-svn: 129582
|
Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1 |
|
#
2114b762 |
| 27-Jan-2011 |
Chris Lattner <sabre@nondot.org> |
Don't infinitely recurse! Patch by Marius Wachtler!
llvm-svn: 124366
|
Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2, llvmorg-2.8.0-rc1, llvmorg-2.8.0-rc0 |
|
#
9bf0380a |
| 26-Aug-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
StringRef::compare_numeric also differed from StringRef::compare for characters > 127.
llvm-svn: 112189
|
#
b04d4af0 |
| 26-Aug-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Do unsigned char comparisons in StringRef::compare_lower to be more consistent with compare in corner cases.
llvm-svn: 112185
|
#
d1d7ed63 |
| 26-May-2010 |
Jakob Stoklund Olesen <stoklund@2pi.dk> |
Add StringRef::compare_numeric and use it to sort TableGen register records.
This means that our Registers are now ordered R7, R8, R9, R10, R12, ... Not R1, R10, R11, R12, R2, R3, ...
llvm-svn: 104
Add StringRef::compare_numeric and use it to sort TableGen register records.
This means that our Registers are now ordered R7, R8, R9, R10, R12, ... Not R1, R10, R11, R12, R2, R3, ...
llvm-svn: 104745
show more ...
|
Revision tags: llvmorg-2.7.0 |
|
#
738800dd |
| 31-Dec-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Silence compiler warning.
warning: comparison between signed and unsigned integer expressions llvm-svn: 92359
|
#
5639af4e |
| 31-Dec-2009 |
Douglas Gregor <dgregor@apple.com> |
Document the edit-distance algorithm used in StringRef, switch it over to SmallVector, and add a unit test.
llvm-svn: 92340
|
#
4ee2cf65 |
| 24-Dec-2009 |
Douglas Gregor <dgregor@apple.com> |
Move the two definitions of operator<< into namespace llvm, so they will be found by argument-dependent lookup. As with the previous commit, GCC is allowing ill-formed code.
llvm-svn: 92146
|
#
00879d8f |
| 21-Dec-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Change StringRef::startswith and StringRef::endswith to versions which are a bit more verbose, but optimize to much shorter code.
llvm-svn: 91817
|
#
99b5bd90 |
| 19-Nov-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Reenable Split2 StringRef test with Apple gcc.
llvm-svn: 89357
|
#
1acdfbd6 |
| 17-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
"XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it. - I plan on fixing/workarounding this, but until then I'd like the bots to stay green.
llvm-svn: 89077
|
#
ff2c72b8 |
| 13-Nov-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Distinguish "a," from "a". The first one splits into "a" + "" and the second one into "a" + 0.
llvm-svn: 87084
|
#
7c685499 |
| 13-Nov-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Switch to smallvector. Also fix issue with using unsigend for MaxSplit.
llvm-svn: 87068
|
#
d554e440 |
| 13-Nov-2009 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a new split method to StringRef that puts the substrings in a vector.
llvm-svn: 87058
|
#
9806e4ab |
| 11-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add From arguments to StringRef search functions, and tweak doxyments.
Also, add unittests for find_first_of and find_first_not_of.
llvm-svn: 86770
|
Revision tags: llvmorg-2.6.0 |
|
#
44981687 |
| 16-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add StringRef::{rfind, rsplit}
llvm-svn: 82087
|
#
3828a99b |
| 18-Aug-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix pasto in StringRef::count(char)
llvm-svn: 79356
|
#
5736db65 |
| 18-Aug-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add StringRef::count({char,StringRef})
llvm-svn: 79354
|
#
a1e04d43 |
| 11-Aug-2009 |
Daniel Dunbar <daniel@zuster.org> |
StringRef: Add find(char) and find(StringRef).
Also, regroup functions.
llvm-svn: 78712
|
#
56563f33 |
| 26-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add StringRef::{slice, split}, two convenient string operations which are simple and efficient on a StringRef.
llvm-svn: 77117
|
#
e23388b2 |
| 22-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Support writing a StringRef to a raw_ostream directly.
llvm-svn: 76754
|
#
1f982105 |
| 21-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add StringRef::{substr, startswith}.
llvm-svn: 76559
|
#
25f9fc58 |
| 21-Jul-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add StringRef class, with fixes.
llvm-svn: 76543
|