/*
**********************************************************************
-* Copyright (C) 2001-2003, International Business Machines
+* Copyright (C) 2001-2007, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
#include "unicode/uiter.h"
#include "nortrans.h"
#include "unormimp.h"
-#include "mutex.h"
#include "ucln_in.h"
U_NAMESPACE_BEGIN
/**
* Assignment operator.
*/
-NormalizationTransliterator& NormalizationTransliterator::operator=(const NormalizationTransliterator& o) {
+/*NormalizationTransliterator& NormalizationTransliterator::operator=(const NormalizationTransliterator& o) {
Transliterator::operator=(o);
fMode = o.fMode;
options = o.options;
return *this;
-}
+}*/
/**
* Transliterator API.
fMode, 0,
TRUE, &neededToNormalize,
&errorCode);
- output.releaseBuffer(length);
+ output.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
if(errorCode == U_BUFFER_OVERFLOW_ERROR) {
// use a larger output string buffer and do it again from the start
fMode, 0,
TRUE, &neededToNormalize,
&errorCode);
- output.releaseBuffer(length);
+ output.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
}
if(U_FAILURE(errorCode)) {