Kaydet (Commit) a8e52f12 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Add a comment clarifying the intent of the code that may look like a bug.

Change-Id: Idd340f939bcfbe6bb8cf2f589662ea8691e1606c
üst af3916f8
...@@ -2188,6 +2188,9 @@ OUString decodeNumberFormat(const OUString& rFmt) ...@@ -2188,6 +2188,9 @@ OUString decodeNumberFormat(const OUString& rFmt)
} }
if (nDigitCount) if (nDigitCount)
{ {
// Hex-encoded character found. Decode it back into its
// original character. An example of number format with
// hex-encoded chars: "\0022$\0022\#\,\#\#0\.00"
sal_Int32 nVal = OUString(p1, nDigitCount).toInt32(16); sal_Int32 nVal = OUString(p1, nDigitCount).toInt32(16);
aBuf.append(static_cast<sal_Unicode>(nVal)); aBuf.append(static_cast<sal_Unicode>(nVal));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment