summaryrefslogtreecommitdiff
path: root/sal/inc
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-06-09 11:46:33 +0000
committerRüdiger Timm <rt@openoffice.org>2008-06-09 11:46:33 +0000
commit6f8cccd0d616f71d7b71bfa3904394e8315d7008 (patch)
tree8cde21de78a998ab881d511af286c703c65f7f10 /sal/inc
parent6061c95c6e01ff2a15e7631f28b2911a52a26b0d (diff)
INTEGRATION: CWS sb87 (1.7.380); FILE MERGED
2008/05/06 11:45:22 sb 1.7.380.3: #i88211# missing const 2008/04/24 13:18:53 sb 1.7.380.2: RESYNC: (1.7-1.8); FILE MERGED 2008/04/21 09:40:11 sb 1.7.380.1: #i88211# added rtl_bootstrap_encode
Diffstat (limited to 'sal/inc')
-rw-r--r--sal/inc/rtl/bootstrap.hxx23
1 files changed, 22 insertions, 1 deletions
diff --git a/sal/inc/rtl/bootstrap.hxx b/sal/inc/rtl/bootstrap.hxx
index fd1f74a8c989..0cbc72ae11d8 100644
--- a/sal/inc/rtl/bootstrap.hxx
+++ b/sal/inc/rtl/bootstrap.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: bootstrap.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
* This file is part of OpenOffice.org.
*
@@ -145,6 +145,20 @@ namespace rtl
*/
inline rtlBootstrapHandle getHandle() const SAL_THROW( () )
{ return _handle; }
+
+ /** Escapes special characters ("$" and "\").
+
+ @param value
+ an arbitrary value
+
+ @return
+ the given value, with all occurences of special characters ("$" and
+ "\") escaped
+
+ @since UDK 3.2.9
+ */
+ static inline ::rtl::OUString encode( ::rtl::OUString const & value )
+ SAL_THROW( () );
};
//----------------------------------------------------------------------------
@@ -212,5 +226,12 @@ namespace rtl
rtl_bootstrap_get_iniName_from_handle(_handle, &iniName.pData);
}
+ inline ::rtl::OUString Bootstrap::encode( ::rtl::OUString const & value )
+ SAL_THROW( () )
+ {
+ ::rtl::OUString encoded;
+ rtl_bootstrap_encode(value.pData, &encoded.pData);
+ return encoded;
+ }
}
#endif