History log of /external/llvm/unittests/ADT/StringRefTest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/unittests/ADT/StringRefTest.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/unittests/ADT/StringRefTest.cpp
f34c3ca3046378bdb7e49b7366bafca0e0bafb9a 30-Oct-2013 Rui Ueyama <ruiu@google.com> Add {start,end}with_lower methods to StringRef.

startswith_lower is ocassionally useful and I think worth adding.
endwith_lower is added for completeness.

Differential Revision: http://llvm-reviews.chandlerc.com/D2041

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
bc850d0c6c8d0e5ed4a2cdc502603a9d2946908e 28-Oct-2013 Rui Ueyama <ruiu@google.com> Add a few tests for StringRef::{start,end}with.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
f57a80f4942dafdb56e854d42af83abaf949ff9d 03-Sep-2013 Joerg Sonnenberger <joerg@bec.de> Add a Python-like join function to merge a list of strings with a
separator between each two elements.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
5a88dda4be791426ab4d20a6a6c9c65d66614a27 04-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Sort the #include lines for unittest/...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169250 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
436eaa88fda780e135405c9fc9dc9cac892eb9d8 03-Oct-2012 Nick Kledzik <kledzik@apple.com> Use unsigned long long instead of uin64_t for OS where that matters.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165147 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
e25de4ae04db1d773b1caaa83dc7e301b22d5143 03-Oct-2012 Benjamin Kramer <benny.kra@googlemail.com> Don't call getAsUnsignedInteger directly, it fails to compile if uint64_t is not "unsigned long long".

while there add more test cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165140 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
7a0f86fa7822ae02d9d4f8f992d854a4bcc2a8bd 03-Oct-2012 Nick Kledzik <kledzik@apple.com> Add getAsUnsignedInteger test case that checks that known bad values are rejected

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165136 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
b0940b46edbbe9d3f62d7f6f70330fd87f3507e1 12-May-2012 Michael J. Spencer <bigcheesegs@gmail.com> [Support/StringRef] Add find_last_not_of and {r,l,}trim.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156652 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
dbb4b2fb5eaa9ea99da620a7df764da0b73323d6 11-Mar-2012 Michael J. Spencer <bigcheesegs@gmail.com> Fix warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152522 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
9130b42a85998238b7bbe25ed2989e0605f636f0 11-Mar-2012 Michael J. Spencer <bigcheesegs@gmail.com> Make StringRef::getAsInteger work with all integer types. Before this change
it would fail with {,u}int64_t on x86-64 Linux.

This also removes code duplication.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
528f0bbe19553dfadedca040df13a389daa7593d 04-Mar-2012 Chandler Carruth <chandlerc@gmail.com> Add generic support for hashing StringRef objects using the new hashing library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152003 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
6e6a558ebce556476d8fd659b419a2760f2ab154 15-Oct-2011 Benjamin Kramer <benny.kra@googlemail.com> Add a bad char heuristic to StringRef::find.

Based on Horspool's simplified version of Boyer-Moore. We use a constant-sized table of
uint8_ts to keep cache thrashing low, needles bigger than 255 bytes are uncommon anyways.

The worst case is still O(n*m) but we do a lot better on the average case now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
7850dd0f25ccc5da6df54999a907e1277ed055d6 30-Sep-2011 Jakob Stoklund Olesen <stoklund@2pi.dk> Fix a bug in compare_numeric().

Thanks to Alexandru Dura and Jonas Paulsson for finding it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140859 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
6cf081cbe5963d6e1b12b0ac1268538a38acd0f1 28-Apr-2011 Lenny Maiorani <lenny@colorado.edu> 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130430 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
437ef0cfb74102208d6e96ff7e7f1204835e66f3 15-Apr-2011 Lenny Maiorani <lenny@colorado.edu> Implements StringRef::compare with bounds. It is behaves similarly to strncmp(). Unit tests also included.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129582 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
b3371cdf5e6f8a9286a56fb94d70278be6f64276 27-Jan-2011 Chris Lattner <sabre@nondot.org> Don't infinitely recurse! Patch by Marius Wachtler!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
837bccd052ea930915173fc83e733c7d8187002d 26-Aug-2010 Benjamin Kramer <benny.kra@googlemail.com> StringRef::compare_numeric also differed from StringRef::compare for characters > 127.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112189 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
0043e35b8261af607d6cf0695b79b1d6584e67ac 26-Aug-2010 Benjamin Kramer <benny.kra@googlemail.com> Do unsigned char comparisons in StringRef::compare_lower to be more consistent with compare in corner cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112185 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
160a3bf74d1a2b048f65e2162d038ed96eddde01 26-May-2010 Jakob Stoklund Olesen <stoklund@2pi.dk> Add StringRef::compare_numeric and use it to sort TableGen register records.

This means that our Registers are now ordered R7, R8, R9, R10, R12, ...
Not R1, R10, R11, R12, R2, R3, ...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104745 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
4760467ff2c5e9d03d469cee2f14c6e68b096d65 31-Dec-2009 Benjamin Kramer <benny.kra@googlemail.com> Silence compiler warning.

warning: comparison between signed and unsigned integer expressions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92359 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
7e54d5b1562f085c898bf8fcc4ac939ec893444c 31-Dec-2009 Douglas Gregor <dgregor@apple.com> Document the edit-distance algorithm used in StringRef, switch it over
to SmallVector, and add a unit test.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92340 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
c883ad2dd8d4861f6c2cbc89f079152a159778c8 24-Dec-2009 Douglas Gregor <dgregor@apple.com> Move the two definitions of operator<< into namespace llvm, so they
will be found by argument-dependent lookup. As with the previous
commit, GCC is allowing ill-formed code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92146 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
d5b1f8a8426e82990dafc6e3336fefc6635c8fa4 21-Dec-2009 Eli Friedman <eli.friedman@gmail.com> Change StringRef::startswith and StringRef::endswith to versions which are a
bit more verbose, but optimize to much shorter code.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
49123250ae32a17f397b332871b715a66cc26d69 19-Nov-2009 Benjamin Kramer <benny.kra@googlemail.com> Reenable Split2 StringRef test with Apple gcc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89357 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
0d753ec30efbb3e738870bdef7ed8a6b81ac9978 17-Nov-2009 Daniel Dunbar <daniel@zuster.org> "XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it.
- I plan on fixing/workarounding this, but until then I'd like the bots to stay
green.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89077 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
20fd4ec8c5cd3a3ec1f3258458a8899c4896ece2 13-Nov-2009 Rafael Espindola <rafael.espindola@gmail.com> Distinguish "a," from "a". The first one splits into "a" + "" and the second one into
"a" + 0.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87084 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
c78c0c99a0fe1703ae72fc51e440aaa8e4e19e91 13-Nov-2009 Rafael Espindola <rafael.espindola@gmail.com> Switch to smallvector. Also fix issue with using unsigend for MaxSplit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87068 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
5ccac247263ab62975f3b72421fc783f10ccf5f6 13-Nov-2009 Rafael Espindola <rafael.espindola@gmail.com> Add a new split method to StringRef that puts the substrings in a vector.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
64066bd8b593082f622bbc25716938a453363d2f 11-Nov-2009 Daniel Dunbar <daniel@zuster.org> Add From arguments to StringRef search functions, and tweak doxyments.

Also, add unittests for find_first_of and find_first_not_of.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86770 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
e65512809a4144c17538aac4cc59fac6d325a7e4 17-Sep-2009 Daniel Dunbar <daniel@zuster.org> Add StringRef::{rfind, rsplit}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82087 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
323a3e653340781bad4c4c3245d9b25d5ab02685 18-Aug-2009 Daniel Dunbar <daniel@zuster.org> Fix pasto in StringRef::count(char)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79356 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
5caba3bcb14fae4b36924463ed2bcf3846f029a9 18-Aug-2009 Daniel Dunbar <daniel@zuster.org> Add StringRef::count({char,StringRef})


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79354 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
0ad7f9bb2f806387e53ffeaf6a564b9a80b962af 11-Aug-2009 Daniel Dunbar <daniel@zuster.org> StringRef: Add find(char) and find(StringRef).

Also, regroup functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78712 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
d61918fc6898a89df8b0a03e068f234ded010cdf 26-Jul-2009 Daniel Dunbar <daniel@zuster.org> Add StringRef::{slice, split}, two convenient string operations which are simple
and efficient on a StringRef.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77117 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
dbe77cfa0bcae10d91fbdbf118a97ec212afc88e 22-Jul-2009 Daniel Dunbar <daniel@zuster.org> Support writing a StringRef to a raw_ostream directly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76754 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
f5fdf73238dfd923f33bcbbd397cff6752d9c41e 21-Jul-2009 Daniel Dunbar <daniel@zuster.org> Add StringRef::{substr, startswith}.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp
4cf95d75c65f37677d306952b0d2306bc6d20b1f 21-Jul-2009 Daniel Dunbar <daniel@zuster.org> Add StringRef class, with fixes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76543 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/StringRefTest.cpp