英語版
このページの英語版を見る

core.sys.posix.string

POSIXの

注釈:

  • ヘッダーは、 に記述されているように NULL と size_t を定義しなければならない。 ただし、Dはビルトインnull を持ち、size_tobject で定義されている。

Authors:
Mathias 'Geod24' Lang
Standards:
オープングループ基本仕様書 第7号 2018年版
public import core.sys.posix.locale : locale_t;
で定義されているlocale_t を公開する。 core.sys.posix.locale(<locale.h>)
public import core.stdc.string;
C99関数を公開する。
Cの拡張機能とXSIの拡張機能がない
pure nothrow @nogc void* memccpy(return scope void* dst, scope const void* src, int c, size_t n);
文字が見つかるまで文字列をコピーする
pure nothrow @nogc char* stpcpy(return scope char* dst, scope const char* src);

pure nothrow @nogc char* stpncpy(return scope char* dst, const char* src, size_t len);
文字列をコピーする(終端'˶0'を含む)
nothrow @nogc int strcoll_l(scope const char* s1, scope const char* s2, locale_t locale);
現在の照合順序に従って文字列を比較する
nothrow @nogc char* strerror_l(int, locale_t);
pure nothrow @nogc size_t strnlen(scope const char* str, size_t maxlen);
文字列の長さを調べる maxlen
nothrow @nogc const(char)* strsignal(int);
システムのシグナルメッセージ
pure nothrow @nogc char* strtok_r(return scope char* str, scope const char* sep, char** context);
ヌル終端文字列内の連続するトークンを分離する
nothrow @nogc size_t strxfrm_l(char* s1, scope const char* s2, size_t n, locale_t locale);
ロケール下で文字列を変換する