This commit is contained in:
Бранимир Караџић
2023-05-04 20:23:06 -07:00
parent d403162701
commit 6c7ddeb2a3
3 changed files with 11 additions and 5 deletions

View File

@@ -304,6 +304,11 @@ namespace bx
return m_line;
}
inline int32_t strLen(const StringView& _str, int32_t _max)
{
return min(_str.getLength(), _max);
}
inline bool hasPrefix(const StringView& _str, const StringView& _prefix)
{
const int32_t len = _prefix.getLength();