MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / basic_string

Method basic_string

include/stringzilla/stringzilla.hpp:2756–2762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2754#pragma region Constructors and STL Utilities
2755
2756 sz_constexpr_if_cpp14 basic_string() noexcept {
2757 // ! Instead of relying on the `sz_string_init`, we have to reimplement it to support `constexpr`.
2758 string_.internal.start = &string_.internal.chars[0];
2759 string_.words[1] = 0;
2760 string_.words[2] = 0;
2761 string_.words[3] = 0;
2762 }
2763
2764 ~basic_string() noexcept {
2765 _with_alloc([&](sz_alloc_type &alloc) {

Callers

nothing calls this directly

Calls 10

initFunction · 0.85
raiseFunction · 0.85
_with_allocFunction · 0.85
sz_string_init_lengthFunction · 0.85
substrMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected