Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.110.0

overview

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 usinga local clone.

Phobos Runtime Library

Phobos is the standard runtime library that comes with the D languagecompiler.

Generally, thestd namespace is used for the main modules in thePhobos standard library. Theetc namespace is used for external C/C++library bindings. Thecore namespace is used for low-level D runtimefunctions.

The following table is a quick reference guide for which Phobos modules touse for a given category of functionality. Note that some modules may appear inmore than one category, as some Phobos modules are quite generic and can beapplied in a variety of situations.

ModulesDescription
    Algorithms & ranges
std.algorithm
std.range
std.range.primitives
std.range.interfaces
Generic algorithms that work withranges of any type, including strings, arrays, and other kinds of sequentially-accessed data. Algorithms include searching, comparison, iteration, sorting, set operations, and mutation.
    Array manipulation
std.array
std.algorithm
Convenient operations commonly used with built-in arrays. Note that many common array operations are subsets of more generic algorithms that work with arbitrary ranges, so they are found instd.algorithm.
    Containers
std.container.array
std.container.binaryheap
std.container.dlist
std.container.rbtree
std.container.slist
Seestd.container.* for an overview.
    Data formats
std.base64Encoding / decoding Base64 format.
std.csvRead Comma Separated Values and its variants from an input range ofdchar.
std.jsonRead/write data in JSON format.
std.zipRead/write data in the ZIP archive format.
std.zlibCompress/decompress data using the zlib library.
    Data integrity
std.checkedintChecked integral types.
std.digestCompute digests such as md5, sha1 and crc32.
std.digest.crcCyclic Redundancy Check (32-bit) implementation.
std.digest.hmacCompute HMAC digests of arbitrary data.
std.digest.mdCompute MD5 hash of arbitrary data.
std.digest.murmurhashCompute MurmurHash of arbitrary data.
std.digest.ripemdCompute RIPEMD-160 hash of arbitrary data.
std.digest.shaCompute SHA1 and SHA2 hashes of arbitrary data.
    Date & time
std.datetimeProvides convenient access to date and time representations.
core.timeImplements low-level time primitives.
    Exception handling
std.exceptionImplements routines related to exceptions.
core.exceptionDefines built-in exception types and low-level language hooks required by the compiler.
    External library bindings
etc.c.curlInterface to libcurl C library.
etc.c.odbc.sqlInterface to ODBC C library.
etc.c.odbc.sqlext
etc.c.odbc.sqltypes
etc.c.odbc.sqlucode
etc.c.sqlite3Interface to SQLite C library.
etc.c.zlibInterface to zlib C library.
    I/O & File system
std.fileManipulate files and directories.
std.pathManipulate strings that represent filesystem paths.
std.stdioPerform buffered I/O.
    Interoperability
core.stdc.complex
core.stdc.ctype
core.stdc.errno
core.stdc.fenv
core.stdc.float_
core.stdc.inttypes
core.stdc.limits
core.stdc.locale
core.stdc.math
core.stdc.signal
core.stdc.stdarg
core.stdc.stddef
core.stdc.stdint
core.stdc.stdio
core.stdc.stdlib
core.stdc.string
core.stdc.tgmath
core.stdc.time
core.stdc.wchar_
core.stdc.wctype
D bindings for standard C headers.

These are mostly undocumented, as documentation for the functions these declarations provide bindings to can be found on external resources.
    Memory management
core.memoryControl the built-in garbage collector.
std.typeconsBuild scoped variables and reference-counted types.
    Metaprogramming
core.attributeDefinitions of special attributes recognized by the compiler.
core.demangleConvertmangled D symbol identifiers to source representation.
std.demangleA simple wrapper around core.demangle.
std.metaConstruct and manipulate template argument lists (aka type lists).
std.traitsExtract information about types and symbols at compile time.
std.typeconsConstruct new, useful general purpose types.
    Multitasking
std.concurrencyLow level messaging API for threads.
std.parallelismHigh level primitives for SMP parallelism.
std.processStarting and manipulating processes.
core.atomicBasic support for lock-free concurrent programming.
core.sync.barrierSynchronize the progress of a group of threads.
core.sync.conditionSynchronized condition checking.
core.sync.exceptionBase class for synchronization exceptions.
core.sync.mutexMutex for mutually exclusive access.
core.sync.rwmutexShared read access and mutually exclusive write access.
core.sync.semaphoreGeneral use synchronization semaphore.
core.threadThread creation and management.
    Networking
std.socketSocket primitives.
std.net.curlNetworking client functionality as provided by libcurl.
std.net.isemailValidates an email address according to RFCs 5321, 5322 and others.
std.uriEncode and decode Uniform Resource Identifiers (URIs).
std.uuidUniversally-unique identifiers for resources in distributed systems.
    Numeric
std.bigintAn arbitrary-precision integer type.
std.complexA complex number type.
std.mathElementary mathematical functions (powers, roots, trigonometry).
std.mathspecialFamilies of transcendental functions.
std.numericFloating point numerics functions.
std.randomPseudo-random number generators.
core.checkedintRange-checking integral arithmetic primitives.
core.mathBuilt-in mathematical intrinsics.
    Paradigms
std.functionalFunctions that manipulate other functions.
std.algorithmGeneric algorithms for processing sequences.
std.signalsSignal-and-slots framework for event-driven programming.
    Runtime utilities
objectCore language definitions. Automatically imported.
std.getoptParsing of command-line arguments.
std.compilerHost compiler vendor string and language version.
std.systemRuntime environment, such as OS type and endianness.
core.cpuidCapabilities of the CPU the program is running on.
core.memoryControl the built-in garbage collector.
core.runtimeControl and configure the D runtime.
    String manipulation
std.stringAlgorithms that work specifically with strings.
std.arrayManipulate builtin arrays.
std.algorithmGeneric algorithms for processing sequences.
std.uniFundamental Unicode algorithms and data structures.
std.utfEncode and decode UTF-8, UTF-16 and UTF-32 strings.
std.formatFormat data into strings.
std.pathManipulate strings that represent filesystem paths.
std.regexRegular expressions.
std.asciiRoutines specific to the ASCII subset of Unicode.
std.encodingHandle and transcode between various text encodings.
std.windows.charsetWindows specific character set support.
std.outbufferSerialize data toubyte arrays.
    Type manipulations
std.convConvert types from one type to another.
std.typeconsType constructors for scoped variables, ref counted types, etc.
std.bitmanipHigh level bit level manipulation, bit arrays, bit fields.
std.variantDynamically-typed variable that can hold a value of any type.
core.bitopLow level bit manipulation.
std.sumtypeType-safe discriminated union.
    Vector programming
core.simdSIMD intrinsics
    Logging
std.logger
std.logger.core
std.logger.filelogger
std.logger.multilogger
std.logger.nulllogger
Logging.
Copyright © 1999-2025 by theD Language Foundation | Page generated byDdoc on Tue Mar 25 10:30:32 2025

[8]ページ先頭

©2009-2025 Movatter.jp