ICU-22342 Rename fillBreak to fillBreaks

This commit is contained in:
Frank Tang 2023-09-14 00:49:09 -07:00 committed by Frank Yung-Fong Tang
parent bb7352990e
commit 9fb9bd4950
3 changed files with 11 additions and 11 deletions

View file

@ -356,8 +356,8 @@ int32_t BreakEngineWrapper::findBreaks(
foundBreaks.ensureCapacity(beforeSize+additionalCapacity, status);
if (U_FAILURE(status)) return 0;
foundBreaks.setSize(beforeSize + beforeSize+additionalCapacity);
result = delegate->fillBreak(text, rangeStart, rangeEnd, foundBreaks.getBuffer()+beforeSize,
additionalCapacity, status);
result = delegate->fillBreaks(text, rangeStart, rangeEnd, foundBreaks.getBuffer()+beforeSize,
additionalCapacity, status);
if (U_FAILURE(status)) return 0;
foundBreaks.setSize(beforeSize + result);
utext_setNativeIndex(text, current);

View file

@ -100,9 +100,9 @@ class ExternalBreakEngine : public UObject {
* @return The number of breaks found
* @internal ICU 74 technology preview
*/
virtual int32_t fillBreak(UText* text, int32_t start, int32_t end,
int32_t* foundBreaks, int32_t foundBreaksCapacity,
UErrorCode& status) const = 0;
virtual int32_t fillBreaks(UText* text, int32_t start, int32_t end,
int32_t* foundBreaks, int32_t foundBreaksCapacity,
UErrorCode& status) const = 0;
};
#endif /* UCONFIG_NO_SERVICE */
#endif /* U_HIDE_DRAFT_API */

View file

@ -5686,9 +5686,9 @@ class FakeTaiLeBreakEngine : public ExternalBreakEngine {
virtual bool handles(UChar32 c) const override {
return block.contains(c);
}
virtual int32_t fillBreak(UText* text, int32_t start, int32_t end,
int32_t* foundBreaks, int32_t foundBreaksCapacity,
UErrorCode& status) const override {
virtual int32_t fillBreaks(UText* text, int32_t start, int32_t end,
int32_t* foundBreaks, int32_t foundBreaksCapacity,
UErrorCode& status) const override {
if (U_FAILURE(status)) return 0;
int32_t i = 0;
// Save the state of the utext
@ -5739,9 +5739,9 @@ class FakeYueBreakEngine : public ExternalBreakEngine {
virtual bool handles(UChar32 c) const override {
return block.contains(c);
}
virtual int32_t fillBreak(UText* text, int32_t start, int32_t end,
int32_t* foundBreaks, int32_t foundBreaksCapacity,
UErrorCode& status) const override {
virtual int32_t fillBreaks(UText* text, int32_t start, int32_t end,
int32_t* foundBreaks, int32_t foundBreaksCapacity,
UErrorCode& status) const override {
(void)text;
if (U_FAILURE(status)) return 0;
int32_t i = 0;