#include <unirange.h>
Public Methods | |
UnicodeRange (UChar start, int32_t length) | |
UnicodeRange* | clone () const |
CALLER OWNS RESULT. | |
UBool | contains (UChar c) const |
UnicodeRange* | split (UChar c) |
Assume that contains(c) is true. More... | |
UnicodeRange* | largestUnusedSubrange (const UnicodeString& str) const |
Finds the largest subrange of this range that is unused by the given string. More... | |
Public Attributes | |
UChar | start |
int32_t | length |
A range of Unicode characters. Support the operations of testing for inclusion (does this range contain this character?) and splitting. Splitting involves breaking a range into two smaller ranges around a character inside the original range. The split character is not included in either range. If the split character is at either extreme end of the range, one of the split products is an empty range.
This class is used internally to determine the largest available private use character range for variable stand-ins.
Definition at line 29 of file unirange.h.
|
|
|
CALLER OWNS RESULT.
|
|
|
|
Finds the largest subrange of this range that is unused by the given string. A subrange is unused by a string if the string contains no characters in that range. If the given string contains no characters in this range, then this range itself is returned. CALLER OWNS RESULT. |
|
Assume that contains(c) is true. Split this range into two new ranges around the character c. Make this range one of the new ranges (modify it in place) and return the other new range. The character itself is not included in either range. If the split results in an empty range (that is, if c == start or c == start + length - 1) then return null. MODIFIES THIS RANGE IN PLACE. CALLER OWNS RESULT. |
|
Definition at line 35 of file unirange.h. |
|
Definition at line 33 of file unirange.h. |