]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/funcrepl.cpp
ICU-491.11.1.tar.gz
[apple/icu.git] / icuSources / i18n / funcrepl.cpp
index 03d71834762b438477e212414856c01c9e63eee5..f13d3bc544e65b325f5e77454fb5e4141cd71359 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (c) 2002-2008, International Business Machines Corporation
+*   Copyright (c) 2002-2011, International Business Machines Corporation
 *   and others.  All Rights Reserved.
 **********************************************************************
 *   Date        Name        Description
@@ -97,9 +97,9 @@ UnicodeString& FunctionReplacer::toReplacerPattern(UnicodeString& rule,
     rule.truncate(0);
     rule.append(AMPERSAND);
     rule.append(translit->getID());
-    rule.append(OPEN);
+    rule.append(OPEN, 2);
     rule.append(replacer->toReplacer()->toReplacerPattern(str, escapeUnprintable));
-    rule.append(CLOSE);
+    rule.append(CLOSE, 2);
     return rule;
 }