isSome member depends on T.
If T is a value, then isSome is a field. If T is a pointer, then isSome is a property. The default value is an empty value.
The types module provides basic type definitions, compile-time functions and ASCII string helpers.
The type of compile time alias arguments.
The result of sizeof.
The result of pointer math.
A string slice of chars.
A string slice of wchars.
A string slice of dchars.
A string slice of constant chars.
A string slice of constant wchars.
A string slice of constant dchars.
A C string of chars.
A C string of wchars.
A C string of dchars.
A C string of constant chars.
A C string of constant wchars.
A C string of constant dchars.
The common union type of a tagged union.
The type of a generation.
A type representing error values.
A marker for types that support "no data" things. The Rust Result type is a good example of working with types like this.
A value paired with its iteration index.
A slice using a foreign memory layout. It can be used to interface with languages that define slices differently.
void opAssign(T[] slice)Copies the given D slice.A static bit set.
T bitscast(T) 0 zeroTyped zero constant.cast(T) 1 oneTyped one constant.cast(Sz) (bits.sizeof * 8) capacityThe capacity of the bit set.auto activeBits()Returns a range over the indices of all set bits.int findLowestActiveBit()Returns the index of the lowest active bit, or -1 if no bits are set.int findHighestActiveBit()Returns the index of the highest active bit, or -1 if no bits are set.bool any()Returns true if any bit is set.bool none()Returns true if no bit is set.bool all()Returns true if all bits are set.void fill()Sets all bits.void clear()Clears all bits.void opIndexAssign(const(bool) rhs, Sz i)Sets the value of a bit.The common bit set data type.
The common bit set type.
Represents an optional value with an error code. Errors are referred to as faults in Joka. The default value is an empty value.
T xx()Returns the value without checking if it exists.T get()Returns the value, or asserts if a fault exists.T getOr(T other)Returns the value. Returns a default value when there is a fault.T getOr()Returns the value. Returns a default value when there is a fault.void clear()Clears the value, making it none.Represents an optional value. Prefer using Maybe in most cases.
isSome member depends on T.
If T is a value, then isSome is a field. If T is a pointer, then isSome is a property. The default value is an empty value.
is(T : const(void) *) isPtrTrue if `T` is a pointer.T datavoid opAssign(in const(T) rhs)Creates a value.T xx()Returns the value without checking if it exists.T get(ref bool trap)Returns the value and traps the `isSome` check to avoid an assert.T get()Returns the value, or asserts if it does not exists.T getOr(T other)Returns the value. Returns a default value when there is none.T getOr()Returns the value. Returns a default value when there is none.void clear()Clears the value, making it none.this(in const(T) data)Creates a value.Represents a success or error value. Prefer using Maybe in most cases.
Tag isSomeResultUnion datavoid opAssign(in const(T) rhs)void opAssign(in const(E) rhs)T xx()Returns the value without checking if it exists.T get(ref E trap)Returns the value and traps the `isSome` check to avoid an assert.T get()Returns the value, or asserts if it does not exists.T getOr(T other)Returns the value. Returns a default value when there is none.T getOr()Returns the value. Returns a default value when there is none.bool isNone() constvoid clear()A tagged union.
UnionType _typeUnionData _data/* computed */ isBaseAliasingSafeReturns true if all union members share a common first field.@trusted auto call(IStr func, AA...)(AA args)Calls the given method for the currently active type. All types must implement this method.bool isType(T)()Returns true if the given type is the same as the currently active type.Base base() refReturns the data of the first union member. Only safe to use if all union members share a common first field.T as(T)() refReturns the data of the given type. Will assert if the type is not the same as the currently active type.typeOf(T)Returns the type of the given type.Path separator style.
IStr typeName(U)(in const(U) unionValue) if (is(U : Union!A, A...))Returns the current type name of the union.ForeignSlice!(const(ubyte)) toForeignBytes(const(char)[] value) @trustedReturns an foreign slice from a D slice.ForeignSlice!(ubyte) toForeignBytesMut(char[] value) @trustedReturns an foreign slice from a D slice.IStr indexErrorMessage(Sz i) @trusted nothrow @nogcReturns an error message that can be used for array-like objects.int findInAliasArgs(T, A...)()Returns the index of an item inside the given alias arguments or -1 on error.IStr fmtIntoBufferWithStrs(Str buffer, IStr fmtStr, IStr[] args...) @trusted nothrow @nogcFormats the given string by replacing `{}` placeholders with argument values in order. Options within placeholders are not supported. For custom formatting use a wrapper type with a `toStr` method....IStr fmtIntoBuffer(A...)(Str buffer, IStr fmtStr, A args) @trustedFormats the given string by replacing `{}` placeholders with argument values in order. Options within placeholders are not supported. For custom formatting use a wrapper type with a `toStr` method....IStr fmtIntoBuffer(A...)(Str buffer, InterpolationHeader header, A args, InterpolationFooter footer)IStr fmt(A...)(IStr fmtStr, A args) @trustedFormats into an internal static ring buffer and returns the slice. The slice is temporary and may be overwritten by later calls to `fmt`. For details on formatting, see the `fmtIntoBuffer` function.IStr fmt(A...)(InterpolationHeader header, A args, InterpolationFooter footer)IStr fmtSignedGroup(IStr[] fmtStrs, long[] args...)Formats into an internal static ring buffer and returns the slice. This function can be used for types that create a lot of template bloat. Example: GVec2, GVec3, GVec4, GRect, ...IStr fmtFloatingGroup(IStr[] fmtStrs, double[] args...)Formats into an internal static ring buffer and returns the slice. This function can be used for types that create a lot of template bloat. Example: GVec2, GVec3, GVec4, GRect, ...noreturn todo(IStr text, IStr file = __FILE__, Sz line = __LINE__)Halts the program with a TODO message indicating unimplemented code.bool isAlphaOrDigit(char c)Returns true if the character is an alphabetic letter (A-Z, a-z) or a digit (0-9).bool isVariableNameStart(char c)Returns true if the character can start a variable name (letter or underscore).bool isVariableNamePart(char c)Returns true if the character can appear in a variable name (letter, digit, or underscore).bool isVariableName(IStr str)Returns true if the string is a valid variable name (starts with a letter or underscore, followed by letters, digits, or underscores).bool equalsNoCase(IStr str, char other)Returns true if the string is equal to the specified character, ignoring case.bool startsWith(IStr str, IStr start)Returns true if the string starts with the specified substring.bool startsWith(IStr str, char start)Returns true if the string starts with the specified character.int countItem(IStr str, IStr item)Counts the number of occurrences of the specified substring in the string.int countItem(IStr str, char item)Counts the number of occurrences of the specified character in the string.int findStart(IStr str, IStr item)Finds the starting index of the first occurrence of the specified substring in the string, or returns -1 if not found.int findStart(IStr str, char item)Finds the starting index of the first occurrence of the specified character in the string, or returns -1 if not found.int findEnd(IStr str, IStr item)Finds the ending index of the first occurrence of the specified substring in the string, or returns -1 if not found.int findEnd(IStr str, char item)Finds the ending index of the first occurrence of the specified character in the string, or returns -1 if not found.int findItem(IStr[] items, IStr item)Finds the first occurrence of the specified item in the slice, or returns -1 if not found.int findItemThatStartsWith(IStr[] items, IStr start)Finds the first occurrence of the specified start in the slice, or returns -1 if not found.int findItemThatEndsWith(IStr[] items, IStr end)Finds the first occurrence of the specified end in the slice, or returns -1 if not found.IStr removePrefix(IStr str, IStr prefix)Removes the specified prefix from the beginning of the string if it exists.IStr removeSuffix(IStr str, IStr suffix)Removes the specified suffix from the end of the string if it exists.Fault copyChars(Str str, IStr source, Sz startIndex = 0) @trustedCopies characters from the source string to the destination string starting at the specified index.Fault copyStr(ref Str str, IStr source, Sz startIndex = 0)Copies characters from the source string to the destination string starting at the specified index and adjusts the length of the destination string.IStr concatIntoBuffer(Str buffer, IStr[] args...)Concatenates the strings. Writes into the buffer and returns the result.IStr[] split(IStr str, IStr sep) @trustedSplits the string using a static buffer and returns the result.bool isAbsolutePath(IStr path, PathSepStyle style = PathSepStyle.native)Returns true if the given path is absolute.StrPair pathSepStrPair(PathSepStyle style)Returns the main and alternate separators for the given style.IStr pathDirName(IStr path, PathSepStyle style = PathSepStyle.native)Returns the directory of the path, or "." if there is no directory.IStr pathBaseName(IStr path, PathSepStyle style = PathSepStyle.native)Returns the base name of the path.IStr pathTrimStart(IStr path, PathSepStyle style = PathSepStyle.native)Removes path separators from the beginning of the path.IStr pathTrimEnd(IStr path, PathSepStyle style = PathSepStyle.native)Removes path separators from the end of the path.IStr pathFmt(IStr path, PathSepStyle style = PathSepStyle.native)Formats the path to a standard form, normalizing separators.IStr pathConcat(IStr[] args...)Concatenates the paths, ensuring proper path separators between them.IStr pathConcat(PathSepStyle style, IStr[] args...)Concatenates the paths, ensuring proper path separators between them.IStr[] pathSplit(IStr str, PathSepStyle style = PathSepStyle.native) @trustedSplits the path using a static buffer and returns the result.IStr skipValue(ref inout(char)[] str, IStr sep)Skips over the next occurrence of the specified separator in the string, returning the substring before the separator and updating the input string to start after the separator.IStr skipValue(ref inout(char)[] str, char sep)Skips over the next occurrence of the specified separator in the string, returning the substring before the separator and updating the input string to start after the separator.IStr skipLine(ref inout(char)[] str)Skips over the next line in the string, returning the substring before the line break and updating the input string to start after the line break.IStr boolToStr(bool value, bool isShortName = false, bool isLower = false)Converts the boolean value to its string representation.IStr floatingToStr(double value, uint precision = 2)Converts the double value to its string representation with the specified precision.Maybe!bool toBool(IStr str, bool isFullNameOnly = false, bool isUpperOnly = false)Converts the string to a bool.kilobyte = 1024The size of one kilobyte in bytes.
megabyte = 1024 * kilobyteThe size of one megabyte in bytes.
gigabyte = 1024 * megabyteThe size of one gigabyte in bytes.
terabyte = 1024 * gigabyteThe size of one terabyte in bytes.
petabyte = 1024 * terabyteThe size of one petabyte in bytes.
exabyte = 1024 * petabyteThe size of one exabyte in bytes.
defaultAsciiFmtArgStr = "{}"The format argument symbol.
digitChars = "0123456789"The set of decimal numeric characters.
upperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"The set of uppercase letters.
lowerChars = "abcdefghijklmnopqrstuvwxyz"The set of lowercase letters.
alphaChars = upperChars ~ lowerCharsThe set of letters.
spaceChars = " \t\v\r\n\f"The set of whitespace characters.
symbolChars = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"The set of symbol characters.
hexDigitChars = "0123456789abcdefABCDEF"The set of hexadecimal numeric characters.
sp = Sep(" ")Space separator.
cm = Sep(", ")Comma + space separator.
char[defaultAsciiFmtArgBufferSize][defaultAsciiFmtArgBufferCount] _fmtIntoBufferDataBufferIStr[defaultAsciiFmtArgBufferCount] _fmtIntoBufferSliceBufferchar[defaultAsciiFmtBufferSize][defaultAsciiFmtBufferCount] _fmtBufferbyte _fmtBufferIndex