mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #1971 - Part 2: Update ICU source to 63.2.
This commit is contained in:
parent
8df84683be
commit
1e69214382
3160 changed files with 275815 additions and 234203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
// © 2016 and later: Unicode, Inc. and others.
|
||||
// License & terms of use: http://www.unicode.org/copyright.html
|
||||
/*
|
||||
*******************************************************************************
|
||||
|
|
@ -22,17 +22,8 @@ U_NAMESPACE_BEGIN
|
|||
FieldPositionHandler::~FieldPositionHandler() {
|
||||
}
|
||||
|
||||
void
|
||||
FieldPositionHandler::addAttribute(int32_t, int32_t, int32_t) {
|
||||
}
|
||||
|
||||
void
|
||||
FieldPositionHandler::shiftLast(int32_t) {
|
||||
}
|
||||
|
||||
UBool
|
||||
FieldPositionHandler::isRecording(void) const {
|
||||
return FALSE;
|
||||
void FieldPositionHandler::setShift(int32_t delta) {
|
||||
fShift = delta;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -48,8 +39,8 @@ FieldPositionOnlyHandler::~FieldPositionOnlyHandler() {
|
|||
void
|
||||
FieldPositionOnlyHandler::addAttribute(int32_t id, int32_t start, int32_t limit) {
|
||||
if (pos.getField() == id) {
|
||||
pos.setBeginIndex(start);
|
||||
pos.setEndIndex(limit);
|
||||
pos.setBeginIndex(start + fShift);
|
||||
pos.setEndIndex(limit + fShift);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -91,8 +82,8 @@ FieldPositionIteratorHandler::addAttribute(int32_t id, int32_t start, int32_t li
|
|||
if (iter && U_SUCCESS(status) && start < limit) {
|
||||
int32_t size = vec->size();
|
||||
vec->addElement(id, status);
|
||||
vec->addElement(start, status);
|
||||
vec->addElement(limit, status);
|
||||
vec->addElement(start + fShift, status);
|
||||
vec->addElement(limit + fShift, status);
|
||||
if (!U_SUCCESS(status)) {
|
||||
vec->setSize(size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue