Description:
The ttlib::cstr and ttlib::cview class both have a contains() method that defaults to case-sensitive. That means it is effectively identical to the new C++20 method. The rest of the method is still valuable since it supports both case-insensitive and a utf8 comparison, but the primary declaration should be conditionalized to use the std:: version for case-sensitive comparisons.
Description:
The
ttlib::cstrandttlib::cviewclass both have acontains()method that defaults to case-sensitive. That means it is effectively identical to the new C++20 method. The rest of the method is still valuable since it supports both case-insensitive and a utf8 comparison, but the primary declaration should be conditionalized to use the std:: version for case-sensitive comparisons.