line |
true |
false |
branch |
96
|
0 |
7 |
if (pos > _length) throw std::out_of_range("basic_string_view::substr"); |
|
0 |
0 |
if (pos > _length) throw std::out_of_range("basic_string_view::substr"); |
97
|
0 |
7 |
if (count > _length - pos) count = _length - pos; |
190
|
47 |
10 |
for (const CharT* ptr = _str + ((pos >= _length - count) ? (_length - count) : pos); ptr >= _str; --ptr) |
191
|
7 |
40 |
if (traits_type::compare(ptr, s, count) == 0) return ptr - _str; |
318
|
96 |
3 |
if (!r) r = (len1 < len2) ? -1 : (len1 > len2 ? 1 : 0); |
|
96 |
0 |
if (!r) r = (len1 < len2) ? -1 : (len1 > len2 ? 1 : 0); |
|
0 |
96 |
if (!r) r = (len1 < len2) ? -1 : (len1 > len2 ? 1 : 0); |
328
|
99 |
0 |
template inline bool operator== (basic_string_view lhs, const C* rhs) { return lhs.compare(rhs) == 0; } |