btl.string

Mutable @nogc @safe string struct using std.experimental.allocator for allocations.

Modules

encoding
module btl.string.encoding
Undocumented in source.
storage
module btl.string.storage
Undocumented in source.

Members

Aliases

DefaultAllocator
alias DefaultAllocator = Mallocator

Default allcoator for BasicString.

FixedString
alias FixedString(Char, size_t N) = BasicString!(Char, N, void)

Alias to BasicString with void allcoator (fixed capacity to N characters).

Forward
alias Forward = btl.traits.common.Forward

Type used in forward constructors.

LargeString
alias LargeString(Char, _Allocator = DefaultAllocator) = BasicString!(Char, 0, _Allocator)

Alias to BasicString without small string optimization (N == 0).

SmallString
alias SmallString(Char, size_t N, _Allocator = DefaultAllocator) = BasicString!(Char, max(N, 1), _Allocator)

Alias to BasicString with forced small string optimization fot min N characters.

String
alias String = BasicString!char

Standard string type (alias to BasicString!char).

Classes

TestStateAllocator
class TestStateAllocator(bool Realloc)
Undocumented in source.

Functions

unittest_allocator_impl
void unittest_allocator_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_append_impl
void unittest_append_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_ctor_char_impl
void unittest_ctor_char_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_ctor_string_impl
void unittest_ctor_string_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_erase_impl
void unittest_erase_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_impl
void unittest_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_impl
void unittest_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_insert_impl
void unittest_insert_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_operator_plus_char_impl
void unittest_operator_plus_char_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_operator_plus_string_impl
void unittest_operator_plus_string_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_output_range_impl
void unittest_output_range_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_replace_impl
void unittest_replace_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_reserve_impl
void unittest_reserve_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_resize_impl
void unittest_resize_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.
unittest_shrink_to_fit_impl
void unittest_shrink_to_fit_impl(Allocator allocator)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

TestStatelessAllocator
struct TestStatelessAllocator(bool Realloc)
Undocumented in source.

Templates

BasicString
template BasicString(_Char, size_t N = 1, _Allocator = DefaultAllocator)

The BasicString is the generalization of struct string for character of type char, wchar or dchar.

BasicString
template BasicString(_Char, _Allocator, size_t N = 1)

Alias to BasicString with different order of template parameters

isBasicString
template isBasicString(T)

True if T is a BasicString or implicitly converts to one, otherwise false.

Meta

Authors

Adam Búš