Sprout/sprout/cwchar/wcsstr.hpp

32 lines
947 B
C++
Raw Normal View History

2013-08-08 18:54:33 +09:00
/*=============================================================================
Copyright (c) 2011-2013 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_CWCHAR_WCSSTR_HPP
#define SPROUT_CWCHAR_WCSSTR_HPP
#include <sprout/config.hpp>
2013-01-13 01:16:48 +09:00
#include <sprout/cstring/strstr.hpp>
namespace sprout {
2013-01-13 01:16:48 +09:00
//
// wcsstr
//
// recursion depth:
// O(log(N1+N2))
//
2012-10-06 00:58:56 +09:00
inline SPROUT_CONSTEXPR wchar_t const*
wcsstr(wchar_t const* s1, wchar_t const* s2) {
2013-01-13 01:16:48 +09:00
return sprout::strstr(s1, s2);
}
2012-10-06 00:58:56 +09:00
inline SPROUT_CONSTEXPR wchar_t*
wcsstr(wchar_t* s1, wchar_t const* s2) {
2013-01-13 01:16:48 +09:00
return sprout::strstr(s1, s2);
}
} // namespace sprout
#endif // #ifndef SPROUT_CWCHAR_WCSSTR_HPP