Rewrite ByteVector::replace() to run in O(n) time.

This commit is contained in:
Tsuda Kageyu
2016-12-02 16:31:27 +09:00
parent b00a5c1aab
commit 36ccad2bd4
2 changed files with 46 additions and 32 deletions

View File

@ -313,6 +313,7 @@ public:
CPPUNIT_ASSERT_EQUAL(ByteVector("abcdaba"), a);
}
}
void testReplaceAndDetach()
{
{