License
Distributed under the
Boost Software License 1.0. (See accompanying file LICENSE)
D header file for interaction with C++ std::string.
Boost Software License 1.0. (See accompanying file LICENSE)
(const(T)[] str, ref const(allocator_type) al) @nogc(const(T)[] str) @nogc(const ref basic_string str) @nogc(const(T)[] str, ref const(allocator_type) al) @nogc(const(T)[] str) @nogc(const(T)[] str, ref const(allocator_type) al) @nogc(const(T)[] str) @nogc() @nogc() @nogc() @nogcCharacter traits classes specify character properties and provide specific semantics for certain operations on characters and sequences of characters.
D language counterpart to C++ std::basic_string.
C++ reference: https://en.cppreference.com/w/cpp/string/basic_string
size_type npossize_t[2] opSlice(size_t dim : 0)(size_t start, size_t end) extern(D) @nogc const pure nothrow @safebool opEquals(scope const ref basic_string s) extern(D) @nogc const pure nothrow @safeTwo `basic_string`s are equal if they represent the same sequence of code units.int opCmp(scope const ref basic_string rhs) extern(D) @nogc const pure nothrow @safePerforms lexicographical comparison.size_t toHash() extern(D) @nogc const nothrow pure @safeHash to allow `basic_string`s to be used as keys for built-in associative arrays. *The result will generally not be the same as C++ `std::hash<std::basic_string<T>>`.*basic_string insert(size_type pos, ref const(basic_string) str, size_type subpos, size_type sublen) ref extern(D) @nogc @trustedbasic_string replace()(size_type pos, size_type len, auto ref basic_string str,
size_type subpos, size_type sublen = npos) ref extern(D) @nogcbasic_string replace(S : size_type)(S pos, size_type len, const(value_type) * s) ref extern(D) @nogcthis()MSVC allocates on default initialisation in debug, which can't be modelled by D `struct`size_type _M_lengthsize_type _M_capacity_Atomic_word _M_refcount_Rep_base basesize_type _S_max_sizeT _S_terminalsize_type[(_Rep_base.sizeof + T.sizeof + size_type.sizeof - 1) / size_type.sizeof] _S_empty_rep_storagevoid _M_set_sharable() nothrowvoid _M_set_length_and_sharable(size_type __n) nothrowT * _M_grab(ref allocator_type __alloc1, const ref allocator_type __alloc2)_Rep * _S_create(size_type __capacity, size_type __old_capacity, ref Alloc __alloc) staticvoid _M_dispose(ref Alloc __a)void _M_destroy(ref Alloc __a)T * _M_clone(ref Alloc __alloc, size_type __res = 0)T[_S_local_capacity + 1] _M_local_bufsize_type _M_allocated_capacity__long __lx__short __lxxsize_type[__n_words] __wordsbasic_string _Reallocate_for(_ArgTys...)(size_type _New_size, void function(pointer, size_type, _ArgTys) nothrow @nogc _Fn, _ArgTys _Args) ref @nogcbasic_string _Reallocate_grow_by(_ArgTys...)(size_type _Size_increase, void function(pointer, const(T)[], _ArgTys) nothrow @nogc _Fn, _ArgTys _Args) ref @nogcvoid _Swap_bx_large_with_small(ref _Scary_val _Starts_large, ref _Scary_val _Starts_small) @nogcbasic_string replace(size_type __pos, size_type __n1, const(T) * __s, size_type __n2) ref @nogcbasic_string _M_replace_safe(size_type __pos1, size_type __n1, const(T) * __s, size_type __n2) ref @nogcbasic_string _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, T __c) ref @nogcbasic_string _M_replace(size_type __pos, size_type __len1, const(T) * __s, const size_type __len2) ref @nogcbasic_string _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, T __c) ref @nogcbasic_string replace(size_type __pos, size_type __n1, const(T) * __s, size_type __n2) ref @nogcbasic_string replace(size_type __pos, size_type __n1, size_type __n2, value_type __c) ref @nogcvoid __grow_by_and_replace(size_type __old_cap, size_type __delta_cap, size_type __old_sz, size_type __n_copy,
size_type __n_del, size_type __n_add, const(value_type) * __p_new_stuff) @nogcvoid __grow_by(size_type __old_cap, size_type __delta_cap, size_type __old_sz,
size_type __n_copy, size_type __n_del, size_type __n_add = 0) @nogcDefault = DefaultConstruct()Constructor argument for default construction
_Can_memcpy_val = is(_Traits == char_traits!E, E) && is(pointer == U *, U)_Memcpy_val_offset = _Size_after_ebco_v!_Container_base_Memcpy_val_size = _Scary_val.sizeof - _Memcpy_val_offset_String_alloc!(_String_base_types!(T, Alloc)) _BaseT * _M_ppointer _M_psize_type _M_string_length_S_local_capacity = 15 / T.sizeof__alignment = 16__n_words = __ulx.sizeof / size_type.sizeof__compressed_pair!(__rep, allocator_type) __r_