Report a bug
		
				If you spot a problem with this page, click here to create a Bugzilla issue.
		
			Improve this page
		
			Quickly fork, edit online, and submit a pull request for this page.
			Requires a signed-in GitHub account. This works well for small changes.
			If you'd like to make larger changes you may want to consider using
			a local clone.
		
	core.stdcpp.string
D header file for interaction with C++ std::string.
License: 
Distributed under the
      Boost Software License 1.0.
    (See accompanying file LICENSE)
Authors: 
Guillaume Chatelet
            Manu Evans
Source core/stdcpp/string.d
- enum DefaultConstructDefault;
- Constructor argument for default construction
- structchar_traits(CharT);
- Character traits classes specify character properties and provide specific semantics for certain operations on characters and sequences of characters.
- structbasic_string(T, Traits = char_traits!T, Alloc = allocator!T);
- D language counterpart to C++ std::basic_string.- enum size_typenpos;
- aliassize_type= size_t;
- aliasdifference_type= ptrdiff_t;
- aliasvalue_type= T;
- aliastraits_type= Traits;
- aliasallocator_type= Alloc;
- aliaspointer= value_type*;
- aliasconst_pointer= const(value_type)*;
- aliastoString= as_array;
- this();
- MSVC allocates on default initialisation in debug, which can't be modelled by D struct
- aliaslength= size;
- aliasopDollar= length;
- const nothrow @safe boolempty();
- const pure nothrow @nogc @safe size_t[2]opSlice(size_t dim : 0)(size_tstart, size_tend);
- inout pure nothrow @nogc ref @safe inout(T)opIndex(size_tindex);
- inout pure nothrow @nogc @safe inout(T)[]opIndex(size_t[2]slice);
- inout pure nothrow @nogc @safe inout(T)[]opIndex();
- voidclear();
- @trusted voidresize(size_typen, Tc= T(0));
- inout nothrow ref @safe inout(T)front();
- inout nothrow ref @safe inout(T)back();
- const nothrow @safe const(T)*c_str();
- ref basic_stringopAssign()(auto ref basic_stringstr);
- ref basic_stringopAssign(const(T)[]str);
- ref basic_stringopAssign(Tc);
- ref basic_stringopIndexAssign(Tc, size_tindex);
- ref basic_stringopIndexAssign(Tc, size_t[2]slice);
- ref basic_stringopIndexAssign(const(T)[]str, size_t[2]slice);
- ref basic_stringopIndexAssign(Tc);
- ref basic_stringopIndexAssign(const(T)[]str);
- ref basic_stringopIndexOpAssign(string op)(Tc, size_tindex);
- ref basic_stringopIndexOpAssign(string op)(Tc, size_t[2]slice);
- ref basic_stringopIndexOpAssign(string op)(const(T)[]str, size_t[2]slice);
- ref basic_stringopIndexOpAssign(string op)(Tc);
- ref basic_stringopIndexOpAssign(string op)(const(T)[]str);
- ref basic_stringappend(Tc);
- ref basic_stringopOpAssign(string op : "~")(const(T)[]str);
- ref basic_stringopOpAssign(string op : "~")(Tc);
- ref basic_stringerase(size_typepos= 0);
- ref basic_stringerase(size_typepos, size_typelen);
- @trusted voidpush_back(Tc);
- voidpop_back();
- this(DefaultConstruct);
- this(const(T)[]str);
- this(const(T)[]str, ref const(allocator_type)al);
- inout ref inout(Alloc)get_allocator();
- const nothrow @safe size_typemax_size();
- const nothrow @safe size_typesize();
- const nothrow @safe size_typecapacity();
- inout @safe inout(T)*data();
- inout nothrow @trusted inout(T)[]as_array();
- inout nothrow ref @trusted inout(T)at(size_typei);
- ref basic_stringassign(const(T)[]str);
- ref basic_stringappend(const(T)[]str);
 
Copyright © 1999-2022 by the D Language Foundation | Page generated by
Ddoc on (no date time)