util/WStringAPI: add wcscoll() wrapper

This commit is contained in:
Max Kellermann
2018-09-06 19:39:28 +02:00
parent 349d8eb248
commit c2e2e5543e
2 changed files with 8 additions and 1 deletions

View File

@@ -168,6 +168,13 @@ StringIsEqualIgnoreCase(const wchar_t *a, const wchar_t *b,
#endif
gcc_pure gcc_nonnull_all
static inline int
StringCollate(const wchar_t *a, const wchar_t *b) noexcept
{
return wcscoll(a, b);
}
gcc_malloc gcc_returns_nonnull gcc_nonnull_all
static inline wchar_t *
DuplicateString(const wchar_t *p) noexcept