dil.String

Members

Functions

hashOf
hash_t hashOf(cstring str)
hashOfCTF
hash_t hashOfCTF(cstring str)

Calculates a hash value for str. Note: The value will differ between 32bit and 64bit systems. It will also differ between little and big endian systems.

itoa
char[] itoa(ulong x)

Converts x to a string array.

replace
cstring replace(cstring str, char a, char b)

Returns a copy of str where a is replaced with b.

slice
inout(char)[] slice(inout(char)* begin, inout(char)* end)

Returns a string array slice ranging from begin to end.

toStrings
inout(StringT!C)[] toStrings(inout C[][] strs)

Returns a list of Strings from a list of char arrays.

Structs

StringT
struct StringT(C)

A string implementation that uses two pointers, as opposed to one pointer and a size variable.

Meta

Authors

Aziz Köksal

License

GPL3 $(Maturity average)