more.common

Undocumented in source.

Members

Aliases

Allocator
alias Allocator = ubyte[] function(ubyte[] oldBuffer, size_t newLength, bool copy)
Undocumented in source.
CharReader
alias CharReader = size_t delegate(char[] buffer)
Undocumented in source.
DataHandler
alias DataHandler = void delegate(ubyte[] data)
Undocumented in source.
DataReader
alias DataReader = size_t delegate(ubyte[] buffer)
Undocumented in source.
Deallocator
alias Deallocator = void function(ubyte[] buffer)
Undocumented in source.
LineParser
alias LineParser = CustomLineParser!(defaultAllocator, defaultDeallocator)
Undocumented in source.
StringHandler
alias StringHandler = void delegate(string data)
Undocumented in source.
Writer
alias Writer = void delegate(const(char)[] msg) const
Undocumented in source.

Enums

BufferTooSmall
enum BufferTooSmall
Undocumented in source.

Functions

arrayRange
string arrayRange(char min, char max, string initializer)
Undocumented in source. Be warned that the author may not have intended to support it.
bigEndianSetUshort
void bigEndianSetUshort(ubyte* bytes, ushort value)
Undocumented in source. Be warned that the author may not have intended to support it.
byLine
auto byLine(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
byLine
auto byLine(CharReader reader, char[] buffer, BufferTooSmall tooSmall)
Undocumented in source. Be warned that the author may not have intended to support it.
byLines
auto byLines(File file, char[] buffer, BufferTooSmall tooSmall)
Undocumented in source. Be warned that the author may not have intended to support it.
byLines
auto byLines(CharReader reader, char[] buffer, BufferTooSmall tooSmall)
Undocumented in source. Be warned that the author may not have intended to support it.
dcpy
void dcpy(void* destination, ubyte[] source)
Undocumented in source. Be warned that the author may not have intended to support it.
dcpy
void dcpy(void* destination, char[] source)
Undocumented in source. Be warned that the author may not have intended to support it.
debugChar
string debugChar(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultAllocator
ubyte[] defaultAllocator(ubyte[] oldBuffer, size_t newLength, bool copy)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultDeallocator
void defaultDeallocator(ubyte[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
escape
string escape(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
escape
string escape(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
escape
inout(char)[] escape(inout(char)[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
hexchar
char hexchar(ubyte b)
Undocumented in source.
implement
void implement(string feature, string file, int line)
Undocumented in source. Be warned that the author may not have intended to support it.
prettyTime
string prettyTime(float millis)
Undocumented in source. Be warned that the author may not have intended to support it.
rangeInitializers
string rangeInitializers(string[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
rangeInitializersCurrent
string rangeInitializersCurrent(string[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
rangeInitializersNext
string rangeInitializersNext(string[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
readFullSize
void readFullSize(File file, char[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
stdTimeMillis
float stdTimeMillis(long stdTime)
Undocumented in source. Be warned that the author may not have intended to support it.
trimNewline
void trimNewline(inout(char)[]* line)
Undocumented in source. Be warned that the author may not have intended to support it.
tryParseFields
string tryParseFields(T fields, C[] line)

Used to parse the fields in <i>line</i> to the <i>fields</i> sink. line is a single line without the line ending character. returns error message on error

tryReadFullSize
bool tryReadFullSize(File file, char[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

IDataHandler
interface IDataHandler
Undocumented in source.
IDisposable
interface IDisposable
Undocumented in source.

Manifest constants

noEndingQuoteMessage
enum noEndingQuoteMessage;
Undocumented in source.

Structs

ArrayList
struct ArrayList(V)
Undocumented in source.
AsciiBufferedInput
struct AsciiBufferedInput
Undocumented in source.
CustomChunks
struct CustomChunks
Undocumented in source.
Escaped
struct Escaped
Undocumented in source.
FileCharReader
struct FileCharReader
Undocumented in source.
FormattedBinaryWriter
struct FormattedBinaryWriter
Undocumented in source.
LineReader
struct LineReader
Undocumented in source.
LinesChunker
struct LinesChunker

The LinesChunker reads as many lines as it can. If the buffer runs out in the middle of a line it will return all the previous full lines. On the next read it will move the left over data to the beginning of the buffer and continue reading. If it cannot read a full line it will either return partial lines or it will throw an error depending on what the user specifies. Options on how to handle lines that are too long 1. Return partial lines 2. Resize the buffer to hold the entire line 3. Throw an exception/cause an error

LinesReader
struct LinesReader
Undocumented in source.
ReadBuffer
struct ReadBuffer(T)
Undocumented in source.
StdoutWriter
struct StdoutWriter
Undocumented in source.
StringByLine
struct StringByLine
Undocumented in source.
WriteBuffer
struct WriteBuffer(T)
Undocumented in source.

Templates

ArrayElementType
template ArrayElementType(Type)
Undocumented in source.
CustomLineParser
template CustomLineParser(A...)
Undocumented in source.
TupleRange
template TupleRange(int from, int to)
Undocumented in source.
TypeTupleStrings
template TypeTupleStrings(alias sep, T...)
Undocumented in source.
Unroll
template Unroll(alias CODE, alias N, alias SEP = "")
Undocumented in source.
UnrollTuple
template UnrollTuple(alias CODE, alias SEP, T...)
Undocumented in source.
isChar
template isChar(T)
Undocumented in source.

Variables

escapeTable
string[] escapeTable;
Undocumented in source.

Meta