MCPcopy Create free account
hub / github.com/LadybirdBrowser/ladybird / substring_view

Method substring_view

AK/ByteString.cpp:66–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66StringView ByteString::substring_view(size_t start, size_t length) const&
67{
68 VERIFY(!Checked<size_t>::addition_would_overflow(start, length));
69 VERIFY(start + length <= m_impl->length());
70 return { characters() + start, length };
71}
72
73StringView ByteString::substring_view(size_t start) const&
74{

Callers 15

apply_variant_to_testFunction · 0.45
run_testsFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
capture_groupFunction · 0.45
extract_metadataFunction · 0.45
mainFunction · 0.45
complete_repl_lineFunction · 0.45

Calls 2

lengthFunction · 0.70
lengthMethod · 0.45

Tested by

no test coverage detected