MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / c_str

Method c_str

unittests/catch.hpp:9667–9671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9665 }
9666
9667 auto StringRef::c_str() const -> char const* {
9668 if( isSubstring() )
9669 const_cast<StringRef*>( this )->takeOwnership();
9670 return m_start;
9671 }
9672 auto StringRef::currentData() const noexcept -> char const* {
9673 return m_start;
9674 }

Callers 11

readlineFunction · 0.45
mainFunction · 0.45
readlineFunction · 0.45
get_strMethod · 0.45
operator()Method · 0.45
readlineFunction · 0.45
StringRefMethod · 0.45
registerTestMethodsFunction · 0.45
makeCommandLineParserFunction · 0.45
writeToDebugConsoleFunction · 0.45
FileStreamMethod · 0.45

Calls 1

takeOwnershipMethod · 0.80

Tested by 1

get_strMethod · 0.36