Chris Lattner
|
7a2bdde0a0
Fix a ton of comment typos found by codespell. Patch by
|
14 years ago |
Jay Foad
|
40f8f6264d
PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and
|
14 years ago |
Michael J. Spencer
|
63c133b67d
Support/ADT/StringRef: Add find_last_of.
|
14 years ago |
Michael J. Spencer
|
326990f1eb
Fix Whitespace.
|
14 years ago |
Ted Kremenek
|
13302ec089
Fix memory leak in StringRef::edit_distance(). 'Allocated' could be leaked on an early return.
|
15 years ago |
Douglas Gregor
|
5ee568ac27
Extend StringRef's edit-distance algorithm to permit an upper bound on the allowed edit distance
|
15 years ago |
Benjamin Kramer
|
837bccd052
StringRef::compare_numeric also differed from StringRef::compare for characters > 127.
|
15 years ago |
Benjamin Kramer
|
0043e35b82
Do unsigned char comparisons in StringRef::compare_lower to be more consistent with compare in corner cases.
|
15 years ago |
Benjamin Kramer
|
250eb005d9
Avoid O(n*m) complexity in StringRef::find_first(_not)_of(StringRef).
|
15 years ago |
Jakob Stoklund Olesen
|
160a3bf74d
Add StringRef::compare_numeric and use it to sort TableGen register records.
|
15 years ago |
John McCall
|
1e7ad3993d
Add an override to StringRef::getAsInteger which parses into an APInt.
|
15 years ago |
Douglas Gregor
|
2772ea831c
More trivial optimizations to a function well outside the critical path
|
15 years ago |
Douglas Gregor
|
ad6b6da8aa
Switch StringRef::edit_distance over to using raw pointers, since both
|
15 years ago |
Douglas Gregor
|
7e54d5b156
Document the edit-distance algorithm used in StringRef, switch it over
|
15 years ago |
Douglas Gregor
|
441c8b4ad1
Implement edit distance for StringRef
|
15 years ago |
Daniel Dunbar
|
58ce7acb4f
Use StringRef::min instead of std::min.
|
15 years ago |
Benjamin Kramer
|
05872ea804
Add compare_lower and equals_lower methods to StringRef. Switch all users of
|
16 years ago |
Daniel Dunbar
|
64066bd8b5
Add From arguments to StringRef search functions, and tweak doxyments.
|
16 years ago |
Daniel Dunbar
|
2928c83b01
Pass StringRef by value.
|
16 years ago |
Daniel Dunbar
|
77696bebbc
Workaround what I believe is an MSVC bug where it emits a definition for a
|
16 years ago |
Chris Lattner
|
6441e547cc
simplify as daniel suggests
|
16 years ago |
Chris Lattner
|
05a32c8ab1
move a couple non-trivial methods out of line, add new
|
16 years ago |
Chris Lattner
|
63c6b7dc67
add some more overloads of StringRef::getAsInteger for
|
16 years ago |
Chris Lattner
|
cea1438cf5
provide a "strtoull" operation that works on StringRef's.
|
16 years ago |
Daniel Dunbar
|
e65512809a
Add StringRef::{rfind, rsplit}
|
16 years ago |