ICU-13629 Adding comments in replacementIndex getters.

X-SVN-Rev: 41364
This commit is contained in:
Shane Carr 2018-05-09 00:14:36 +00:00
parent 5c969e791f
commit 03f6b1cf92
2 changed files with 8 additions and 2 deletions

View file

@ -378,7 +378,10 @@ public:
* not counting unchanged spans
* @stable ICU 59
*/
int32_t replacementIndex() const { return replIndex; }
int32_t replacementIndex() const {
// TODO: Throw an exception if we aren't in a change edit?
return replIndex;
}
/**
* The start index of the current span in the destination string; the span has length

View file

@ -805,7 +805,10 @@ public final class Edits {
* spans
* @stable ICU 59
*/
public int replacementIndex() { return replIndex; }
public int replacementIndex() {
// TODO: Throw an exception if we aren't in a change edit?
return replIndex;
}
/**
* The start index of the current span in the destination string; the span has length