Chandler Carruth
|
5a88dda4be
Sort the #include lines for unittest/...
|
12 éve |
Nick Kledzik
|
436eaa88fd
Use unsigned long long instead of uin64_t for OS where that matters.
|
13 éve |
Benjamin Kramer
|
e25de4ae04
Don't call getAsUnsignedInteger directly, it fails to compile if uint64_t is not "unsigned long long".
|
13 éve |
Nick Kledzik
|
7a0f86fa78
Add getAsUnsignedInteger test case that checks that known bad values are rejected
|
13 éve |
Michael J. Spencer
|
b0940b46ed
[Support/StringRef] Add find_last_not_of and {r,l,}trim.
|
13 éve |
Michael J. Spencer
|
dbb4b2fb5e
Fix warnings.
|
13 éve |
Michael J. Spencer
|
9130b42a85
Make StringRef::getAsInteger work with all integer types. Before this change
|
13 éve |
Chandler Carruth
|
528f0bbe19
Add generic support for hashing StringRef objects using the new hashing library.
|
13 éve |
Benjamin Kramer
|
6e6a558ebc
Add a bad char heuristic to StringRef::find.
|
14 éve |
Jakob Stoklund Olesen
|
7850dd0f25
Fix a bug in compare_numeric().
|
14 éve |
Lenny Maiorani
|
6cf081cbe5
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.
|
14 éve |
Lenny Maiorani
|
437ef0cfb7
Implements StringRef::compare with bounds. It is behaves similarly to strncmp(). Unit tests also included.
|
14 éve |
Chris Lattner
|
b3371cdf5e
|
14 éve |
Benjamin Kramer
|
837bccd052
StringRef::compare_numeric also differed from StringRef::compare for characters > 127.
|
15 éve |
Benjamin Kramer
|
0043e35b82
Do unsigned char comparisons in StringRef::compare_lower to be more consistent with compare in corner cases.
|
15 éve |
Jakob Stoklund Olesen
|
160a3bf74d
Add StringRef::compare_numeric and use it to sort TableGen register records.
|
15 éve |
Benjamin Kramer
|
4760467ff2
Silence compiler warning.
|
15 éve |
Douglas Gregor
|
7e54d5b156
Document the edit-distance algorithm used in StringRef, switch it over
|
15 éve |
Douglas Gregor
|
c883ad2dd8
Move the two definitions of operator<< into namespace llvm, so they
|
15 éve |
Eli Friedman
|
d5b1f8a842
Change StringRef::startswith and StringRef::endswith to versions which are a
|
15 éve |
Benjamin Kramer
|
49123250ae
Reenable Split2 StringRef test with Apple gcc.
|
15 éve |
Daniel Dunbar
|
0d753ec30e
"XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it.
|
15 éve |
Rafael Espindola
|
20fd4ec8c5
Distinguish "a," from "a". The first one splits into "a" + "" and the second one into
|
16 éve |
Rafael Espindola
|
c78c0c99a0
|
16 éve |
Rafael Espindola
|
5ccac24726
Add a new split method to StringRef that puts the substrings in a vector.
|
16 éve |
Daniel Dunbar
|
64066bd8b5
Add From arguments to StringRef search functions, and tweak doxyments.
|
16 éve |
Daniel Dunbar
|
e65512809a
Add StringRef::{rfind, rsplit}
|
16 éve |
Daniel Dunbar
|
323a3e6533
Fix pasto in StringRef::count(char)
|
16 éve |
Daniel Dunbar
|
5caba3bcb1
Add StringRef::count({char,StringRef})
|
16 éve |
Daniel Dunbar
|
0ad7f9bb2f
StringRef: Add find(char) and find(StringRef).
|
16 éve |