This struct serves as a namespace for utility functions that operate on IndexSpan and string objects.

Synopsis

Declared in <bdlb_indexspanstringutil.h>

struct IndexSpanStringUtil;

Static Member Functions

Name

Description

bind

Return a string reference to the substring of the specified string as described by the specified span, meaning the substring starting at the span.position() index in string and having span.length() characters. The behavior is undefined unless span.position() <= string.length() and span.position() + span.length() <= string.length().

create

create overloads

createFromPositions

createFromPositions overloads

Created with MrDocs