summaryrefslogtreecommitdiff
path: root/test/libapt/stringview_test.cc
AgeCommit message (Collapse)AuthorFilesLines
2016-08-12tests: don't do boundless string compares with data()David Kalnischkies1-9/+11
Git-Dch: Ignore
2016-01-15string_view: Drop constexpr constructor for standard compatibilityJulian Andres Klode1-8/+8
APT::StringView is supposed to be a temporary measure, until support for the standardized string_view is widely available. Introducing additional unstandardized features just makes porting to the standard version harder. The constexpr constructor also won't have any real effect on most systems, as the compiler will happily optimise the strlen() call away for constant strings. Gbp-Dch: ignore
2016-01-15provide a constexpr char[] overload for APT::StringViewDavid Kalnischkies1-0/+88
The commit also adds a few trivial tests Git-Dch: Ignore