dalicious.string

Some additional string functions.

Members

Classes

AlignmentException
class AlignmentException

Enums

EditOp
enum EditOp

One edit operation of the Needleman-Wunsch algorithm.

dashCaseCT
enum dashCaseCT(string camelCase)

Convert a string to dash-case at compile time.

Functions

indent
S indent(S str, in size_t indentSize = 4)

Adds one level of indentation for a multi-line string. Adds indentSize spaces to each non-empty line.

longestInputsLength
size_t longestInputsLength(size_t memoryLimit)

Returns longest query and refernce length possible with memoryLimit.

toString
string toString(in Float value, in uint precision)

Convert a floating point number to a base-10 string at compile time. This function is very crude and will not work in many cases!

Structs

SequenceAlignment
struct SequenceAlignment(S, alias scoreFun = "a == b ? 0 : 1")

Represents an alignment of two sequences.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

Arne Ludwig <arne.ludwig@posteo.de>