Returns a new Cord representing the subrange [pos, pos + new_size) of] *this.

Synopsis

Declared in <absl/strings/cord.h>

Cord
Subcord(
    size_t pos,
    size_t new_size) const;

Description

If pos >= size(), the result is empty(). If (pos + new_size) >= size(), the result is the subrange [pos, size()).]

Return Value

A Cord holding the requested subrange.

Parameters

Name

Description

pos

The starting byte offset of the subrange.

new_size

The number of bytes in the subrange.

Created with MrDocs