Lexicographically compare this string with another sequence.
Synopsis
Declared in <bslstl_string.h>
int
compare(
size_type lhsPosition,
size_type lhsNumChars,
CHAR_TYPE const* other,
size_type otherNumChars) const;
Return Value
negative, zero, or positive according to the lexicographic order
Parameters
Name |
Description |
lhsPosition |
starting index of the left‐hand substring |
lhsNumChars |
length of the left‐hand substring |
other |
string or character sequence to compare or use |
otherNumChars |
length of the other substring |
Created with MrDocs