Must return -1 if a < b 0 if a == b 1 if a > b
Semantic function to check that a D string implicitely conveys a termination byte after the slice. (typically those comes from string literals or stringDup/stringIDup)
Inserts a breakpoint instruction. useful to trigger the debugger.
Destroys and frees a class object created with mallocEmplace.
Destroys and frees an interface object created with mallocEmplace.
Destroys and frees a non-class object created with mallocEmplace.
Frees a slice allocated with mallocSlice.
Duplicates a slice with malloc. Equivalent to .dup Has to be cleaned-up with free().
Allocates and construct a struct or class object. Returns: Newly allocated object.
Duplicates a slice with malloc. Equivalent to .idup Has to be cleaned-up with free().
Allocates and construct a struct or class object. Returns: Newly allocated object.
Allocates a slice with malloc.
Allocates a slice with malloc, but does not initialize the content.
Stable merge sort, using a temporary array. Array A[] has the items to sort. Array B[] is a work array. grailSort is approx. 30% slower but doesn't need a scratchBuffer.
@nogc quicksort From the excellent: http://codereview.stackexchange.com/a/77788
Duplicates a zero-terminated string with malloc, return a char[]. Equivalent to .dup Has to be cleaned-up with free(). Note: The zero-terminating byte is preserved. This allow to have a string which also can be converted to a C string with .ptr. However the zero byte is not included in slice length.
Duplicates a zero-terminated string with malloc, return a string. Equivalent to .idup Has to be cleaned-up with free(). Note: The zero-terminating byte is preserved. This allow to have a string which also can be converted to a C string with .ptr. However the zero byte is not included in slice length.
To call for something that should never happen, but we still want to make a "best effort" at runtime even if it can be meaningless. MAYDO: change that name, it's not actually unrecoverable MAYDO: stop using that function
A bit faster than a dynamic cast. This is to avoid TypeInfo look-up.
Zero-terminated C string, to replace toStringz and toUTF16z
Various @nogc alternatives. This file includes parts of std.process, std.random, std.uuid.