Lenny Maiorani
|
437ef0cfb7
Implements StringRef::compare with bounds. It is behaves similarly to strncmp(). Unit tests also included.
|
14 år sedan |
Chris Lattner
|
b3371cdf5e
|
14 år sedan |
Benjamin Kramer
|
837bccd052
StringRef::compare_numeric also differed from StringRef::compare for characters > 127.
|
15 år sedan |
Benjamin Kramer
|
0043e35b82
Do unsigned char comparisons in StringRef::compare_lower to be more consistent with compare in corner cases.
|
15 år sedan |
Jakob Stoklund Olesen
|
160a3bf74d
Add StringRef::compare_numeric and use it to sort TableGen register records.
|
15 år sedan |
Benjamin Kramer
|
4760467ff2
Silence compiler warning.
|
15 år sedan |
Douglas Gregor
|
7e54d5b156
Document the edit-distance algorithm used in StringRef, switch it over
|
15 år sedan |
Douglas Gregor
|
c883ad2dd8
Move the two definitions of operator<< into namespace llvm, so they
|
15 år sedan |
Eli Friedman
|
d5b1f8a842
Change StringRef::startswith and StringRef::endswith to versions which are a
|
15 år sedan |
Benjamin Kramer
|
49123250ae
Reenable Split2 StringRef test with Apple gcc.
|
15 år sedan |
Daniel Dunbar
|
0d753ec30e
"XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it.
|
15 år sedan |
Rafael Espindola
|
20fd4ec8c5
Distinguish "a," from "a". The first one splits into "a" + "" and the second one into
|
16 år sedan |
Rafael Espindola
|
c78c0c99a0
|
16 år sedan |
Rafael Espindola
|
5ccac24726
Add a new split method to StringRef that puts the substrings in a vector.
|
16 år sedan |
Daniel Dunbar
|
64066bd8b5
Add From arguments to StringRef search functions, and tweak doxyments.
|
16 år sedan |
Daniel Dunbar
|
e65512809a
Add StringRef::{rfind, rsplit}
|
16 år sedan |
Daniel Dunbar
|
323a3e6533
Fix pasto in StringRef::count(char)
|
16 år sedan |
Daniel Dunbar
|
5caba3bcb1
Add StringRef::count({char,StringRef})
|
16 år sedan |
Daniel Dunbar
|
0ad7f9bb2f
StringRef: Add find(char) and find(StringRef).
|
16 år sedan |
Daniel Dunbar
|
d61918fc68
Add StringRef::{slice, split}, two convenient string operations which are simple
|
16 år sedan |
Daniel Dunbar
|
dbe77cfa0b
Support writing a StringRef to a raw_ostream directly.
|
16 år sedan |
Daniel Dunbar
|
f5fdf73238
Add StringRef::{substr, startswith}.
|
16 år sedan |
Daniel Dunbar
|
4cf95d75c6
Add StringRef class, with fixes.
|
16 år sedan |