BDE 4.14.0 Production release
|
#include <bdlb_indexspanstringutil.h>
This struct serves as a namespace for utility functions that operate on IndexSpan
and string objects.
|
inlinestatic |
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()
.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Return an IndexSpan
describing the substring of the specified string
as defined by the begin()
and end()
of the specified subString
. The behavior is undefined unless subString.begin() <= string.end()
, subString.end() <= string.end()
, subString.begin() >= string.begin()
, and subString.end() <= string.begin()
.
|
inlinestatic |
Return an IndexSpan
describing the substring of the specified string
starting at the specified begin
and having the specified length
. The behavior is undefined unless begin <= string.length()
and begin + length <= string.length()
.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Return an IndexSpan
describing the substring of the specified string
starting at the specified begin
and having the specified length
. The behavior is undefined unless begin >= string.begin()
, begin <= string.end()
, and begin + length <= string.end()
.
|
inlinestatic |
Return an IndexSpan
describing the substring of the specified string
starting at the specified begin
and ending (not including) the specified end
. The behavior is undefined unless begin >= string.begin()
, begin <= string.end()
, end <= string.end()
, and begin <= end
.
|
inlinestatic |
|
inlinestatic |
Return an IndexSpan
describing the substring of the specified string
starting at the specified begin
and ending (not including) the specified end
. The behavior is undefined unless begin <= string.length()
and end <= string.length()
.