String negativeSuffix = fmt.getNegativeSuffix();
String positivePrefix = fmt.getPositivePrefix();
String positiveSuffix = fmt.getPositiveSuffix();
// Remove any canonical negative sign
int minusSign = buf.indexOf(CanonicalMinusSign);
if (minusSign > -1) {
buf.removeCharAt(minusSign);
}
// Replace the canonical decimal separator with a localized version