summaryrefslogtreecommitdiff
path: root/lib/Support/StringRef.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-12-03Use the new script to sort the includes of every file under lib.Chandler Carruth1-2/+1
2012-10-02Improve overflow detection in StringRef::getAsUnsignedInteger().Nick Kledzik1-2/+2
2012-05-11[Support/StringRef] Add find_last_not_of and {r,l,}trim.Michael J. Spencer1-0/+26
2012-04-23Don't die with an assertion if the Result bitwidth is already correct. ThisChris Lattner1-1/+1
2012-04-21No need for "else if" after a return. Autosense "0o123" as octal inChris Lattner1-4/+12
2012-03-10Make StringRef::getAsInteger work with all integer types. Before this changeMichael J. Spencer1-29/+7
2012-03-04Add generic support for hashing StringRef objects using the new hashing library.Chandler Carruth1-0/+7
2012-02-24Workaround a miscompilation by gcc-4.3 that showed up as a failureDuncan Sands1-1/+1
2012-02-21Move the implementation of StringRef::split out of StringExtras.cppDuncan Sands1-0/+21
2012-02-15Add function for computing the edit distance of two arrays.Kaelyn Uhrain1-51/+5
2011-11-06Fix a typo.Benjamin Kramer1-1/+1
2011-11-06ADT/StringRef: Add ::lower() and ::upper() methods.Daniel Dunbar1-0/+26
2011-10-17Fix handling of the From parameter in StringRef::find.Benjamin Kramer1-2/+5
2011-10-15Add a bad char heuristic to StringRef::find.Benjamin Kramer1-3/+26
2011-09-30Fix a bug in compare_numeric().Jakob Stoklund Olesen1-6/+13
2011-04-28Remove bounded StringRef::compare() since nothing but Clang SA was using it a...Lenny Maiorani1-21/+0
2011-04-15Implements StringRef::compare with bounds. It is behaves similarly to strncmp...Lenny Maiorani1-0/+21
2011-04-15Fix a ton of comment typos found by codespell. Patch byChris Lattner1-2/+2
2010-12-07PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad1-1/+1
2010-11-30Support/ADT/StringRef: Add find_last_of.Michael J. Spencer1-0/+15
2010-11-26Fix Whitespace.Michael J. Spencer1-20/+20
2010-11-07Fix memory leak in StringRef::edit_distance(). 'Allocated' could be leaked o...Ted Kremenek1-5/+6
2010-10-19Extend StringRef's edit-distance algorithm to permit an upper bound on the al...Douglas Gregor1-1/+8
2010-08-26StringRef::compare_numeric also differed from StringRef::compare for characte...Benjamin Kramer1-1/+1
2010-08-26Do unsigned char comparisons in StringRef::compare_lower to be more consisten...Benjamin Kramer1-4/+4
2010-08-23Avoid O(n*m) complexity in StringRef::find_first(_not)_of(StringRef).Benjamin Kramer1-4/+13
2010-05-26Add StringRef::compare_numeric and use it to sort TableGen register records.Jakob Stoklund Olesen1-0/+28
2010-02-28Add an override to StringRef::getAsInteger which parses into an APInt.John McCall1-12/+93
2010-01-07More trivial optimizations to a function well outside the critical pathDouglas Gregor1-15/+8
2010-01-07Switch StringRef::edit_distance over to using raw pointers, since bothDouglas Gregor1-7/+25
2009-12-31Document the edit-distance algorithm used in StringRef, switch it overDouglas Gregor1-5/+14
2009-12-30Implement edit distance for StringRefDouglas Gregor1-0/+31
2009-11-19Use StringRef::min instead of std::min.Daniel Dunbar1-5/+5
2009-11-12Add compare_lower and equals_lower methods to StringRef. Switch all users ofBenjamin Kramer1-0/+20
2009-11-11Add From arguments to StringRef search functions, and tweak doxyments.Daniel Dunbar1-9/+24
2009-11-06Pass StringRef by value.Daniel Dunbar1-3/+3
2009-09-22Workaround what I believe is an MSVC bug where it emits a definition for aDaniel Dunbar1-0/+3
2009-09-20simplify as daniel suggestsChris Lattner1-16/+9
2009-09-20move a couple non-trivial methods out of line, add new Chris Lattner1-0/+71
2009-09-19add some more overloads of StringRef::getAsInteger forChris Lattner1-0/+45
2009-09-19provide a "strtoull" operation that works on StringRef's.Chris Lattner1-0/+63
2009-09-16Add StringRef::{rfind, rsplit}Daniel Dunbar1-0/+13