History log of /external/qemu/android/base/String_unittest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
97502faffa2e99bf717749a2d249ba3e57d7da4d 28-Apr-2014 David 'Digit' Turner <digit@google.com> Add misc android/base/ helper classes.

This patch adds a few new helper classes under android/base/ that
will be used by future patches.

- Add a 'clear' method to String class.

- Add StringFormat() function to generated String instances
from formatted string input, and StringAppendFormat() to
append some to an existing instance.

- Add ScopedFd to implement a scoped file descriptor wrapper.

- Add ScopedHandle to implement a scoped Win32 HANDLE wrapper.

Change-Id: I0ae2a1de1123586b23e4faca8f394c6b4dff622e
/external/qemu/android/base/String_unittest.cpp
d3f2c27ff9f611e5047a35cb20ed53f548214fed 19-Feb-2014 David 'Digit' Turner <digit@google.com> New C++ helper classes.

This adds a few useful C++ helper classes to android/base/
that will be used in the future by other patches.

+ Add android/base/String.h, a slightly more efficient version
of std::string.

+ Add android/base/containers/StringVector.h, an optimized
vector of strings that is much more efficient than
std::vector<std::string> and should use less memory.

+ Add android/base/containers/PodVector.h which defines
an efficient std::vector<> equivalent for POD-struct
compatible types.

+ Modify PathUtils.h to use StringVector instead of
std::vector<std::string>.

+ Modify android/utils/file_data.c to get rid of valgrind
complaints when running the unit test suite.

+ Add android/base/Limits.h to get reliable integer
limit macros in C++.

Change-Id: Id9374aec658383c29be70a798ba17867664f69d3
/external/qemu/android/base/String_unittest.cpp