Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Implements StringRef::compare with bounds. It is behaves similarly to ↵ | Lenny Maiorani | 2011-04-15 | 1 | -0/+13 | |
| | | | | | | strncmp(). Unit tests also included. llvm-svn: 129582 | |||||
* | Don't infinitely recurse! Patch by Marius Wachtler! | Chris Lattner | 2011-01-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 124366 | |||||
* | StringRef::compare_numeric also differed from StringRef::compare for ↵ | Benjamin Kramer | 2010-08-26 | 1 | -0/+1 | |
| | | | | | | characters > 127. llvm-svn: 112189 | |||||
* | Do unsigned char comparisons in StringRef::compare_lower to be more ↵ | Benjamin Kramer | 2010-08-26 | 1 | -0/+8 | |
| | | | | | | consistent with compare in corner cases. llvm-svn: 112185 | |||||
* | Add StringRef::compare_numeric and use it to sort TableGen register records. | Jakob Stoklund Olesen | 2010-05-26 | 1 | -0/+11 | |
| | | | | | | | This means that our Registers are now ordered R7, R8, R9, R10, R12, ... Not R1, R10, R11, R12, R2, R3, ... llvm-svn: 104745 | |||||
* | Silence compiler warning. | Benjamin Kramer | 2009-12-31 | 1 | -1/+1 | |
| | | | | | warning: comparison between signed and unsigned integer expressions llvm-svn: 92359 | |||||
* | Document the edit-distance algorithm used in StringRef, switch it over | Douglas Gregor | 2009-12-31 | 1 | -0/+5 | |
| | | | | | | to SmallVector, and add a unit test. llvm-svn: 92340 | |||||
* | Move the two definitions of operator<< into namespace llvm, so they | Douglas Gregor | 2009-12-24 | 1 | -1/+4 | |
| | | | | | | | will be found by argument-dependent lookup. As with the previous commit, GCC is allowing ill-formed code. llvm-svn: 92146 | |||||
* | Change StringRef::startswith and StringRef::endswith to versions which are a | Eli Friedman | 2009-12-21 | 1 | -0/+8 | |
| | | | | | | bit more verbose, but optimize to much shorter code. llvm-svn: 91817 | |||||
* | Reenable Split2 StringRef test with Apple gcc. | Benjamin Kramer | 2009-11-19 | 1 | -6/+0 | |
| | | | | llvm-svn: 89357 | |||||
* | "XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it. | Daniel Dunbar | 2009-11-17 | 1 | -0/+6 | |
| | | | | | | | - I plan on fixing/workarounding this, but until then I'd like the bots to stay green. llvm-svn: 89077 | |||||
* | Distinguish "a," from "a". The first one splits into "a" + "" and the second ↵ | Rafael Espindola | 2009-11-13 | 1 | -0/+5 | |
| | | | | | | | | one into "a" + 0. llvm-svn: 87084 | |||||
* | Switch to smallvector. Also fix issue with using unsigend for MaxSplit. | Rafael Espindola | 2009-11-13 | 1 | -2/+3 | |
| | | | | llvm-svn: 87068 | |||||
* | Add a new split method to StringRef that puts the substrings in a vector. | Rafael Espindola | 2009-11-13 | 1 | -0/+75 | |
| | | | | llvm-svn: 87058 | |||||
* | Add From arguments to StringRef search functions, and tweak doxyments. | Daniel Dunbar | 2009-11-11 | 1 | -0/+10 | |
| | | | | | | Also, add unittests for find_first_of and find_first_not_of. llvm-svn: 86770 | |||||
* | Add StringRef::{rfind, rsplit} | Daniel Dunbar | 2009-09-16 | 1 | -42/+90 | |
| | | | | llvm-svn: 82087 | |||||
* | Fix pasto in StringRef::count(char) | Daniel Dunbar | 2009-08-18 | 1 | -0/+1 | |
| | | | | llvm-svn: 79356 | |||||
* | Add StringRef::count({char,StringRef}) | Daniel Dunbar | 2009-08-18 | 1 | -0/+7 | |
| | | | | llvm-svn: 79354 | |||||
* | StringRef: Add find(char) and find(StringRef). | Daniel Dunbar | 2009-08-11 | 1 | -0/+7 | |
| | | | | | | Also, regroup functions. llvm-svn: 78712 | |||||
* | Add StringRef::{slice, split}, two convenient string operations which are simple | Daniel Dunbar | 2009-07-26 | 1 | -0/+15 | |
| | | | | | | and efficient on a StringRef. llvm-svn: 77117 | |||||
* | Support writing a StringRef to a raw_ostream directly. | Daniel Dunbar | 2009-07-22 | 1 | -0/+6 | |
| | | | | llvm-svn: 76754 | |||||
* | Add StringRef::{substr, startswith}. | Daniel Dunbar | 2009-07-21 | 1 | -0/+12 | |
| | | | | llvm-svn: 76559 | |||||
* | Add StringRef class, with fixes. | Daniel Dunbar | 2009-07-21 | 1 | -0/+59 | |
llvm-svn: 76543 |