compares the positions of two TextRanges within a Text.
More...
compares the positions of two TextRanges within a Text.
Only TextRange instances within the same Text can be compared.
◆ compareRegionEnds()
- Returns
- 1, if xR1 ends before xR2, 0, if xR1 ends at the same position as xR2 and -1, if xR1 ends behind xR2. Note that the sign of the return value might be the opposite of what you would expect if you are used to other comparison operations such as the XCollator interface, strcmp in C, the <=> operator in C++ or the compareTo method in Java.
- Exceptions
-
◆ compareRegionStarts()
- Returns
- 1 if xR1 starts before xR2, 0 if xR1 starts at the same position as xR2 and -1 if xR1 starts behind xR2. Note that the sign of the return value might be the opposite of what you would expect if you are used to other comparison operations such as the XCollator interface, strcmp in C, the <=> operator in C++ or the compareTo method in Java.
- Exceptions
-
The documentation for this interface was generated from the following file: