mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 04:29:31 +00:00
ICU-10046 insetMarkup()->insertMarkup().
X-SVN-Rev: 35666
This commit is contained in:
parent
1cdf346b5e
commit
fd676bb762
3 changed files with 5 additions and 5 deletions
|
@ -54,7 +54,7 @@ ScientificFormatHelper &ScientificFormatHelper::operator=(const ScientificFormat
|
|||
ScientificFormatHelper::~ScientificFormatHelper() {
|
||||
}
|
||||
|
||||
UnicodeString &ScientificFormatHelper::insetMarkup(
|
||||
UnicodeString &ScientificFormatHelper::insertMarkup(
|
||||
const UnicodeString &s,
|
||||
FieldPositionIterator &fpi,
|
||||
const UnicodeString &beginMarkup,
|
||||
|
|
|
@ -41,7 +41,7 @@ class DecimalFormatStaticSets;
|
|||
* UnicodeString result;
|
||||
*
|
||||
* // result = "1.23456×10<sup>-78</sup>"
|
||||
* helper.insetMarkup(appendTo, fpositer, "<sup>", "</sup>", result, status));
|
||||
* helper.insertMarkup(appendTo, fpositer, "<sup>", "</sup>", result, status));
|
||||
* </pre>
|
||||
*
|
||||
* @see NumberFormat
|
||||
|
@ -92,7 +92,7 @@ class U_I18N_API ScientificFormatHelper : public UObject {
|
|||
* @return the value stored in result.
|
||||
* @draft ICU 54
|
||||
*/
|
||||
UnicodeString &insetMarkup(
|
||||
UnicodeString &insertMarkup(
|
||||
const UnicodeString &s,
|
||||
FieldPositionIterator &fpi,
|
||||
const UnicodeString &beginMarkup,
|
||||
|
|
|
@ -55,9 +55,9 @@ void ScientificFormatHelperTest::TestBasic() {
|
|||
UnicodeString result;
|
||||
const char *expected = "String: 1.23456\\u00d710<sup>-78</sup>";
|
||||
assertEquals(
|
||||
"insetMarkup",
|
||||
"insertMarkup",
|
||||
UnicodeString(expected).unescape(),
|
||||
helper.insetMarkup(appendTo, fpositer, "<sup>", "</sup>", result, status));
|
||||
helper.insertMarkup(appendTo, fpositer, "<sup>", "</sup>", result, status));
|
||||
result.remove();
|
||||
expected = "String: 1.23456\\u00d710\\u207b\\u2077\\u2078";
|
||||
assertEquals(
|
||||
|
|
Loading…
Add table
Reference in a new issue