struct CordRepSubstring

Defined at line 313 of file ../../third_party/abseil-cpp/absl/strings/internal/cord_internal.h

Public Members

size_t start
CordRep * child

Public Methods

CordRepSubstring * Create (CordRep * child, size_t pos, size_t n)

Creates a substring on `child`, adopting a reference on `child`.

Requires `child` to be either a flat or external node, and `pos` and `n` to

form a non-empty partial sub range of `'child`, i.e.:

`n > 0

&

&

n

<

length

&

&

n + pos

<

= length`

Defined at line 394 of file ../../third_party/abseil-cpp/absl/strings/internal/cord_internal.h

CordRep * Substring (CordRep * rep, size_t pos, size_t n)

Creates a substring of `rep`. Does not adopt a reference on `rep`.

Requires `IsDataEdge(rep)

&

&

n > 0

&

&

pos + n

<

= rep->length`.

If `n == rep->length` then this method returns `CordRep::Ref(rep)`

If `rep` is a substring of a flat or external node, then this method will

return a new substring of that flat or external node with `pos` adjusted

with the original `start` position.

Defined at line 416 of file ../../third_party/abseil-cpp/absl/strings/internal/cord_internal.h