| 1 |
/** |
| 2 |
* D header file for Darwin string. |
| 3 |
* |
| 4 |
* Copyright: Copyright © 2019, The D Language Foundation |
| 5 |
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. |
| 6 |
* Authors: Ernesto Castellotti |
| 7 |
*/ |
| 8 |
module core.sys.darwin.string; |
| 9 |
|
| 10 |
public import core.stdc.string; |
| 11 |
import core.sys.darwin.sys.cdefs; |
| 12 |
|
| 13 |
version (OSX) |
| 14 |
version = Darwin; |
| 15 |
else version (iOS) |
| 16 |
version = Darwin; |
| 17 |
else version (TVOS) |
| 18 |
version = Darwin; |
| 19 |
else version (WatchOS) |
| 20 |
version = Darwin; |
| 21 |
|
| 22 |
version (Darwin): |
| 23 |
extern (C): |
| 24 |
nothrow: |
| 25 |
@nogc: |
| 26 |
|
| 27 |
static if (__DARWIN_C_LEVEL >= __DARWIN_C_FULL) |
| 28 |
{ |
| 29 |
// ^ __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); |
| 30 |
pure void* memmem(return scope const void* haystack, size_t haystacklen, scope const void* needle, size_t needlelen); |
| 31 |
} |