MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / BasicStringView

Method BasicStringView

Sources/Shared/Containers/StringView.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31//###==##====#=====--==~--~=~- --- -- - - - -
32
33 template<class T> BasicStringView<T>::BasicStringView(T* const data, const StringViewFlags flags, std::nullptr_t) noexcept : BasicStringView{data,
34 data ? std::strlen(data) : 0,
35 flags | (data ? StringViewFlags::NullTerminated : StringViewFlags::Global)} {}
36
37 template<class T> BasicStringView<T>::BasicStringView(String& string) noexcept : BasicStringView{string.data(), string.size(), string.viewFlags()} {}
38

Callers

nothing calls this directly

Calls 3

viewFlagsMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected