MCPcopy Create free account
hub / github.com/boostorg/json / subview

Method subview

include/boost/json/string.hpp:1602–1608  ·  view source on GitHub ↗

Return a view. @li **(1)** equivalent to `subview().substr(pos, count)`. @li **(2)** equivalent to `string_view(data(), size())`. @par Exception Safety Strong guarantee. @param pos The index of the first character of the substring. @param count The length of the substring. @throw boost::system::system_error `pos > ` @ref size(). */

Source from the content-addressed store, hash-verified

1600 @throw boost::system::system_error `pos > ` @ref size().
1601 */
1602 string_view
1603 subview(
1604 std::size_t pos,
1605 std::size_t count = npos) const
1606 {
1607 return subview().substr(pos, count);
1608 }
1609
1610 /// Overload
1611 string_view

Callers 9

usingStringsFunction · 0.80
testStringMethod · 0.80
testElementAccessMethod · 0.80
testInsertMethod · 0.80
testAppendMethod · 0.80
testReplaceMethod · 0.80
testSubStrMethod · 0.80
to_string_view<string>Function · 0.80
value_to_implFunction · 0.80

Calls 3

string_viewClass · 0.85
dataClass · 0.85
sizeFunction · 0.85

Tested by

no test coverage detected