"Fossies" - the Fresh Open Source Software Archive

Member "dmd2/src/druntime/src/core/sys/darwin/string.d" (20 Nov 2020, 766 Bytes) of package /linux/misc/dmd.2.094.2.linux.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) D source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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 const void* haystack, size_t haystacklen, scope const void* needle, size_t needlelen);
   31 }