mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-06 10:01:56 +01:00
Report benchmark durations in natural units
(and extended StringRef to be able to report utf8 char lengths
This commit is contained in:
@@ -64,6 +64,9 @@ namespace Catch {
|
||||
auto String::size() const noexcept -> size_type {
|
||||
return m_data->size;
|
||||
}
|
||||
auto String::numberOfCharacters() const noexcept -> size_type {
|
||||
return StringRef( *this ).numberOfCharacters();
|
||||
}
|
||||
auto String::c_str() const noexcept -> char const* {
|
||||
return m_data->chars;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user