summaryrefslogtreecommitdiff
path: root/libphobos/libdruntime/core/sys/darwin/string.d
blob: bd65fde27bcb76c58ae108df2b94b420e475c231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
  * D header file for Darwin string.
  *
  * Copyright: Copyright © 2019, The D Language Foundation
  * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
  * Authors: Ernesto Castellotti
  */
module core.sys.darwin.string;

public import core.stdc.string;
import core.sys.darwin.sys.cdefs;

version (OSX)
    version = Darwin;
else version (iOS)
    version = Darwin;
else version (TVOS)
    version = Darwin;
else version (WatchOS)
    version = Darwin;

version (Darwin):
extern (C):
nothrow:
@nogc:

static if (__DARWIN_C_LEVEL >= __DARWIN_C_FULL)
{
    // ^ __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
    pure void* memmem(return const void* haystack, size_t haystacklen, scope const void* needle, size_t needlelen);
}