Core/StringExt: Replace ptr + size by a view in IterateOnCodepoints parameter

Also increase buffer size to increase performance
This commit is contained in:
SirLynix
2024-01-22 17:02:26 +01:00
parent 8dab084037
commit 639f6708b0
5 changed files with 12 additions and 17 deletions

View File

@@ -35,7 +35,7 @@ namespace Nz
inline bool IsNumber(std::string_view str);
NAZARA_CORE_API void IterateOnCodepoints(std::string_view str, FunctionRef<bool(const char32_t* characters, std::size_t characterCount)> callback);
NAZARA_CORE_API void IterateOnCodepoints(std::string_view str, FunctionRef<bool(std::u32string_view characters)> callback);
NAZARA_CORE_API bool MatchPattern(std::string_view str, std::string_view pattern);