| 595 | } |
| 596 | |
| 597 | bool SmallStringBase::starts_with(const char* str, bool case_sensitive) const |
| 598 | { |
| 599 | const u32 other_length = static_cast<u32>(std::strlen(str)); |
| 600 | if (other_length > m_length) |
| 601 | return false; |
| 602 | |
| 603 | return (case_sensitive) ? (std::strncmp(str, m_buffer, other_length) == 0) : |
| 604 | (CASE_N_COMPARE(str, m_buffer, other_length) == 0); |
| 605 | } |
| 606 | |
| 607 | bool SmallStringBase::starts_with(const SmallStringBase& str, bool case_sensitive) const |
| 608 | { |