Util/CharUtil: add wchar_t overloads

Needed for WStringView.
This commit is contained in:
Max Kellermann
2017-09-12 18:22:02 +02:00
parent 01f84b0e53
commit 9744f437d8
4 changed files with 145 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2011-2014 Max Kellermann <max.kellermann@gmail.com>
* Copyright (C) 2011-2017 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,6 +30,10 @@
#ifndef CHAR_UTIL_HXX
#define CHAR_UTIL_HXX
#ifdef _UNICODE
#include "WCharUtil.hxx"
#endif
constexpr
static inline bool
IsASCII(const unsigned char ch)