ICU-7273 minor internal doc fixes from code review

X-SVN-Rev: 27663
This commit is contained in:
Markus Scherer 2010-02-24 23:57:40 +00:00
parent b9fb4a7858
commit d928bb24e1
2 changed files with 11 additions and 5 deletions

View file

@ -161,10 +161,10 @@ void ReorderingBuffer::remove() {
lastCC=0;
}
void ReorderingBuffer::removeSuffix(int32_t length) {
if(length<(limit-start)) {
limit-=length;
remainingCapacity+=length;
void ReorderingBuffer::removeSuffix(int32_t suffixLength) {
if(suffixLength<(limit-start)) {
limit-=suffixLength;
remainingCapacity+=suffixLength;
} else {
limit=start;
remainingCapacity=str.getCapacity();
@ -371,6 +371,9 @@ Normalizer2Impl::copyLowPrefixFromNulTerminated(const UChar *src,
return src;
}
// Dual functionality:
// buffer!=NULL: normalize
// buffer==NULL: isNormalized/spanQuickCheckYes
const UChar *
Normalizer2Impl::decompose(const UChar *src, const UChar *limit,
ReorderingBuffer *buffer,
@ -1440,6 +1443,9 @@ const UTrie2 *Normalizer2Impl::getFCDTrie(UErrorCode &errorCode) const {
return FCDTrieSingleton(me->fcdTrieSingleton, *me, errorCode).getInstance(errorCode);
}
// Dual functionality:
// buffer!=NULL: normalize
// buffer==NULL: isNormalized/quickCheck/spanQuickCheckYes
const UChar *
Normalizer2Impl::makeFCD(const UChar *src, const UChar *limit,
ReorderingBuffer *buffer,

View file

@ -143,7 +143,7 @@ public:
UBool appendZeroCC(UChar32 c, UErrorCode &errorCode);
UBool appendZeroCC(const UChar *s, const UChar *sLimit, UErrorCode &errorCode);
void remove();
void removeSuffix(int32_t length);
void removeSuffix(int32_t suffixLength);
void setReorderingLimit(UChar *newLimit) {
remainingCapacity+=(int32_t)(limit-newLimit);
reorderStart=limit=newLimit;