| 720 | } |
| 721 | |
| 722 | u32 SmallStringBase::count(char ch) const |
| 723 | { |
| 724 | const char* ptr = m_buffer; |
| 725 | const char* end = ptr + m_length; |
| 726 | u32 count = 0; |
| 727 | while (ptr != end) |
| 728 | count += static_cast<u32>(*(ptr++) == ch); |
| 729 | return count; |
| 730 | } |
| 731 | |
| 732 | void SmallStringBase::resize(u32 new_size, char fill, bool shrink_if_smaller) |
| 733 | { |
no outgoing calls
no test coverage detected