a22ac0f07e
Same issue as with FindEntry: using ZipString in the API forces all callers to make sure they don't hit the ZipString length limits. Switch to std::string_view and uniformly use the empty string as a way to signal no prefix/suffix rather than nullptr. Also use default arguments to make the common case of no prefix and no suffix more convenient. Also just use std::string to increase the lifetime of the provided prefix/suffix rather than manual memory management. Bug: http://b/129068177 Test: treehugger Change-Id: I6675e39ce62fadd766386d77d27423013c17d6f7 |
||
---|---|---|
.. | ||
include/ziparchive | ||
testdata | ||
.clang-format | ||
Android.bp | ||
OWNERS | ||
entry_name_utils-inl.h | ||
entry_name_utils_test.cc | ||
unzip.cpp | ||
zip_archive.cc | ||
zip_archive_benchmark.cpp | ||
zip_archive_common.h | ||
zip_archive_private.h | ||
zip_archive_stream_entry.cc | ||
zip_archive_test.cc | ||
zip_writer.cc | ||
zip_writer_test.cc |