mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add <cstring> and <cwchar> compatible constexpr functions
This commit is contained in:
parent
fe255a5e74
commit
b04dea6002
26 changed files with 526 additions and 103 deletions
24
sprout/cwchar/wcscat.hpp
Normal file
24
sprout/cwchar/wcscat.hpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*=============================================================================
|
||||
Copyright (c) 2011-2014 Bolero MURAKAMI
|
||||
https://github.com/bolero-MURAKAMI/Sprout
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef SPROUT_CSTRING_WCSCAT_HPP
|
||||
#define SPROUT_CSTRING_WCSCAT_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/cstring/strcat.hpp>
|
||||
|
||||
namespace sprout {
|
||||
|
||||
// 7.24.4.3.1 The wcscat function
|
||||
//
|
||||
inline SPROUT_CXX14_CONSTEXPR wchar_t*
|
||||
wcscat(wchar_t* s1, wchar_t const* s2) {
|
||||
return sprout::strcat(s1, s2);
|
||||
}
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_CSTRING_WCSCAT_HPP
|
Loading…
Add table
Add a link
Reference in a new issue