Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
core.sys.posix.string
D header file for POSIX's .
Note
- The
header shall define NULL and size_t as described in . However, D has builtin null and size_t is defined in object.
License:
Authors:
Mathias 'Geod24' Lang
Standards:
The Open Group Base Specifications Issue 7, 2018 edition
Source core/sys/posix/string.d
- public import core.sys.posix.locale :
locale_t
; - Exposes locale_t as defined in
core.sys.posix.locale
(<locale.h>) - public import
core.stdc.string
; - Exposes the C99 functionsC extensions and XSI extensions are missing
- pure nothrow @nogc void*
memccpy
(return scope void*dst
, scope const void*src
, intc
, size_tn
); - Copy string until character found
- 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_tlen
); - Copy string (including terminating '\0')
- nothrow @nogc int
strcoll_l
(scope const char*s1
, scope const char*s2
, locale_tlocale
); - Compare strings according to current collation
- nothrow @nogc char*
strerror_l
(int, locale_t); - pure nothrow @nogc size_t
strnlen
(scope const char*str
, size_tmaxlen
); - Find length of string up to
maxlen
- nothrow @nogc const(char)*
strsignal
(int); - System signal messages
- pure nothrow @nogc char*
strtok_r
(return scope char*str
, scope const char*sep
, char**context
); - Isolate sequential tokens in a null-terminated string
- nothrow @nogc size_t
strxfrm_l
(char*s1
, scope const char*s2
, size_tn
, locale_tlocale
); - Transform a string under locale
Copyright © 1999-2024 by the D Language Foundation | Page generated by
Ddoc on (no date time)