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

Method view

include/stringzilla/stringzilla.hpp:2809–2814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2807
2808 operator string_view() const noexcept sz_lifetime_bound_ { return view(); }
2809 string_view view() const noexcept sz_lifetime_bound_ {
2810 sz_ptr_t string_start;
2811 sz_size_t string_length;
2812 sz_string_range(&string_, &string_start, &string_length);
2813 return {string_start, string_length};
2814 }
2815
2816 operator string_span() noexcept sz_lifetime_bound_ { return span(); }
2817 string_span span() noexcept sz_lifetime_bound_ {

Callers 3

operator==Method · 0.45
operator<=>Method · 0.45
hashes_fingerprintFunction · 0.45

Calls 1

sz_string_rangeFunction · 0.85

Tested by

no test coverage detected