summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-01 13:14:02 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-01 13:14:02 +0000
commitdf81d57d94069b74fbd7f8534957510a9f4f02bf (patch)
tree7a4c3815241048d7daf22280d75fcd3d331a024e
parent9fcba299458404f10f2cdc7ef1312e45382cb9b4 (diff)
INTEGRATION: CWS sb3 (1.8.46); FILE MERGED
2003/03/03 15:55:03 sb 1.8.46.1: #107718# Converting between Windows code pages and rtl_TextEncoding.
-rw-r--r--sal/inc/rtl/tencinfo.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/sal/inc/rtl/tencinfo.h b/sal/inc/rtl/tencinfo.h
index e83ef2d9bd78..adfa37948535 100644
--- a/sal/inc/rtl/tencinfo.h
+++ b/sal/inc/rtl/tencinfo.h
@@ -2,9 +2,9 @@
*
* $RCSfile: tencinfo.h,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: sb $ $Date: 2002-12-10 10:30:54 $
+ * last change: $Author: vg $ $Date: 2003-04-01 14:14:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -280,6 +280,31 @@ const sal_Char* SAL_CALL rtl_getBestMimeCharsetFromTextEncoding( rtl_TextEncodin
*/
const sal_Char* SAL_CALL rtl_getBestUnixCharsetFromTextEncoding( rtl_TextEncoding eTextEncoding );
+/** Map from a Windows code page to a text encoding.
+
+ @param nCodePage
+ Any Windows code page number.
+
+ @return
+ The corresponding rtl_TextEncoding value (which will be an octet text
+ encoding, see rtl_isOctetTextEncoding), or RTL_TEXTENCODING_DONTKNOW if no
+ mapping is applicable.
+ */
+rtl_TextEncoding SAL_CALL
+rtl_getTextEncodingFromWindowsCodePage(sal_uInt32 nCodePage);
+
+/** Map from a text encoding to a Windows code page.
+
+ @param nEncoding
+ Any rtl_TextEncoding value.
+
+ @return
+ The corresponding Windows code page number, or 0 if no mapping is
+ applicable.
+ */
+sal_uInt32 SAL_CALL
+rtl_getWindowsCodePageFromTextEncoding(rtl_TextEncoding nEncoding);
+
#ifdef __cplusplus
}
#endif