summaryrefslogtreecommitdiff
path: root/svl/inc/svl
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-02-23 13:38:21 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-02-23 13:39:50 -0500
commitcbfec50fa0f3c1fc49bd67fb197c9f97b03d8750 (patch)
treeb59453e96768beb7c8cef9df7baf2719181a68c0 /svl/inc/svl
parent7ab87dce855a09a2c0e0563afe9229641bea3850 (diff)
Updated method documentation to be more specific.
Diffstat (limited to 'svl/inc/svl')
-rw-r--r--svl/inc/svl/zformat.hxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/svl/inc/svl/zformat.hxx b/svl/inc/svl/zformat.hxx
index 1ecfaa4938f4..a551fe27cdf1 100644
--- a/svl/inc/svl/zformat.hxx
+++ b/svl/inc/svl/zformat.hxx
@@ -489,7 +489,23 @@ private:
xub_StrLen& nPos,
String& sSymbol );
- // get xxx of "[$-xxx]" as LanguageType, starting at and advancing position nPos
+ /**
+ * Parse the content of '[$-xxx] or '[$-xxxxxxxx]' and extract the
+ * language type from it. Given the string, start parsing at position
+ * specified by nPos, and store the end position with nPos when the
+ * parsing is complete. The nPos should point to the '$' before the
+ * parsing, and to the closing bracket after the parsing. When the
+ * content is [$-xxx], the xxx part represents the language type (aka
+ * LCID) in hex numerals. When the content is [$-xxxxxxxx] the last 4
+ * digits is the LCID (again in hex).
+ *
+ * @param rString input string
+ * @param nPos position (see above).
+ *
+ * @return LCID that specifies language type. See i18npool/lang.h for a
+ * complete list of language types. These numbers also correspond
+ * with the numbers used by Microsoft Office.
+ */
SVL_DLLPRIVATE static LanguageType ImpGetLanguageType( const String& rString, xub_StrLen& nPos );
// standard number output