diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-02-28 13:09:46 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-05 13:11:51 +0100 |
commit | 9db31fc5669abd1e1f8db5e9267c91423b36f223 (patch) | |
tree | d424ded1751283403f96d89e301d911f7eff5a15 /sal/rtl | |
parent | 282e96fb345761edb9015e8066189c3cbe5b8396 (diff) |
rtl_uString_newFromAscii_WithLength() and use it in OUString
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/source/ustring.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sal/rtl/source/ustring.cxx b/sal/rtl/source/ustring.cxx index 7c99758a9b6c..763d9c51e573 100644 --- a/sal/rtl/source/ustring.cxx +++ b/sal/rtl/source/ustring.cxx @@ -471,6 +471,14 @@ void SAL_CALL rtl_uString_newFromAscii( rtl_uString** ppThis, else nLen = 0; + rtl_uString_newFromAscii_WithLength( ppThis, pCharStr, nLen ); +} + +void SAL_CALL rtl_uString_newFromAscii_WithLength( rtl_uString** ppThis, + const sal_Char* pCharStr, + sal_Int32 nLen ) + SAL_THROW_EXTERN_C() +{ if ( !nLen ) { IMPL_RTL_STRINGNAME( new )( ppThis ); @@ -489,7 +497,7 @@ void SAL_CALL rtl_uString_newFromAscii( rtl_uString** ppThis, { /* Check ASCII range */ SAL_WARN_IF( ((unsigned char)*pCharStr) > 127, "rtl.string", - "rtl_uString_newFromAscii - Found char > 127" ); + "rtl_uString_newFromAscii_WithLength - Found char > 127" ); *pBuffer = *pCharStr; pBuffer++; |