Tag: cws_src680_dba22ui User: fs Date: 2006/10/25 03:39:52 Modified: dba/connectivity/inc/connectivity/dbconversion.hxx
Log: +convertUnicodeStringToLength Issue number: #i62664# Submitted by: [EMAIL PROTECTED] Reviewed by: [EMAIL PROTECTED] File Changes: Directory: /dba/connectivity/inc/connectivity/ ============================================== File [changed]: dbconversion.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/dbconversion.hxx?r1=1.13&r2=1.13.190.1 Delta lines: +34 -3 -------------------- --- dbconversion.hxx 8 Sep 2005 05:00:55 -0000 1.13 +++ dbconversion.hxx 25 Oct 2006 10:39:49 -0000 1.13.190.1 @@ -4,9 +4,9 @@ * * $RCSfile: dbconversion.hxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.13.190.1 $ * - * last change: $Author: rt $ $Date: 2005/09/08 05:00:55 $ + * last change: $Author: fs $ $Date: 2006/10/25 10:39:49 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -196,6 +196,37 @@ ::rtl::OString& _rDest, rtl_TextEncoding _eEncoding ) + SAL_THROW((::com::sun::star::sdbc::SQLException)); + + /** converts a Unicode string into a 8-bit string, using the given encoding + + @param _rSource + the source string to convert + + @param _rDest + the destination string + + @param _nMaxLen + the maximum length of the destination string + + @param _eEncoding + the encoding to use for the conversion + + @throws com::sun::star::sdbc::SQLException + if convertUnicodeString, which is called internally, throws such an exception + + @throws com::sun::star::sdbc::SQLException + if the conversion results in a string which is longer than _nMaxLen + + @return + the length of the converted string + */ + static sal_Int32 convertUnicodeStringToLength( + const ::rtl::OUString& _rSource, + ::rtl::OString& _rDest, + sal_Int32 _nMaxLen, + rtl_TextEncoding _eEncoding + ) SAL_THROW((::com::sun::star::sdbc::SQLException)); }; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
