From 18099ad8f5c24b1c2b1c92238dbc54912eab0406 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 2 Jan 2022 18:49:31 +0800 Subject: ... --- src/common/StringUtil.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/StringUtil.cpp') diff --git a/src/common/StringUtil.cpp b/src/common/StringUtil.cpp index c828fa21..d3948c6a 100644 --- a/src/common/StringUtil.cpp +++ b/src/common/StringUtil.cpp @@ -252,4 +252,8 @@ char16_t ToUpper(char16_t c) { } return c; } + +char16_t IsWhitespace(char16_t c) { + return c == u' ' || c == u'\t' || c == u'\n' || c == u'\r'; +} } // namespace cru -- cgit v1.2.3