summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StringRef.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add an override to StringRef::getAsInteger which parses into an APInt.John McCall2010-02-281-12/+93
| | | | | | | | | | It gets its own implementation totally divorced from the (presumably performance-sensitive) routines which parse into a uint64_t. Add APInt::operator|=(uint64_t), which is situationally much better than using a full APInt. llvm-svn: 97381
* More trivial optimizations to a function well outside the critical pathDouglas Gregor2010-01-071-15/+8
| | | | llvm-svn: 92896
* Switch StringRef::edit_distance over to using raw pointers, since bothDouglas Gregor2010-01-071-7/+25
| | | | | | | std::vector and llvm::SmallVector have annoying performance tradeoffs. No, I don't expect this to matter, and now it won't. llvm-svn: 92884
* Document the edit-distance algorithm used in StringRef, switch it overDouglas Gregor2009-12-311-5/+14
| | | | | | to SmallVector, and add a unit test. llvm-svn: 92340
* Implement edit distance for StringRefDouglas Gregor2009-12-301-0/+31
| | | | llvm-svn: 92309
* Use StringRef::min instead of std::min.Daniel Dunbar2009-11-191-5/+5
| | | | llvm-svn: 89372
* Add compare_lower and equals_lower methods to StringRef. Switch all users ofBenjamin Kramer2009-11-121-0/+20
| | | | | | StringsEqualNoCase (from StringExtras.h) to it. llvm-svn: 87020
* Add From arguments to StringRef search functions, and tweak doxyments.Daniel Dunbar2009-11-111-9/+24
| | | | | | Also, add unittests for find_first_of and find_first_not_of. llvm-svn: 86770
* Pass StringRef by value.Daniel Dunbar2009-11-061-3/+3
| | | | llvm-svn: 86251
* Workaround what I believe is an MSVC bug where it emits a definition for aDaniel Dunbar2009-09-221-0/+3
| | | | | | | | static const class member into each translation unit, with external linkage??? - If someone understands this issue better, please clue me in, I haven't consulted the standard yet. llvm-svn: 82516
* simplify as daniel suggestsChris Lattner2009-09-201-16/+9
| | | | llvm-svn: 82415
* move a couple non-trivial methods out of line, add new Chris Lattner2009-09-201-0/+71
| | | | | | find_first_of/find_first_of methods. llvm-svn: 82347
* add some more overloads of StringRef::getAsInteger forChris Lattner2009-09-191-0/+45
| | | | | | common and useful integer types. llvm-svn: 82338
* provide a "strtoull" operation that works on StringRef's.Chris Lattner2009-09-191-0/+63
| | | | llvm-svn: 82322
* Add StringRef::{rfind, rsplit}Daniel Dunbar2009-09-161-0/+13
llvm-svn: 82087
OpenPOWER on IntegriCloud