MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / step_back

Function step_back

src/toml.hpp:12684–12697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12682 }
12683
12684 TOML_NODISCARD
12685 const utf8_codepoint* step_back(size_t count) noexcept
12686 {
12687 utf8_buffered_reader_error_check({});
12688
12689 TOML_ASSERT_ASSUME(history_.count);
12690 TOML_ASSERT_ASSUME(negative_offset_ + count <= history_.count);
12691
12692 negative_offset_ += count;
12693
12694 return negative_offset_
12695 ? history_.buffer + ((history_.first + history_.count - negative_offset_) % history_buffer_size)
12696 : head_;
12697 }
12698
12699 TOML_NODISCARD
12700 bool peek_eof() const noexcept(!TOML_COMPILER_HAS_EXCEPTIONS)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected