No need to use SAL_THROW_EXTERN_C macro in CXX
Change-Id: I6eb9f0431a9402479a2d90d5b6f68b611d52a9f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175957 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
a9d1324b1d
commit
ad686b26ce
48 changed files with 468 additions and 728 deletions
|
@ -147,8 +147,7 @@ static void environmentDisposing(
|
|||
#define uno_initEnvironment CPPU_ENV_uno_initEnvironment
|
||||
#endif
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void uno_initEnvironment(uno_Environment * pCppEnv)
|
||||
SAL_THROW_EXTERN_C()
|
||||
SAL_DLLPUBLIC_EXPORT void uno_initEnvironment(uno_Environment * pCppEnv) noexcept
|
||||
{
|
||||
assert(pCppEnv->pExtEnv);
|
||||
assert(
|
||||
|
@ -168,8 +167,7 @@ SAL_DLLPUBLIC_EXPORT void uno_initEnvironment(uno_Environment * pCppEnv)
|
|||
#endif
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void uno_ext_getMapping(
|
||||
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo)
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo) noexcept
|
||||
{
|
||||
assert(ppMapping && pFrom && pTo);
|
||||
if (!(ppMapping && pFrom && pTo && pFrom->pExtEnv && pTo->pExtEnv))
|
||||
|
|
|
@ -39,16 +39,14 @@ extern "C"
|
|||
{
|
||||
|
||||
|
||||
void Mapping_acquire( uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void Mapping_acquire( uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
Mapping const * that = static_cast< Mapping const * >( mapping );
|
||||
that->m_bridge->acquire();
|
||||
}
|
||||
|
||||
|
||||
void Mapping_release( uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void Mapping_release( uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
Mapping const * that = static_cast< Mapping const * >( mapping );
|
||||
that->m_bridge->release();
|
||||
|
@ -57,8 +55,7 @@ void Mapping_release( uno_Mapping * mapping )
|
|||
|
||||
void Mapping_map_to_uno(
|
||||
uno_Mapping * mapping, void ** ppOut,
|
||||
void * pIn, typelib_InterfaceTypeDescription * td )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * pIn, typelib_InterfaceTypeDescription * td ) noexcept
|
||||
{
|
||||
uno_Interface ** ppUnoI = reinterpret_cast<uno_Interface **>(ppOut);
|
||||
jobject javaI = static_cast<jobject>(pIn);
|
||||
|
@ -116,8 +113,7 @@ void Mapping_map_to_uno(
|
|||
|
||||
void Mapping_map_to_java(
|
||||
uno_Mapping * mapping, void ** ppOut,
|
||||
void * pIn, typelib_InterfaceTypeDescription * td )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * pIn, typelib_InterfaceTypeDescription * td ) noexcept
|
||||
{
|
||||
jobject * ppJavaI = reinterpret_cast<jobject *>(ppOut);
|
||||
uno_Interface * pUnoI = static_cast<uno_Interface *>(pIn);
|
||||
|
@ -177,8 +173,7 @@ void Mapping_map_to_java(
|
|||
}
|
||||
|
||||
|
||||
void Bridge_free( uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void Bridge_free( uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
Mapping * that = static_cast< Mapping * >( mapping );
|
||||
delete that->m_bridge;
|
||||
|
@ -465,8 +460,7 @@ static void java_env_disposing(uno_Environment * env) {
|
|||
#endif
|
||||
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void uno_initEnvironment( uno_Environment * java_env )
|
||||
SAL_THROW_EXTERN_C()
|
||||
SAL_DLLPUBLIC_EXPORT void uno_initEnvironment( uno_Environment * java_env ) noexcept
|
||||
{
|
||||
try {
|
||||
// JavaComponentLoader::getJavaLoader (in
|
||||
|
@ -511,8 +505,7 @@ SAL_DLLPUBLIC_EXPORT void uno_initEnvironment( uno_Environment * java_env )
|
|||
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void uno_ext_getMapping(
|
||||
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo ) noexcept
|
||||
{
|
||||
assert(ppMapping != nullptr);
|
||||
assert(pFrom != nullptr);
|
||||
|
|
|
@ -964,8 +964,7 @@ extern "C"
|
|||
|
||||
SAL_JNI_EXPORT void
|
||||
JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1info_1holder_finalize__J(
|
||||
JNIEnv * jni_env, SAL_UNUSED_PARAMETER jobject, jlong jni_info_handle )
|
||||
SAL_THROW_EXTERN_C()
|
||||
JNIEnv * jni_env, SAL_UNUSED_PARAMETER jobject, jlong jni_info_handle ) noexcept
|
||||
{
|
||||
::jni_uno::JNI_info * jni_info =
|
||||
reinterpret_cast< ::jni_uno::JNI_info * >( jni_info_handle );
|
||||
|
|
|
@ -40,22 +40,18 @@ extern "C"
|
|||
{
|
||||
|
||||
|
||||
void UNO_proxy_free( uno_ExtEnvironment * env, void * proxy )
|
||||
SAL_THROW_EXTERN_C();
|
||||
void UNO_proxy_free( uno_ExtEnvironment * env, void * proxy ) noexcept;
|
||||
|
||||
|
||||
void UNO_proxy_acquire( uno_Interface * pUnoI )
|
||||
SAL_THROW_EXTERN_C();
|
||||
void UNO_proxy_acquire( uno_Interface * pUnoI ) noexcept;
|
||||
|
||||
|
||||
void UNO_proxy_release( uno_Interface * pUnoI )
|
||||
SAL_THROW_EXTERN_C();
|
||||
void UNO_proxy_release( uno_Interface * pUnoI ) noexcept;
|
||||
|
||||
|
||||
void UNO_proxy_dispatch(
|
||||
uno_Interface * pUnoI, typelib_TypeDescription const * member_td,
|
||||
void * uno_ret, void * uno_args[], uno_Any ** uno_exc )
|
||||
SAL_THROW_EXTERN_C();
|
||||
void * uno_ret, void * uno_args[], uno_Any ** uno_exc ) noexcept;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -504,8 +500,7 @@ extern "C"
|
|||
{
|
||||
|
||||
|
||||
void UNO_proxy_free( uno_ExtEnvironment * env, void * proxy )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void UNO_proxy_free( uno_ExtEnvironment * env, void * proxy ) noexcept
|
||||
{
|
||||
UNO_proxy * that = static_cast< UNO_proxy * >( proxy );
|
||||
Bridge const * bridge = that->m_bridge;
|
||||
|
@ -542,16 +537,14 @@ void UNO_proxy_free( uno_ExtEnvironment * env, void * proxy )
|
|||
}
|
||||
|
||||
|
||||
void UNO_proxy_acquire( uno_Interface * pUnoI )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void UNO_proxy_acquire( uno_Interface * pUnoI ) noexcept
|
||||
{
|
||||
UNO_proxy const * that = static_cast< UNO_proxy const * >( pUnoI );
|
||||
that->acquire();
|
||||
}
|
||||
|
||||
|
||||
void UNO_proxy_release( uno_Interface * pUnoI )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void UNO_proxy_release( uno_Interface * pUnoI ) noexcept
|
||||
{
|
||||
UNO_proxy const * that = static_cast< UNO_proxy const * >( pUnoI );
|
||||
that->release();
|
||||
|
@ -560,8 +553,7 @@ void UNO_proxy_release( uno_Interface * pUnoI )
|
|||
|
||||
void UNO_proxy_dispatch(
|
||||
uno_Interface * pUnoI, typelib_TypeDescription const * member_td,
|
||||
void * uno_ret, void * uno_args [], uno_Any ** uno_exc )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * uno_ret, void * uno_args [], uno_Any ** uno_exc ) noexcept
|
||||
{
|
||||
UNO_proxy const * that = static_cast< UNO_proxy const * >( pUnoI );
|
||||
Bridge const * bridge = that->m_bridge;
|
||||
|
|
|
@ -86,7 +86,7 @@ static void executeRequest(void * data) {
|
|||
|
||||
extern "C" SAL_JNI_EXPORT jbyteArray JNICALL
|
||||
Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_threadId(
|
||||
JNIEnv * env, SAL_UNUSED_PARAMETER jclass) SAL_THROW_EXTERN_C()
|
||||
JNIEnv * env, SAL_UNUSED_PARAMETER jclass) noexcept
|
||||
{
|
||||
sal_Sequence * s = nullptr;
|
||||
uno_getIdOfCurrentThread(&s); //TODO: out of memory
|
||||
|
@ -111,7 +111,7 @@ Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_threadId(
|
|||
|
||||
extern "C" SAL_JNI_EXPORT jlong JNICALL
|
||||
Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_create(
|
||||
JNIEnv * env, SAL_UNUSED_PARAMETER jclass) SAL_THROW_EXTERN_C()
|
||||
JNIEnv * env, SAL_UNUSED_PARAMETER jclass) noexcept
|
||||
{
|
||||
JavaVM * vm;
|
||||
if (env->GetJavaVM(&vm) != JNI_OK) { //TODO: no Java exception raised?
|
||||
|
@ -141,15 +141,14 @@ Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_create(
|
|||
|
||||
extern "C" SAL_JNI_EXPORT void JNICALL
|
||||
Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_attach(
|
||||
SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool)
|
||||
SAL_THROW_EXTERN_C()
|
||||
SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool) noexcept
|
||||
{
|
||||
uno_threadpool_attach(reinterpret_cast< Pool * >(pool)->pool);
|
||||
}
|
||||
|
||||
extern "C" SAL_JNI_EXPORT jobject JNICALL
|
||||
Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_enter(
|
||||
JNIEnv * env, SAL_UNUSED_PARAMETER jclass, jlong pool) SAL_THROW_EXTERN_C()
|
||||
JNIEnv * env, SAL_UNUSED_PARAMETER jclass, jlong pool) noexcept
|
||||
{
|
||||
jobject job;
|
||||
uno_threadpool_enter(
|
||||
|
@ -165,8 +164,7 @@ Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_enter(
|
|||
|
||||
extern "C" SAL_JNI_EXPORT void JNICALL
|
||||
Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_detach(
|
||||
SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool)
|
||||
SAL_THROW_EXTERN_C()
|
||||
SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool) noexcept
|
||||
{
|
||||
uno_threadpool_detach(reinterpret_cast< Pool * >(pool)->pool);
|
||||
}
|
||||
|
@ -174,7 +172,7 @@ Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_detach(
|
|||
extern "C" SAL_JNI_EXPORT void JNICALL
|
||||
Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_putJob(
|
||||
JNIEnv * env, SAL_UNUSED_PARAMETER jclass, jlong pool, jbyteArray threadId,
|
||||
jobject job, jboolean request, jboolean oneWay) SAL_THROW_EXTERN_C()
|
||||
jobject job, jboolean request, jboolean oneWay) noexcept
|
||||
{
|
||||
void * s = env->GetPrimitiveArrayCritical(threadId, nullptr);
|
||||
if (s == nullptr) {
|
||||
|
@ -208,16 +206,14 @@ Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_putJob(
|
|||
|
||||
extern "C" SAL_JNI_EXPORT void JNICALL
|
||||
Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_dispose(
|
||||
SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool)
|
||||
SAL_THROW_EXTERN_C()
|
||||
SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool) noexcept
|
||||
{
|
||||
uno_threadpool_dispose(reinterpret_cast< Pool * >(pool)->pool);
|
||||
}
|
||||
|
||||
extern "C" SAL_JNI_EXPORT void JNICALL
|
||||
Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_destroy(
|
||||
SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool)
|
||||
SAL_THROW_EXTERN_C()
|
||||
SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool) noexcept
|
||||
{
|
||||
Pool * p = reinterpret_cast< Pool * >(pool);
|
||||
uno_threadpool_destroy(p->pool);
|
||||
|
|
|
@ -16,26 +16,26 @@ namespace net_uno
|
|||
{
|
||||
namespace
|
||||
{
|
||||
void SAL_CALL Mapping_acquire(uno_Mapping* mapping) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL Mapping_acquire(uno_Mapping* mapping) noexcept
|
||||
{
|
||||
Mapping* that = static_cast<Mapping*>(mapping);
|
||||
that->m_bridge->acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL Mapping_release(uno_Mapping* mapping) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL Mapping_release(uno_Mapping* mapping) noexcept
|
||||
{
|
||||
Mapping* that = static_cast<Mapping*>(mapping);
|
||||
that->m_bridge->release();
|
||||
}
|
||||
|
||||
void SAL_CALL Mapping_free(uno_Mapping* mapping) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL Mapping_free(uno_Mapping* mapping) noexcept
|
||||
{
|
||||
Mapping* that = static_cast<Mapping*>(mapping);
|
||||
delete that->m_bridge;
|
||||
}
|
||||
|
||||
void SAL_CALL Mapping_net2uno(uno_Mapping* mapping, void** ppOut, void* pIn,
|
||||
typelib_InterfaceTypeDescription* pTD) SAL_THROW_EXTERN_C()
|
||||
typelib_InterfaceTypeDescription* pTD) noexcept
|
||||
{
|
||||
assert(ppOut && pTD && "### null ptr!");
|
||||
|
||||
|
@ -51,7 +51,7 @@ void SAL_CALL Mapping_net2uno(uno_Mapping* mapping, void** ppOut, void* pIn,
|
|||
}
|
||||
|
||||
void SAL_CALL Mapping_uno2net(uno_Mapping* mapping, void** ppOut, void* pIn,
|
||||
typelib_InterfaceTypeDescription* pTD) SAL_THROW_EXTERN_C()
|
||||
typelib_InterfaceTypeDescription* pTD) noexcept
|
||||
{
|
||||
assert(ppOut && pTD && "### null ptr!");
|
||||
|
||||
|
@ -130,7 +130,7 @@ static void net_env_disposing(uno_Environment* env)
|
|||
delete static_cast<Context*>(env->pContext);
|
||||
}
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void uno_initEnvironment(uno_Environment* net_env) SAL_THROW_EXTERN_C()
|
||||
SAL_DLLPUBLIC_EXPORT void uno_initEnvironment(uno_Environment* net_env) noexcept
|
||||
{
|
||||
// The code creating the uno_Environment needs to initialize
|
||||
// pContext with a Context object, complete with all callbacks.
|
||||
|
@ -141,7 +141,7 @@ SAL_DLLPUBLIC_EXPORT void uno_initEnvironment(uno_Environment* net_env) SAL_THRO
|
|||
}
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void uno_ext_getMapping(uno_Mapping** ppMapping, uno_Environment* pFrom,
|
||||
uno_Environment* pTo) SAL_THROW_EXTERN_C()
|
||||
uno_Environment* pTo) noexcept
|
||||
{
|
||||
assert(ppMapping && pFrom && pTo);
|
||||
|
||||
|
|
|
@ -16,28 +16,26 @@ namespace net_uno
|
|||
{
|
||||
namespace
|
||||
{
|
||||
void SAL_CALL NetProxy_acquire(uno_Interface* pUnoI) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL NetProxy_acquire(uno_Interface* pUnoI) noexcept
|
||||
{
|
||||
NetProxy* that = static_cast<NetProxy*>(pUnoI);
|
||||
that->acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL NetProxy_release(uno_Interface* pUnoI) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL NetProxy_release(uno_Interface* pUnoI) noexcept
|
||||
{
|
||||
NetProxy* that = static_cast<NetProxy*>(pUnoI);
|
||||
that->release();
|
||||
}
|
||||
|
||||
void SAL_CALL NetProxy_free([[maybe_unused]] uno_ExtEnvironment* pEnv, void* pUnoI)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL NetProxy_free([[maybe_unused]] uno_ExtEnvironment* pEnv, void* pUnoI) noexcept
|
||||
{
|
||||
NetProxy* that = static_cast<NetProxy*>(pUnoI);
|
||||
delete that;
|
||||
}
|
||||
|
||||
void SAL_CALL NetProxy_dispatch(uno_Interface* pUnoI, const typelib_TypeDescription* pMemberTD,
|
||||
void* pUnoRet, void** pUnoArgs, uno_Any** pUnoExc)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void* pUnoRet, void** pUnoArgs, uno_Any** pUnoExc) noexcept
|
||||
{
|
||||
NetProxy* proxy = static_cast<NetProxy*>(pUnoI);
|
||||
|
||||
|
|
|
@ -39,15 +39,13 @@ namespace cli_uno
|
|||
|
||||
extern "C"
|
||||
{
|
||||
void SAL_CALL Mapping_acquire( uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL Mapping_acquire( uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
Mapping const * that = static_cast< Mapping const * >( mapping );
|
||||
that->m_bridge->acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL Mapping_release( uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL Mapping_release( uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
Mapping const * that = static_cast< Mapping const * >( mapping );
|
||||
that->m_bridge->release();
|
||||
|
@ -56,8 +54,7 @@ void SAL_CALL Mapping_release( uno_Mapping * mapping )
|
|||
|
||||
void SAL_CALL Mapping_cli2uno(
|
||||
uno_Mapping * mapping, void ** ppOut,
|
||||
void * pIn, typelib_InterfaceTypeDescription * td )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * pIn, typelib_InterfaceTypeDescription * td ) noexcept
|
||||
{
|
||||
uno_Interface ** ppUnoI = (uno_Interface **)ppOut;
|
||||
intptr_t cliI = (intptr_t)pIn;
|
||||
|
@ -90,8 +87,7 @@ void SAL_CALL Mapping_cli2uno(
|
|||
|
||||
void SAL_CALL Mapping_uno2cli(
|
||||
uno_Mapping * mapping, void ** ppOut,
|
||||
void * pIn, typelib_InterfaceTypeDescription * td )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * pIn, typelib_InterfaceTypeDescription * td ) noexcept
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -143,8 +139,7 @@ void SAL_CALL Mapping_uno2cli(
|
|||
}
|
||||
|
||||
|
||||
void SAL_CALL Bridge_free( uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL Bridge_free( uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
Mapping * that = static_cast< Mapping * >( mapping );
|
||||
delete that->m_bridge;
|
||||
|
@ -238,15 +233,13 @@ extern "C"
|
|||
namespace cli_uno
|
||||
{
|
||||
|
||||
void SAL_CALL cli_env_disposing( uno_Environment * uno_cli_env )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL cli_env_disposing( uno_Environment * uno_cli_env ) noexcept
|
||||
{
|
||||
uno_cli_env->pContext = 0;
|
||||
}
|
||||
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_initEnvironment( uno_Environment * uno_cli_env )
|
||||
SAL_THROW_EXTERN_C()
|
||||
SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_initEnvironment( uno_Environment * uno_cli_env ) noexcept
|
||||
{
|
||||
//ToDo: remove when compiled with .NET 2
|
||||
|
||||
|
@ -273,8 +266,7 @@ SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_initEnvironment( uno_Environment * uno_cl
|
|||
}
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void SAL_CALL uno_ext_getMapping(
|
||||
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo ) noexcept
|
||||
{
|
||||
assert(ppMapping && pFrom && pTo);
|
||||
if (*ppMapping)
|
||||
|
|
|
@ -42,19 +42,15 @@ using namespace cli_uno;
|
|||
extern "C"
|
||||
{
|
||||
|
||||
void SAL_CALL cli_proxy_free( uno_ExtEnvironment * env, void * proxy )
|
||||
SAL_THROW_EXTERN_C();
|
||||
void SAL_CALL cli_proxy_free( uno_ExtEnvironment * env, void * proxy ) noexcept;
|
||||
|
||||
void SAL_CALL cli_proxy_acquire( uno_Interface * pUnoI )
|
||||
SAL_THROW_EXTERN_C();
|
||||
void SAL_CALL cli_proxy_acquire( uno_Interface * pUnoI ) noexcept;
|
||||
|
||||
void SAL_CALL cli_proxy_release( uno_Interface * pUnoI )
|
||||
SAL_THROW_EXTERN_C();
|
||||
void SAL_CALL cli_proxy_release( uno_Interface * pUnoI ) noexcept;
|
||||
|
||||
void SAL_CALL cli_proxy_dispatch(
|
||||
uno_Interface * pUnoI, typelib_TypeDescription const * member_td,
|
||||
void * uno_ret, void * uno_args[], uno_Any ** uno_exc )
|
||||
SAL_THROW_EXTERN_C();
|
||||
void * uno_ret, void * uno_args[], uno_Any ** uno_exc ) noexcept;
|
||||
|
||||
|
||||
}
|
||||
|
@ -886,8 +882,7 @@ inline void CliProxy::release() const
|
|||
|
||||
|
||||
extern "C"
|
||||
void SAL_CALL cli_proxy_free( uno_ExtEnvironment *, void * proxy )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL cli_proxy_free( uno_ExtEnvironment *, void * proxy ) noexcept
|
||||
{
|
||||
cli_uno::CliProxy * cliProxy = reinterpret_cast<
|
||||
cli_uno::CliProxy * >( proxy );
|
||||
|
@ -896,16 +891,14 @@ void SAL_CALL cli_proxy_free( uno_ExtEnvironment *, void * proxy )
|
|||
}
|
||||
|
||||
extern "C"
|
||||
void SAL_CALL cli_proxy_acquire( uno_Interface * pUnoI )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL cli_proxy_acquire( uno_Interface * pUnoI ) noexcept
|
||||
{
|
||||
CliProxy const * cliProxy = static_cast< CliProxy const * >( pUnoI );
|
||||
cliProxy->acquire();
|
||||
}
|
||||
|
||||
extern "C"
|
||||
void SAL_CALL cli_proxy_release( uno_Interface * pUnoI )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL cli_proxy_release( uno_Interface * pUnoI ) noexcept
|
||||
{
|
||||
CliProxy * cliProxy = static_cast< CliProxy * >( pUnoI );
|
||||
cliProxy->release();
|
||||
|
@ -916,8 +909,7 @@ extern "C"
|
|||
|
||||
void SAL_CALL cli_proxy_dispatch(
|
||||
uno_Interface * pUnoI, typelib_TypeDescription const * member_td,
|
||||
void * uno_ret, void * uno_args [], uno_Any ** uno_exc )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * uno_ret, void * uno_args [], uno_Any ** uno_exc ) noexcept
|
||||
{
|
||||
CliProxy * proxy = static_cast< CliProxy* >( pUnoI );
|
||||
try
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace comphelper
|
|||
{
|
||||
extern "C" {
|
||||
|
||||
static int compare_OUString_Property_Impl(const void* arg1, const void* arg2) SAL_THROW_EXTERN_C()
|
||||
static int compare_OUString_Property_Impl(const void* arg1, const void* arg2) noexcept
|
||||
{
|
||||
return static_cast<OUString const*>(arg1)->compareTo(static_cast<Property const*>(arg2)->Name);
|
||||
}
|
||||
|
|
|
@ -344,8 +344,7 @@ bool AffineBridge::v_isValid(OUString * pReason)
|
|||
|
||||
#endif
|
||||
|
||||
extern "C" void SAL_DLLPUBLIC_EXPORT uno_initEnvironment(uno_Environment * pEnv)
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_DLLPUBLIC_EXPORT uno_initEnvironment(uno_Environment * pEnv) noexcept
|
||||
{
|
||||
cppu::helper::purpenv::Environment_initWithEnterable(pEnv, new AffineBridge());
|
||||
}
|
||||
|
|
|
@ -246,8 +246,7 @@ static void LogProbe(
|
|||
|
||||
#endif
|
||||
|
||||
extern "C" void SAL_DLLPUBLIC_EXPORT uno_initEnvironment(uno_Environment * pEnv)
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_DLLPUBLIC_EXPORT uno_initEnvironment(uno_Environment * pEnv) noexcept
|
||||
{
|
||||
cppu::helper::purpenv::Environment_initWithEnterable(pEnv, new LogBridge());
|
||||
}
|
||||
|
|
|
@ -128,8 +128,7 @@ bool UnsafeBridge::v_isValid(OUString * pReason)
|
|||
return result;
|
||||
}
|
||||
|
||||
extern "C" void SAL_DLLPUBLIC_EXPORT uno_initEnvironment(uno_Environment * pEnv)
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_DLLPUBLIC_EXPORT uno_initEnvironment(uno_Environment * pEnv) noexcept
|
||||
{
|
||||
cppu::helper::purpenv::Environment_initWithEnterable(pEnv, new UnsafeBridge());
|
||||
}
|
||||
|
|
|
@ -21,14 +21,14 @@ extern "C" {
|
|||
|
||||
SAL_DLLPUBLIC_EXPORT void SAL_CALL typelib_static_array_type_init(
|
||||
typelib_TypeDescriptionReference **, typelib_TypeDescriptionReference *,
|
||||
sal_Int32, ...) SAL_THROW_EXTERN_C()
|
||||
sal_Int32, ...) noexcept
|
||||
{
|
||||
std::abort();
|
||||
}
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void SAL_CALL typelib_typedescription_newArray(
|
||||
typelib_TypeDescription **, typelib_TypeDescriptionReference *,
|
||||
sal_Int32, sal_Int32 *) SAL_THROW_EXTERN_C()
|
||||
sal_Int32, sal_Int32 *) noexcept
|
||||
{
|
||||
std::abort();
|
||||
}
|
||||
|
@ -36,8 +36,7 @@ SAL_DLLPUBLIC_EXPORT void SAL_CALL typelib_typedescription_newArray(
|
|||
SAL_DLLPUBLIC_EXPORT void SAL_CALL typelib_typedescription_newUnion(
|
||||
typelib_TypeDescription **, rtl_uString *,
|
||||
typelib_TypeDescriptionReference *, sal_Int64,
|
||||
typelib_TypeDescriptionReference *, sal_Int32, void *)
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference *, sal_Int32, void *) noexcept
|
||||
{
|
||||
std::abort();
|
||||
}
|
||||
|
|
|
@ -29,8 +29,7 @@ using namespace ::rtl;
|
|||
|
||||
|
||||
extern "C" rtl_uString * SAL_CALL cppu_unsatisfied_iquery_msg(
|
||||
typelib_TypeDescriptionReference * pType )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference * pType ) noexcept
|
||||
{
|
||||
OUString ret = "unsatisfied query for interface of type "
|
||||
+ OUString::unacquired( &pType->pTypeName ) + "!";
|
||||
|
@ -40,8 +39,7 @@ extern "C" rtl_uString * SAL_CALL cppu_unsatisfied_iquery_msg(
|
|||
|
||||
|
||||
extern "C" rtl_uString * SAL_CALL cppu_unsatisfied_iset_msg(
|
||||
typelib_TypeDescriptionReference * pType )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference * pType ) noexcept
|
||||
{
|
||||
OUString ret = "invalid attempt to assign an empty interface of type "
|
||||
+ OUString::unacquired( &pType->pTypeName ) + "!";
|
||||
|
@ -51,8 +49,7 @@ extern "C" rtl_uString * SAL_CALL cppu_unsatisfied_iset_msg(
|
|||
|
||||
|
||||
extern "C" rtl_uString * SAL_CALL cppu_Any_extraction_failure_msg(
|
||||
uno_Any const * pAny, typelib_TypeDescriptionReference * pType )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Any const * pAny, typelib_TypeDescriptionReference * pType ) noexcept
|
||||
{
|
||||
OUString ret = "Cannot extract an Any(" +
|
||||
OUString::unacquired(&pAny->pType->pTypeName) +
|
||||
|
|
|
@ -128,25 +128,25 @@ static void s_acquire(uno_Environment * pEnv) //SAL_THROW_EXTERN_C()
|
|||
pBase->acquire();
|
||||
}
|
||||
|
||||
static void s_release(uno_Environment * pEnv) SAL_THROW_EXTERN_C()
|
||||
static void s_release(uno_Environment * pEnv) noexcept
|
||||
{
|
||||
Base * pBase = static_cast<Base *>(pEnv->pReserved);
|
||||
pBase->release();
|
||||
}
|
||||
|
||||
static void s_harden(uno_Environment ** ppHardEnv, uno_Environment * pEnv) SAL_THROW_EXTERN_C()
|
||||
static void s_harden(uno_Environment ** ppHardEnv, uno_Environment * pEnv) noexcept
|
||||
{
|
||||
Base * pBase = static_cast<Base *>(pEnv->pReserved);
|
||||
pBase->harden(ppHardEnv);
|
||||
}
|
||||
|
||||
static void s_acquireWeak(uno_Environment * pEnv) SAL_THROW_EXTERN_C()
|
||||
static void s_acquireWeak(uno_Environment * pEnv) noexcept
|
||||
{
|
||||
Base * pBase = static_cast<Base *>(pEnv->pReserved);
|
||||
pBase->acquireWeak();
|
||||
}
|
||||
|
||||
static void s_releaseWeak(uno_Environment * pEnv) SAL_THROW_EXTERN_C()
|
||||
static void s_releaseWeak(uno_Environment * pEnv) noexcept
|
||||
{
|
||||
Base * pBase = static_cast<Base *>(pEnv->pReserved);
|
||||
pBase->releaseWeak();
|
||||
|
|
|
@ -63,8 +63,7 @@ static void s_mapInterface(
|
|||
uno_Mapping * puno_Mapping,
|
||||
void ** ppOut,
|
||||
void * pUnoI,
|
||||
typelib_InterfaceTypeDescription * pTypeDescr )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_InterfaceTypeDescription * pTypeDescr ) noexcept
|
||||
{
|
||||
Mapping * pMapping = static_cast<Mapping *>(puno_Mapping);
|
||||
pMapping->mapInterface(
|
||||
|
@ -73,15 +72,13 @@ static void s_mapInterface(
|
|||
}
|
||||
|
||||
extern "C" {
|
||||
static void s_acquire(uno_Mapping * puno_Mapping)
|
||||
SAL_THROW_EXTERN_C()
|
||||
static void s_acquire(uno_Mapping * puno_Mapping) noexcept
|
||||
{
|
||||
Mapping * pMapping = static_cast<Mapping *>(puno_Mapping);
|
||||
pMapping->acquire();
|
||||
}
|
||||
|
||||
static void s_release(uno_Mapping * puno_Mapping)
|
||||
SAL_THROW_EXTERN_C()
|
||||
static void s_release(uno_Mapping * puno_Mapping) noexcept
|
||||
{
|
||||
Mapping * pMapping = static_cast<Mapping * >(puno_Mapping);
|
||||
pMapping->release();
|
||||
|
@ -97,8 +94,7 @@ static void s_getIdentifier_v(va_list * pParam)
|
|||
pEnv->getObjectIdentifier(pEnv, ppOid, pUnoI);
|
||||
}
|
||||
|
||||
static void s_free(uno_Mapping * puno_Mapping)
|
||||
SAL_THROW_EXTERN_C()
|
||||
static void s_free(uno_Mapping * puno_Mapping) noexcept
|
||||
{
|
||||
Mapping * pMapping = static_cast<Mapping *>(puno_Mapping);
|
||||
delete pMapping;
|
||||
|
|
|
@ -103,8 +103,7 @@ extern "C" { static void s_Proxy_dispatch(
|
|||
typelib_TypeDescription const * pMemberType,
|
||||
void * pReturn,
|
||||
void * pArgs[],
|
||||
uno_Any ** ppException)
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Any ** ppException) noexcept
|
||||
{
|
||||
Proxy * pThis = static_cast<Proxy *>(pUnoI);
|
||||
|
||||
|
@ -158,20 +157,20 @@ extern "C" { static void s_Proxy_dispatch(
|
|||
ppException );
|
||||
}}
|
||||
|
||||
extern "C" void Proxy_free(SAL_UNUSED_PARAMETER uno_ExtEnvironment * /*pEnv*/, void * pProxy) SAL_THROW_EXTERN_C()
|
||||
extern "C" void Proxy_free(SAL_UNUSED_PARAMETER uno_ExtEnvironment * /*pEnv*/, void * pProxy) noexcept
|
||||
{
|
||||
Proxy * pThis = static_cast<Proxy * >(static_cast<uno_Interface *>(pProxy));
|
||||
delete pThis;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static void s_Proxy_acquire(uno_Interface * pUnoI) SAL_THROW_EXTERN_C()
|
||||
static void s_Proxy_acquire(uno_Interface * pUnoI) noexcept
|
||||
{
|
||||
Proxy * pProxy = static_cast<Proxy *>(pUnoI);
|
||||
pProxy->acquire();
|
||||
}
|
||||
|
||||
static void s_Proxy_release(uno_Interface * pUnoI) SAL_THROW_EXTERN_C()
|
||||
static void s_Proxy_release(uno_Interface * pUnoI) noexcept
|
||||
{
|
||||
Proxy * pProxy = static_cast<Proxy *>(pUnoI);
|
||||
pProxy->release();
|
||||
|
|
|
@ -117,8 +117,7 @@ IdContainer& getIdContainer()
|
|||
|
||||
extern "C" sal_Bool SAL_CALL uno_setCurrentContext(
|
||||
void * pCurrentContext,
|
||||
rtl_uString * pEnvTypeName, void * pEnvContext )
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_uString * pEnvTypeName, void * pEnvContext ) noexcept
|
||||
{
|
||||
IdContainer& id = getIdContainer();
|
||||
|
||||
|
@ -163,8 +162,7 @@ extern "C" sal_Bool SAL_CALL uno_setCurrentContext(
|
|||
}
|
||||
|
||||
extern "C" sal_Bool SAL_CALL uno_getCurrentContext(
|
||||
void ** ppCurrentContext, rtl_uString * pEnvTypeName, void * pEnvContext )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void ** ppCurrentContext, rtl_uString * pEnvTypeName, void * pEnvContext ) noexcept
|
||||
{
|
||||
IdContainer& id = getIdContainer();
|
||||
|
||||
|
|
|
@ -42,8 +42,7 @@ static void createLocalId( sal_Sequence **ppThreadId )
|
|||
}
|
||||
|
||||
extern "C" void SAL_CALL
|
||||
uno_getIdOfCurrentThread( sal_Sequence **ppThreadId )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_getIdOfCurrentThread( sal_Sequence **ppThreadId ) noexcept
|
||||
{
|
||||
IdContainer& id = getIdContainer();
|
||||
if (!id.bInit)
|
||||
|
@ -72,8 +71,7 @@ uno_getIdOfCurrentThread( sal_Sequence **ppThreadId )
|
|||
}
|
||||
}
|
||||
|
||||
extern "C" void SAL_CALL uno_releaseIdFromCurrentThread()
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_CALL uno_releaseIdFromCurrentThread() noexcept
|
||||
{
|
||||
IdContainer& id = getIdContainer();
|
||||
OSL_ASSERT( id.bInit );
|
||||
|
@ -86,8 +84,7 @@ extern "C" void SAL_CALL uno_releaseIdFromCurrentThread()
|
|||
}
|
||||
}
|
||||
|
||||
extern "C" sal_Bool SAL_CALL uno_bindIdToCurrentThread( sal_Sequence *pThreadId )
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" sal_Bool SAL_CALL uno_bindIdToCurrentThread( sal_Sequence *pThreadId ) noexcept
|
||||
{
|
||||
IdContainer& id = getIdContainer();
|
||||
if (!id.bInit)
|
||||
|
|
|
@ -366,7 +366,7 @@ ThreadPoolHolder getThreadPool( uno_ThreadPool hPool )
|
|||
}
|
||||
|
||||
extern "C" uno_ThreadPool SAL_CALL
|
||||
uno_threadpool_create() SAL_THROW_EXTERN_C()
|
||||
uno_threadpool_create() noexcept
|
||||
{
|
||||
MutexGuard guard( Mutex::getGlobalMutex() );
|
||||
ThreadPoolHolder p;
|
||||
|
@ -388,7 +388,7 @@ uno_threadpool_create() SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
extern "C" void SAL_CALL
|
||||
uno_threadpool_attach( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C()
|
||||
uno_threadpool_attach( uno_ThreadPool hPool ) noexcept
|
||||
{
|
||||
sal_Sequence *pThreadId = nullptr;
|
||||
uno_getIdOfCurrentThread( &pThreadId );
|
||||
|
@ -398,8 +398,7 @@ uno_threadpool_attach( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
extern "C" void SAL_CALL
|
||||
uno_threadpool_enter( uno_ThreadPool hPool , void **ppJob )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_threadpool_enter( uno_ThreadPool hPool , void **ppJob ) noexcept
|
||||
{
|
||||
sal_Sequence *pThreadId = nullptr;
|
||||
uno_getIdOfCurrentThread( &pThreadId );
|
||||
|
@ -412,7 +411,7 @@ uno_threadpool_enter( uno_ThreadPool hPool , void **ppJob )
|
|||
}
|
||||
|
||||
extern "C" void SAL_CALL
|
||||
uno_threadpool_detach(SAL_UNUSED_PARAMETER uno_ThreadPool) SAL_THROW_EXTERN_C()
|
||||
uno_threadpool_detach(SAL_UNUSED_PARAMETER uno_ThreadPool) noexcept
|
||||
{
|
||||
// we might do here some tidying up in case a thread called attach but never detach
|
||||
}
|
||||
|
@ -423,7 +422,7 @@ uno_threadpool_putJob(
|
|||
sal_Sequence *pThreadId,
|
||||
void *pJob,
|
||||
void ( SAL_CALL * doRequest ) ( void *pThreadSpecificData ),
|
||||
sal_Bool bIsOneway ) SAL_THROW_EXTERN_C()
|
||||
sal_Bool bIsOneway ) noexcept
|
||||
{
|
||||
if (!getThreadPool(hPool)->addJob( pThreadId, bIsOneway, pJob ,doRequest, hPool ))
|
||||
{
|
||||
|
@ -434,14 +433,14 @@ uno_threadpool_putJob(
|
|||
}
|
||||
|
||||
extern "C" void SAL_CALL
|
||||
uno_threadpool_dispose( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C()
|
||||
uno_threadpool_dispose( uno_ThreadPool hPool ) noexcept
|
||||
{
|
||||
getThreadPool(hPool)->dispose(
|
||||
hPool );
|
||||
}
|
||||
|
||||
extern "C" void SAL_CALL
|
||||
uno_threadpool_destroy( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C()
|
||||
uno_threadpool_destroy( uno_ThreadPool hPool ) noexcept
|
||||
{
|
||||
ThreadPoolHolder p( getThreadPool(hPool) );
|
||||
p->destroy(
|
||||
|
|
|
@ -105,8 +105,7 @@ extern "C"
|
|||
{
|
||||
|
||||
typelib_TypeDescriptionReference ** SAL_CALL typelib_static_type_getByTypeClass(
|
||||
typelib_TypeClass eTypeClass )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeClass eTypeClass ) noexcept
|
||||
{
|
||||
static typelib_TypeDescriptionReference * s_aTypes[] = {
|
||||
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
|
@ -271,8 +270,7 @@ typelib_TypeDescriptionReference ** SAL_CALL typelib_static_type_getByTypeClass(
|
|||
|
||||
void SAL_CALL typelib_static_type_init(
|
||||
typelib_TypeDescriptionReference ** ppRef,
|
||||
typelib_TypeClass eTypeClass, const char * pTypeName )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeClass eTypeClass, const char * pTypeName ) noexcept
|
||||
{
|
||||
if (! *ppRef)
|
||||
{
|
||||
|
@ -290,8 +288,7 @@ void SAL_CALL typelib_static_type_init(
|
|||
|
||||
void SAL_CALL typelib_static_sequence_type_init(
|
||||
typelib_TypeDescriptionReference ** ppRef,
|
||||
typelib_TypeDescriptionReference * pElementType )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference * pElementType ) noexcept
|
||||
{
|
||||
if ( *ppRef)
|
||||
return;
|
||||
|
@ -409,8 +406,7 @@ void SAL_CALL typelib_static_compound_type_init(
|
|||
typelib_TypeDescriptionReference ** ppRef,
|
||||
typelib_TypeClass eTypeClass, const char * pTypeName,
|
||||
typelib_TypeDescriptionReference * pBaseType,
|
||||
sal_Int32 nMembers, typelib_TypeDescriptionReference ** ppMembers )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nMembers, typelib_TypeDescriptionReference ** ppMembers ) noexcept
|
||||
{
|
||||
init(ppRef, eTypeClass, pTypeName, pBaseType, nMembers, ppMembers, nullptr);
|
||||
}
|
||||
|
@ -419,8 +415,7 @@ void SAL_CALL typelib_static_struct_type_init(
|
|||
typelib_TypeDescriptionReference ** ppRef, const char * pTypeName,
|
||||
typelib_TypeDescriptionReference * pBaseType,
|
||||
sal_Int32 nMembers, typelib_TypeDescriptionReference ** ppMembers,
|
||||
sal_Bool const * pParameterizedTypes )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Bool const * pParameterizedTypes ) noexcept
|
||||
{
|
||||
init(
|
||||
ppRef, typelib_TypeClass_STRUCT, pTypeName, pBaseType, nMembers,
|
||||
|
@ -430,8 +425,7 @@ void SAL_CALL typelib_static_struct_type_init(
|
|||
void SAL_CALL typelib_static_interface_type_init(
|
||||
typelib_TypeDescriptionReference ** ppRef,
|
||||
const char * pTypeName,
|
||||
typelib_TypeDescriptionReference * pBaseType )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference * pBaseType ) noexcept
|
||||
{
|
||||
// coverity[callee_ptr_arith] - not a bug
|
||||
typelib_static_mi_interface_type_init(
|
||||
|
@ -442,8 +436,7 @@ void SAL_CALL typelib_static_mi_interface_type_init(
|
|||
typelib_TypeDescriptionReference ** ppRef,
|
||||
const char * pTypeName,
|
||||
sal_Int32 nBaseTypes,
|
||||
typelib_TypeDescriptionReference ** ppBaseTypes )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference ** ppBaseTypes ) noexcept
|
||||
{
|
||||
if ( *ppRef)
|
||||
return;
|
||||
|
@ -505,8 +498,7 @@ void SAL_CALL typelib_static_mi_interface_type_init(
|
|||
void SAL_CALL typelib_static_enum_type_init(
|
||||
typelib_TypeDescriptionReference ** ppRef,
|
||||
const char * pTypeName,
|
||||
sal_Int32 nDefaultValue )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nDefaultValue ) noexcept
|
||||
{
|
||||
if ( *ppRef)
|
||||
return;
|
||||
|
|
|
@ -274,8 +274,7 @@ TypeDescriptor_Init_Impl& Init()
|
|||
}
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescription_registerCallback(
|
||||
void * pContext, typelib_typedescription_Callback pCallback )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * pContext, typelib_typedescription_Callback pCallback ) noexcept
|
||||
{
|
||||
// todo mt safe: guard is no solution, can not acquire while calling callback!
|
||||
TypeDescriptor_Init_Impl &rInit = Init();
|
||||
|
@ -285,8 +284,7 @@ extern "C" void SAL_CALL typelib_typedescription_registerCallback(
|
|||
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescription_revokeCallback(
|
||||
void * pContext, typelib_typedescription_Callback pCallback )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * pContext, typelib_typedescription_Callback pCallback ) noexcept
|
||||
{
|
||||
TypeDescriptor_Init_Impl &rInit = Init();
|
||||
{
|
||||
|
@ -471,8 +469,7 @@ bool complete(typelib_TypeDescription ** ppTypeDescr, bool initTables) {
|
|||
|
||||
extern "C" void typelib_typedescription_newEmpty(
|
||||
typelib_TypeDescription ** ppRet,
|
||||
typelib_TypeClass eTypeClass, rtl_uString * pTypeName )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeClass eTypeClass, rtl_uString * pTypeName ) noexcept
|
||||
{
|
||||
if( *ppRet )
|
||||
{
|
||||
|
@ -768,8 +765,7 @@ extern "C" void SAL_CALL typelib_typedescription_new(
|
|||
rtl_uString * pTypeName,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
sal_Int32 nMembers,
|
||||
typelib_CompoundMember_Init * pMembers )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_CompoundMember_Init * pMembers ) noexcept
|
||||
{
|
||||
newTypeDescription(
|
||||
ppRet, eTypeClass, pTypeName, pType, nMembers, pMembers, nullptr);
|
||||
|
@ -780,8 +776,7 @@ extern "C" void SAL_CALL typelib_typedescription_newStruct(
|
|||
rtl_uString * pTypeName,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
sal_Int32 nMembers,
|
||||
typelib_StructMember_Init * pMembers )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_StructMember_Init * pMembers ) noexcept
|
||||
{
|
||||
newTypeDescription(
|
||||
ppRet, typelib_TypeClass_STRUCT, pTypeName, pType, nMembers, nullptr,
|
||||
|
@ -795,8 +790,7 @@ extern "C" void SAL_CALL typelib_typedescription_newEnum(
|
|||
sal_Int32 nDefaultValue,
|
||||
sal_Int32 nEnumValues,
|
||||
rtl_uString ** ppEnumNames,
|
||||
sal_Int32 * pEnumValues )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 * pEnumValues ) noexcept
|
||||
{
|
||||
typelib_typedescription_newEmpty( ppRet, typelib_TypeClass_ENUM, pTypeName );
|
||||
typelib_EnumTypeDescription * pEnum = reinterpret_cast<typelib_EnumTypeDescription *>(*ppRet);
|
||||
|
@ -828,8 +822,7 @@ extern "C" void SAL_CALL typelib_typedescription_newInterface(
|
|||
SAL_UNUSED_PARAMETER sal_uInt32,
|
||||
typelib_TypeDescriptionReference * pBaseInterface,
|
||||
sal_Int32 nMembers,
|
||||
typelib_TypeDescriptionReference ** ppMembers )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference ** ppMembers ) noexcept
|
||||
{
|
||||
// coverity[callee_ptr_arith] - not a bug
|
||||
typelib_typedescription_newMIInterface(
|
||||
|
@ -918,8 +911,7 @@ extern "C" void SAL_CALL typelib_typedescription_newMIInterface(
|
|||
sal_Int32 nBaseInterfaces,
|
||||
typelib_TypeDescriptionReference ** ppBaseInterfaces,
|
||||
sal_Int32 nMembers,
|
||||
typelib_TypeDescriptionReference ** ppMembers )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference ** ppMembers ) noexcept
|
||||
{
|
||||
if (*ppRet != nullptr) {
|
||||
typelib_typedescription_release(&(*ppRet)->aBase);
|
||||
|
@ -1049,8 +1041,7 @@ extern "C" void SAL_CALL typelib_typedescription_newInterfaceMethod(
|
|||
sal_Int32 nParams,
|
||||
typelib_Parameter_Init * pParams,
|
||||
sal_Int32 nExceptions,
|
||||
rtl_uString ** ppExceptionNames )
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_uString ** ppExceptionNames ) noexcept
|
||||
{
|
||||
if (*ppRet != nullptr) {
|
||||
typelib_typedescription_release(&(*ppRet)->aBase.aBase);
|
||||
|
@ -1123,8 +1114,7 @@ extern "C" void SAL_CALL typelib_typedescription_newInterfaceAttribute(
|
|||
rtl_uString * pTypeName,
|
||||
typelib_TypeClass eAttributeTypeClass,
|
||||
rtl_uString * pAttributeTypeName,
|
||||
sal_Bool bReadOnly )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Bool bReadOnly ) noexcept
|
||||
{
|
||||
typelib_typedescription_newExtendedInterfaceAttribute(
|
||||
ppRet, nAbsolutePosition, pTypeName, eAttributeTypeClass,
|
||||
|
@ -1140,8 +1130,7 @@ extern "C" void SAL_CALL typelib_typedescription_newExtendedInterfaceAttribute(
|
|||
rtl_uString * pAttributeTypeName,
|
||||
sal_Bool bReadOnly,
|
||||
sal_Int32 nGetExceptions, rtl_uString ** ppGetExceptionNames,
|
||||
sal_Int32 nSetExceptions, rtl_uString ** ppSetExceptionNames )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nSetExceptions, rtl_uString ** ppSetExceptionNames ) noexcept
|
||||
{
|
||||
if (*ppRet != nullptr) {
|
||||
typelib_typedescription_release(&(*ppRet)->aBase.aBase);
|
||||
|
@ -1195,8 +1184,7 @@ extern "C" void SAL_CALL typelib_typedescription_newExtendedInterfaceAttribute(
|
|||
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescription_acquire(
|
||||
typelib_TypeDescription * pTypeDescription )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescription * pTypeDescription ) noexcept
|
||||
{
|
||||
osl_atomic_increment( &pTypeDescription->nRefCount );
|
||||
}
|
||||
|
@ -1323,8 +1311,7 @@ static void typelib_typedescription_destructExtendedMembers(
|
|||
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescription_release(
|
||||
typelib_TypeDescription * pTD )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescription * pTD ) noexcept
|
||||
{
|
||||
sal_Int32 ref = osl_atomic_decrement( &pTD->nRefCount );
|
||||
OSL_ASSERT(ref >= 0);
|
||||
|
@ -1391,8 +1378,7 @@ extern "C" void SAL_CALL typelib_typedescription_release(
|
|||
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescription_register(
|
||||
typelib_TypeDescription ** ppNewDescription )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescription ** ppNewDescription ) noexcept
|
||||
{
|
||||
// connect the description with the weak reference
|
||||
TypeDescriptor_Init_Impl &rInit = Init();
|
||||
|
@ -1607,8 +1593,7 @@ static bool type_equals(
|
|||
rtl_ustr_compare( p1->pTypeName->buffer, p2->pTypeName->buffer ) == 0));
|
||||
}
|
||||
extern "C" sal_Bool SAL_CALL typelib_typedescription_equals(
|
||||
const typelib_TypeDescription * p1, const typelib_TypeDescription * p2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const typelib_TypeDescription * p1, const typelib_TypeDescription * p2 ) noexcept
|
||||
{
|
||||
return type_equals(
|
||||
reinterpret_cast<typelib_TypeDescriptionReference const *>(p1), reinterpret_cast<typelib_TypeDescriptionReference const *>(p2) );
|
||||
|
@ -1617,8 +1602,7 @@ extern "C" sal_Bool SAL_CALL typelib_typedescription_equals(
|
|||
|
||||
extern "C" sal_Int32 typelib_typedescription_getAlignedUnoSize(
|
||||
const typelib_TypeDescription * pTypeDescription,
|
||||
sal_Int32 nOffset, sal_Int32 & rMaxIntegralTypeSize )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nOffset, sal_Int32 & rMaxIntegralTypeSize ) noexcept
|
||||
{
|
||||
sal_Int32 nSize;
|
||||
if( pTypeDescription->nSize )
|
||||
|
@ -1858,8 +1842,7 @@ bool createDerivedInterfaceMemberDescription(
|
|||
}
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescription_getByName(
|
||||
typelib_TypeDescription ** ppRet, rtl_uString * pName )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescription ** ppRet, rtl_uString * pName ) noexcept
|
||||
{
|
||||
if( *ppRet )
|
||||
{
|
||||
|
@ -2032,8 +2015,7 @@ extern "C" void SAL_CALL typelib_typedescription_getByName(
|
|||
extern "C" void SAL_CALL typelib_typedescriptionreference_newByAsciiName(
|
||||
typelib_TypeDescriptionReference ** ppTDR,
|
||||
typelib_TypeClass eTypeClass,
|
||||
const char * pTypeName )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char * pTypeName ) noexcept
|
||||
{
|
||||
OUString aTypeName( OUString::createFromAscii( pTypeName ) );
|
||||
typelib_typedescriptionreference_new( ppTDR, eTypeClass, aTypeName.pData );
|
||||
|
@ -2041,8 +2023,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_newByAsciiName(
|
|||
|
||||
extern "C" void SAL_CALL typelib_typedescriptionreference_new(
|
||||
typelib_TypeDescriptionReference ** ppTDR,
|
||||
typelib_TypeClass eTypeClass, rtl_uString * pTypeName )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeClass eTypeClass, rtl_uString * pTypeName ) noexcept
|
||||
{
|
||||
TypeDescriptor_Init_Impl &rInit = Init();
|
||||
if( eTypeClass == typelib_TypeClass_TYPEDEF )
|
||||
|
@ -2131,16 +2112,14 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_new(
|
|||
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescriptionreference_acquire(
|
||||
typelib_TypeDescriptionReference * pRef )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference * pRef ) noexcept
|
||||
{
|
||||
osl_atomic_increment( &pRef->nRefCount );
|
||||
}
|
||||
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescriptionreference_release(
|
||||
typelib_TypeDescriptionReference * pRef )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference * pRef ) noexcept
|
||||
{
|
||||
// Is it a type description?
|
||||
if( TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( pRef->eTypeClass ) )
|
||||
|
@ -2172,8 +2151,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_release(
|
|||
|
||||
|
||||
extern "C" void SAL_CALL typelib_typedescriptionreference_getDescription(
|
||||
typelib_TypeDescription ** ppRet, typelib_TypeDescriptionReference * pRef )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescription ** ppRet, typelib_TypeDescriptionReference * pRef ) noexcept
|
||||
{
|
||||
if( *ppRet )
|
||||
{
|
||||
|
@ -2218,8 +2196,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_getDescription(
|
|||
|
||||
|
||||
extern "C" void typelib_typedescriptionreference_getByName(
|
||||
typelib_TypeDescriptionReference ** ppRet, rtl_uString const * pName )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference ** ppRet, rtl_uString const * pName ) noexcept
|
||||
{
|
||||
if( *ppRet )
|
||||
{
|
||||
|
@ -2251,8 +2228,7 @@ extern "C" void typelib_typedescriptionreference_getByName(
|
|||
|
||||
extern "C" sal_Bool SAL_CALL typelib_typedescriptionreference_equals(
|
||||
const typelib_TypeDescriptionReference * p1,
|
||||
const typelib_TypeDescriptionReference * p2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const typelib_TypeDescriptionReference * p2 ) noexcept
|
||||
{
|
||||
return (p1 == p2 ||
|
||||
(p1->eTypeClass == p2->eTypeClass &&
|
||||
|
@ -2263,8 +2239,7 @@ extern "C" sal_Bool SAL_CALL typelib_typedescriptionreference_equals(
|
|||
|
||||
extern "C" void SAL_CALL typelib_typedescriptionreference_assign(
|
||||
typelib_TypeDescriptionReference ** ppDest,
|
||||
typelib_TypeDescriptionReference * pSource )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference * pSource ) noexcept
|
||||
{
|
||||
if (*ppDest != pSource)
|
||||
{
|
||||
|
@ -2275,8 +2250,7 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_assign(
|
|||
}
|
||||
|
||||
|
||||
extern "C" void SAL_CALL typelib_setCacheSize( sal_Int32 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_CALL typelib_setCacheSize( sal_Int32 ) noexcept
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -2300,8 +2274,7 @@ const bool s_aAssignableFromTab[11][11] =
|
|||
|
||||
extern "C" sal_Bool SAL_CALL typelib_typedescriptionreference_isAssignableFrom(
|
||||
typelib_TypeDescriptionReference * pAssignable,
|
||||
typelib_TypeDescriptionReference * pFrom )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescriptionReference * pFrom ) noexcept
|
||||
{
|
||||
if (!pAssignable || !pFrom)
|
||||
return false;
|
||||
|
@ -2368,8 +2341,7 @@ extern "C" sal_Bool SAL_CALL typelib_typedescriptionreference_isAssignableFrom(
|
|||
|
||||
extern "C" sal_Bool SAL_CALL typelib_typedescription_isAssignableFrom(
|
||||
typelib_TypeDescription * pAssignable,
|
||||
typelib_TypeDescription * pFrom )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescription * pFrom ) noexcept
|
||||
{
|
||||
return typelib_typedescriptionreference_isAssignableFrom(
|
||||
pAssignable->pWeakRef, pFrom->pWeakRef );
|
||||
|
@ -2377,8 +2349,7 @@ extern "C" sal_Bool SAL_CALL typelib_typedescription_isAssignableFrom(
|
|||
|
||||
|
||||
extern "C" sal_Bool SAL_CALL typelib_typedescription_complete(
|
||||
typelib_TypeDescription ** ppTypeDescr )
|
||||
SAL_THROW_EXTERN_C()
|
||||
typelib_TypeDescription ** ppTypeDescr ) noexcept
|
||||
{
|
||||
return complete(ppTypeDescr, true);
|
||||
}
|
||||
|
|
|
@ -105,8 +105,7 @@ static uno_Environment * s_getCurrent()
|
|||
}
|
||||
|
||||
|
||||
extern "C" void SAL_CALL uno_getCurrentEnvironment(uno_Environment ** ppEnv, rtl_uString * pTypeName)
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_CALL uno_getCurrentEnvironment(uno_Environment ** ppEnv, rtl_uString * pTypeName) noexcept
|
||||
{
|
||||
if (*ppEnv)
|
||||
{
|
||||
|
@ -306,14 +305,12 @@ static void s_environment_invoke_v(uno_Environment * pCurrEnv, uno_Environment *
|
|||
pNextEnv->release(pNextEnv);
|
||||
}
|
||||
|
||||
extern "C" void SAL_CALL uno_Environment_invoke_v(uno_Environment * pTargetEnv, uno_EnvCallee * pCallee, va_list * pParam)
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_CALL uno_Environment_invoke_v(uno_Environment * pTargetEnv, uno_EnvCallee * pCallee, va_list * pParam) noexcept
|
||||
{
|
||||
s_environment_invoke_v(s_getCurrent(), pTargetEnv, pCallee, pParam);
|
||||
}
|
||||
|
||||
extern "C" void SAL_CALL uno_Environment_invoke(uno_Environment * pEnv, uno_EnvCallee * pCallee, ...)
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_CALL uno_Environment_invoke(uno_Environment * pEnv, uno_EnvCallee * pCallee, ...) noexcept
|
||||
{
|
||||
va_list param;
|
||||
|
||||
|
@ -322,8 +319,7 @@ extern "C" void SAL_CALL uno_Environment_invoke(uno_Environment * pEnv, uno_EnvC
|
|||
va_end(param);
|
||||
}
|
||||
|
||||
extern "C" void SAL_CALL uno_Environment_enter(uno_Environment * pTargetEnv)
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" void SAL_CALL uno_Environment_enter(uno_Environment * pTargetEnv) noexcept
|
||||
{
|
||||
uno_Environment * pNextEnv = nullptr;
|
||||
uno_Environment * pCurrEnv = s_getCurrent();
|
||||
|
@ -355,8 +351,7 @@ extern "C" void SAL_CALL uno_Environment_enter(uno_Environment * pTargetEnv)
|
|||
}
|
||||
}
|
||||
|
||||
int SAL_CALL uno_Environment_isValid(uno_Environment * pEnv, rtl_uString ** pReason)
|
||||
SAL_THROW_EXTERN_C()
|
||||
int SAL_CALL uno_Environment_isValid(uno_Environment * pEnv, rtl_uString ** pReason) noexcept
|
||||
{
|
||||
int result = 1;
|
||||
|
||||
|
|
|
@ -30,8 +30,7 @@ extern "C"
|
|||
void SAL_CALL uno_type_any_assign(
|
||||
uno_Any * pDest, void * pSource,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
uno_AcquireFunc acquire, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
_destructAny( pDest, release );
|
||||
if (pType)
|
||||
|
@ -47,8 +46,7 @@ void SAL_CALL uno_type_any_assign(
|
|||
void SAL_CALL uno_any_assign(
|
||||
uno_Any * pDest, void * pSource,
|
||||
typelib_TypeDescription * pTypeDescr,
|
||||
uno_AcquireFunc acquire, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
_destructAny( pDest, release );
|
||||
if (pTypeDescr)
|
||||
|
@ -64,8 +62,7 @@ void SAL_CALL uno_any_assign(
|
|||
void SAL_CALL uno_type_any_construct(
|
||||
uno_Any * pDest, void * pSource,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
uno_AcquireFunc acquire )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire ) noexcept
|
||||
{
|
||||
if (pType)
|
||||
{
|
||||
|
@ -80,8 +77,7 @@ void SAL_CALL uno_type_any_construct(
|
|||
void SAL_CALL uno_any_construct(
|
||||
uno_Any * pDest, void * pSource,
|
||||
typelib_TypeDescription * pTypeDescr,
|
||||
uno_AcquireFunc acquire )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire ) noexcept
|
||||
{
|
||||
if (pTypeDescr)
|
||||
{
|
||||
|
@ -96,8 +92,7 @@ void SAL_CALL uno_any_construct(
|
|||
void SAL_CALL uno_type_any_constructAndConvert(
|
||||
uno_Any * pDest, void * pSource,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
if (pType)
|
||||
{
|
||||
|
@ -112,8 +107,7 @@ void SAL_CALL uno_type_any_constructAndConvert(
|
|||
void SAL_CALL uno_any_constructAndConvert(
|
||||
uno_Any * pDest, void * pSource,
|
||||
typelib_TypeDescription * pTypeDescr,
|
||||
uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
if (pTypeDescr)
|
||||
{
|
||||
|
@ -125,14 +119,12 @@ void SAL_CALL uno_any_constructAndConvert(
|
|||
}
|
||||
}
|
||||
|
||||
void SAL_CALL uno_any_destruct( uno_Any * pValue, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL uno_any_destruct( uno_Any * pValue, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
_destructAny( pValue, release );
|
||||
}
|
||||
|
||||
void SAL_CALL uno_any_clear( uno_Any * pValue, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL uno_any_clear( uno_Any * pValue, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
_destructAny( pValue, release );
|
||||
CONSTRUCT_EMPTY_ANY( pValue );
|
||||
|
|
|
@ -149,8 +149,7 @@ void MediatorMapping::mapInterface(
|
|||
*ppOut = ret;
|
||||
}
|
||||
|
||||
extern "C" { static void s_MediatorMapping_free(uno_Mapping * pMapping)
|
||||
SAL_THROW_EXTERN_C()
|
||||
extern "C" { static void s_MediatorMapping_free(uno_Mapping * pMapping) noexcept
|
||||
{
|
||||
delete static_cast<MediatorMapping *>(pMapping);
|
||||
}}
|
||||
|
|
|
@ -169,23 +169,20 @@ extern "C"
|
|||
{
|
||||
|
||||
void SAL_CALL uno_type_constructData(
|
||||
void * pMem, typelib_TypeDescriptionReference * pType )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * pMem, typelib_TypeDescriptionReference * pType ) noexcept
|
||||
{
|
||||
_defaultConstructData( pMem, pType, nullptr );
|
||||
}
|
||||
|
||||
void SAL_CALL uno_constructData(
|
||||
void * pMem, typelib_TypeDescription * pTypeDescr )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * pMem, typelib_TypeDescription * pTypeDescr ) noexcept
|
||||
{
|
||||
_defaultConstructData( pMem, pTypeDescr->pWeakRef, pTypeDescr );
|
||||
}
|
||||
|
||||
void SAL_CALL uno_type_destructData(
|
||||
void * pValue, typelib_TypeDescriptionReference * pType,
|
||||
uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
_destructData( pValue, pType, nullptr, release );
|
||||
}
|
||||
|
@ -193,8 +190,7 @@ void SAL_CALL uno_type_destructData(
|
|||
void SAL_CALL uno_destructData(
|
||||
void * pValue,
|
||||
typelib_TypeDescription * pTypeDescr,
|
||||
uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
_destructData( pValue, pTypeDescr->pWeakRef, pTypeDescr, release );
|
||||
}
|
||||
|
@ -202,8 +198,7 @@ void SAL_CALL uno_destructData(
|
|||
void SAL_CALL uno_type_copyData(
|
||||
void * pDest, void * pSource,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
uno_AcquireFunc acquire )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire ) noexcept
|
||||
{
|
||||
_copyConstructData( pDest, pSource, pType, nullptr, acquire, nullptr );
|
||||
}
|
||||
|
@ -211,8 +206,7 @@ void SAL_CALL uno_type_copyData(
|
|||
void SAL_CALL uno_copyData(
|
||||
void * pDest, void * pSource,
|
||||
typelib_TypeDescription * pTypeDescr,
|
||||
uno_AcquireFunc acquire )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire ) noexcept
|
||||
{
|
||||
_copyConstructData( pDest, pSource, pTypeDescr->pWeakRef, pTypeDescr, acquire, nullptr );
|
||||
}
|
||||
|
@ -220,8 +214,7 @@ void SAL_CALL uno_copyData(
|
|||
void SAL_CALL uno_type_copyAndConvertData(
|
||||
void * pDest, void * pSource,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
_copyConstructData( pDest, pSource, pType, nullptr, nullptr, mapping );
|
||||
}
|
||||
|
@ -229,8 +222,7 @@ void SAL_CALL uno_type_copyAndConvertData(
|
|||
void SAL_CALL uno_copyAndConvertData(
|
||||
void * pDest, void * pSource,
|
||||
typelib_TypeDescription * pTypeDescr,
|
||||
uno_Mapping * mapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Mapping * mapping ) noexcept
|
||||
{
|
||||
_copyConstructData( pDest, pSource, pTypeDescr->pWeakRef, pTypeDescr, nullptr, mapping );
|
||||
}
|
||||
|
@ -238,8 +230,7 @@ void SAL_CALL uno_copyAndConvertData(
|
|||
sal_Bool SAL_CALL uno_type_equalData(
|
||||
void * pVal1, typelib_TypeDescriptionReference * pVal1Type,
|
||||
void * pVal2, typelib_TypeDescriptionReference * pVal2Type,
|
||||
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
return _equalData(
|
||||
pVal1, pVal1Type, nullptr,
|
||||
|
@ -250,8 +241,7 @@ sal_Bool SAL_CALL uno_type_equalData(
|
|||
sal_Bool SAL_CALL uno_equalData(
|
||||
void * pVal1, typelib_TypeDescription * pVal1TD,
|
||||
void * pVal2, typelib_TypeDescription * pVal2TD,
|
||||
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
return _equalData(
|
||||
pVal1, pVal1TD->pWeakRef, pVal1TD,
|
||||
|
@ -262,8 +252,7 @@ sal_Bool SAL_CALL uno_equalData(
|
|||
sal_Bool SAL_CALL uno_type_assignData(
|
||||
void * pDest, typelib_TypeDescriptionReference * pDestType,
|
||||
void * pSource, typelib_TypeDescriptionReference * pSourceType,
|
||||
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
return _assignData(
|
||||
pDest, pDestType, nullptr,
|
||||
|
@ -274,8 +263,7 @@ sal_Bool SAL_CALL uno_type_assignData(
|
|||
sal_Bool SAL_CALL uno_assignData(
|
||||
void * pDest, typelib_TypeDescription * pDestTD,
|
||||
void * pSource, typelib_TypeDescription * pSourceTD,
|
||||
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
return _assignData(
|
||||
pDest, pDestTD->pWeakRef, pDestTD,
|
||||
|
@ -286,8 +274,7 @@ sal_Bool SAL_CALL uno_assignData(
|
|||
sal_Bool SAL_CALL uno_type_isAssignableFromData(
|
||||
typelib_TypeDescriptionReference * pAssignable,
|
||||
void * pFrom, typelib_TypeDescriptionReference * pFromType,
|
||||
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
if (::typelib_typedescriptionreference_isAssignableFrom( pAssignable, pFromType ))
|
||||
return true;
|
||||
|
|
|
@ -682,8 +682,7 @@ void writeLine(
|
|||
}
|
||||
|
||||
extern "C" void SAL_CALL uno_dumpEnvironment(
|
||||
void * stream, uno_Environment * pEnv, const char * pFilter )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * stream, uno_Environment * pEnv, const char * pFilter ) noexcept
|
||||
{
|
||||
assert(pEnv && "### null ptr!");
|
||||
OUStringBuffer buf;
|
||||
|
@ -764,8 +763,7 @@ extern "C" void SAL_CALL uno_dumpEnvironment(
|
|||
|
||||
|
||||
extern "C" void SAL_CALL uno_dumpEnvironmentByName(
|
||||
void * stream, rtl_uString * pEnvDcp, const char * pFilter )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void * stream, rtl_uString * pEnvDcp, const char * pFilter ) noexcept
|
||||
{
|
||||
uno_Environment * pEnv = nullptr;
|
||||
uno_getEnvironment( &pEnv, pEnvDcp, nullptr );
|
||||
|
@ -1089,8 +1087,7 @@ static uno_Environment * initDefaultEnvironment(
|
|||
|
||||
|
||||
void SAL_CALL uno_createEnvironment(
|
||||
uno_Environment ** ppEnv, rtl_uString * pEnvDcp, void * pContext )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Environment ** ppEnv, rtl_uString * pEnvDcp, void * pContext ) noexcept
|
||||
{
|
||||
assert(ppEnv && "### null ptr!");
|
||||
if (*ppEnv)
|
||||
|
@ -1101,8 +1098,7 @@ void SAL_CALL uno_createEnvironment(
|
|||
}
|
||||
|
||||
void SAL_CALL uno_getEnvironment(
|
||||
uno_Environment ** ppEnv, rtl_uString * pEnvDcp, void * pContext )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Environment ** ppEnv, rtl_uString * pEnvDcp, void * pContext ) noexcept
|
||||
{
|
||||
assert(ppEnv && "### null ptr!");
|
||||
OUString const & rEnvDcp = OUString::unacquired( &pEnvDcp );
|
||||
|
@ -1124,8 +1120,7 @@ void SAL_CALL uno_getEnvironment(
|
|||
|
||||
void SAL_CALL uno_getRegisteredEnvironments(
|
||||
uno_Environment *** pppEnvs, sal_Int32 * pnLen, uno_memAlloc memAlloc,
|
||||
rtl_uString * pEnvDcp )
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_uString * pEnvDcp ) noexcept
|
||||
{
|
||||
EnvironmentsData & rData = theEnvironmentsData();
|
||||
|
||||
|
|
|
@ -578,8 +578,7 @@ extern "C"
|
|||
|
||||
void SAL_CALL uno_getMapping(
|
||||
uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo,
|
||||
rtl_uString * pAddPurpose )
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_uString * pAddPurpose ) noexcept
|
||||
{
|
||||
assert(ppMapping != nullptr);
|
||||
assert(pFrom != nullptr);
|
||||
|
@ -644,8 +643,7 @@ void SAL_CALL uno_getMapping(
|
|||
|
||||
void SAL_CALL uno_getMappingByName(
|
||||
uno_Mapping ** ppMapping, rtl_uString * pFrom, rtl_uString * pTo,
|
||||
rtl_uString * pAddPurpose )
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_uString * pAddPurpose ) noexcept
|
||||
{
|
||||
assert(ppMapping && pFrom && pTo && "### null ptr!");
|
||||
if (*ppMapping)
|
||||
|
@ -674,8 +672,7 @@ void SAL_CALL uno_getMappingByName(
|
|||
|
||||
void SAL_CALL uno_registerMapping(
|
||||
uno_Mapping ** ppMapping, uno_freeMappingFunc freeMapping,
|
||||
uno_Environment * pFrom, uno_Environment * pTo, rtl_uString * pAddPurpose )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Environment * pFrom, uno_Environment * pTo, rtl_uString * pAddPurpose ) noexcept
|
||||
{
|
||||
MappingsData & rData = getMappingsData();
|
||||
ClearableMutexGuard aGuard( rData.aMappingsMutex );
|
||||
|
@ -708,8 +705,7 @@ void SAL_CALL uno_registerMapping(
|
|||
}
|
||||
|
||||
void SAL_CALL uno_revokeMapping(
|
||||
uno_Mapping * pMapping )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_Mapping * pMapping ) noexcept
|
||||
{
|
||||
MappingsData & rData = getMappingsData();
|
||||
ClearableMutexGuard aGuard( rData.aMappingsMutex );
|
||||
|
@ -730,8 +726,7 @@ void SAL_CALL uno_revokeMapping(
|
|||
|
||||
|
||||
void SAL_CALL uno_registerMappingCallback(
|
||||
uno_getMappingFunc pCallback )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_getMappingFunc pCallback ) noexcept
|
||||
{
|
||||
OSL_ENSURE( pCallback, "### null ptr!" );
|
||||
MappingsData & rData = getMappingsData();
|
||||
|
@ -740,8 +735,7 @@ void SAL_CALL uno_registerMappingCallback(
|
|||
}
|
||||
|
||||
void SAL_CALL uno_revokeMappingCallback(
|
||||
uno_getMappingFunc pCallback )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_getMappingFunc pCallback ) noexcept
|
||||
{
|
||||
OSL_ENSURE( pCallback, "### null ptr!" );
|
||||
MappingsData & rData = getMappingsData();
|
||||
|
|
|
@ -668,8 +668,7 @@ extern "C"
|
|||
sal_Bool SAL_CALL uno_type_sequence_construct(
|
||||
uno_Sequence ** ppSequence, typelib_TypeDescriptionReference * pType,
|
||||
void * pElements, sal_Int32 len,
|
||||
uno_AcquireFunc acquire )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire ) noexcept
|
||||
{
|
||||
assert( len >= 0 );
|
||||
bool ret;
|
||||
|
@ -716,8 +715,7 @@ sal_Bool SAL_CALL uno_type_sequence_construct(
|
|||
sal_Bool SAL_CALL uno_sequence_construct(
|
||||
uno_Sequence ** ppSequence, typelib_TypeDescription * pTypeDescr,
|
||||
void * pElements, sal_Int32 len,
|
||||
uno_AcquireFunc acquire )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire ) noexcept
|
||||
{
|
||||
bool ret;
|
||||
if (len > 0)
|
||||
|
@ -754,8 +752,7 @@ sal_Bool SAL_CALL uno_sequence_construct(
|
|||
|
||||
sal_Bool SAL_CALL uno_type_sequence_realloc(
|
||||
uno_Sequence ** ppSequence, typelib_TypeDescriptionReference * pType,
|
||||
sal_Int32 nSize, uno_AcquireFunc acquire, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nSize, uno_AcquireFunc acquire, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
assert(ppSequence && "### null ptr!");
|
||||
assert(nSize >= 0 && "### new size must be at least 0!");
|
||||
|
@ -776,8 +773,7 @@ sal_Bool SAL_CALL uno_type_sequence_realloc(
|
|||
|
||||
sal_Bool SAL_CALL uno_sequence_realloc(
|
||||
uno_Sequence ** ppSequence, typelib_TypeDescription * pTypeDescr,
|
||||
sal_Int32 nSize, uno_AcquireFunc acquire, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nSize, uno_AcquireFunc acquire, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
assert(ppSequence && "### null ptr!");
|
||||
OSL_ENSURE( nSize >= 0, "### new size must be at least 0!" );
|
||||
|
@ -796,8 +792,7 @@ sal_Bool SAL_CALL uno_sequence_realloc(
|
|||
sal_Bool SAL_CALL uno_type_sequence_reference2One(
|
||||
uno_Sequence ** ppSequence,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
uno_AcquireFunc acquire, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
assert(ppSequence && "### null ptr!");
|
||||
bool ret = true;
|
||||
|
@ -843,8 +838,7 @@ sal_Bool SAL_CALL uno_type_sequence_reference2One(
|
|||
sal_Bool SAL_CALL uno_sequence_reference2One(
|
||||
uno_Sequence ** ppSequence,
|
||||
typelib_TypeDescription * pTypeDescr,
|
||||
uno_AcquireFunc acquire, uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_AcquireFunc acquire, uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
assert(ppSequence && "### null ptr!");
|
||||
bool ret = true;
|
||||
|
@ -888,8 +882,7 @@ void SAL_CALL uno_sequence_assign(
|
|||
uno_Sequence ** ppDest,
|
||||
uno_Sequence * pSource,
|
||||
typelib_TypeDescription * pTypeDescr,
|
||||
uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
if (*ppDest != pSource)
|
||||
{
|
||||
|
@ -904,8 +897,7 @@ void SAL_CALL uno_type_sequence_assign(
|
|||
uno_Sequence ** ppDest,
|
||||
uno_Sequence * pSource,
|
||||
typelib_TypeDescriptionReference * pType,
|
||||
uno_ReleaseFunc release )
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_ReleaseFunc release ) noexcept
|
||||
{
|
||||
if (*ppDest != pSource)
|
||||
{
|
||||
|
@ -917,8 +909,7 @@ void SAL_CALL uno_type_sequence_assign(
|
|||
|
||||
void uno_type_sequence_destroy(
|
||||
uno_Sequence * sequence, typelib_TypeDescriptionReference * type,
|
||||
uno_ReleaseFunc release)
|
||||
SAL_THROW_EXTERN_C()
|
||||
uno_ReleaseFunc release) noexcept
|
||||
{
|
||||
idestroySequence(sequence, type, nullptr, release);
|
||||
}
|
||||
|
|
|
@ -56,8 +56,7 @@ static const css::uno::Type & getVetoableTypeIdentifier()
|
|||
|
||||
extern "C" {
|
||||
|
||||
static int compare_OUString_Property_Impl( const void *arg1, const void *arg2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
static int compare_OUString_Property_Impl( const void *arg1, const void *arg2 ) noexcept
|
||||
{
|
||||
return static_cast<OUString const *>(arg1)->compareTo( static_cast<Property const *>(arg2)->Name );
|
||||
}
|
||||
|
@ -969,8 +968,7 @@ void OPropertySetHelper2::enableChangeListenerNotification( sal_Bool bEnable )
|
|||
|
||||
extern "C" {
|
||||
|
||||
static int compare_Property_Impl( const void *arg1, const void *arg2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
static int compare_Property_Impl( const void *arg1, const void *arg2 ) noexcept
|
||||
{
|
||||
return static_cast<Property const *>(arg1)->Name.compareTo( static_cast<Property const *>(arg2)->Name );
|
||||
}
|
||||
|
|
|
@ -69,8 +69,7 @@ extern "C" {
|
|||
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
|
||||
#endif
|
||||
|
||||
osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex()
|
||||
SAL_THROW_EXTERN_C()
|
||||
osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex() noexcept
|
||||
{
|
||||
static osl::Mutex aMutex;
|
||||
return aMutex;
|
||||
|
@ -79,8 +78,7 @@ osl::Mutex & SAL_CALL osl_detail_ObjectRegistry_getMutex()
|
|||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses( char const* pName )
|
||||
SAL_THROW_EXTERN_C()
|
||||
bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses( char const* pName ) noexcept
|
||||
{
|
||||
std::vector<OString> const& rVec = StaticDebugBaseAddressFilter();
|
||||
if (rVec.empty())
|
||||
|
@ -95,8 +93,7 @@ bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses( char const* pName )
|
|||
}
|
||||
|
||||
bool SAL_CALL osl_detail_ObjectRegistry_checkObjectCount(
|
||||
osl::detail::ObjectRegistryData const& rData, std::size_t nExpected )
|
||||
SAL_THROW_EXTERN_C()
|
||||
osl::detail::ObjectRegistryData const& rData, std::size_t nExpected ) noexcept
|
||||
{
|
||||
std::size_t nSize;
|
||||
if (rData.m_bStoreAddresses)
|
||||
|
@ -113,8 +110,7 @@ bool SAL_CALL osl_detail_ObjectRegistry_checkObjectCount(
|
|||
}
|
||||
|
||||
void SAL_CALL osl_detail_ObjectRegistry_registerObject(
|
||||
osl::detail::ObjectRegistryData & rData, void const* pObj )
|
||||
SAL_THROW_EXTERN_C()
|
||||
osl::detail::ObjectRegistryData & rData, void const* pObj ) noexcept
|
||||
{
|
||||
if (rData.m_bStoreAddresses) {
|
||||
osl::MutexGuard const guard( osl_detail_ObjectRegistry_getMutex() );
|
||||
|
@ -128,8 +124,7 @@ void SAL_CALL osl_detail_ObjectRegistry_registerObject(
|
|||
}
|
||||
|
||||
void SAL_CALL osl_detail_ObjectRegistry_revokeObject(
|
||||
osl::detail::ObjectRegistryData & rData, void const* pObj )
|
||||
SAL_THROW_EXTERN_C()
|
||||
osl::detail::ObjectRegistryData & rData, void const* pObj ) noexcept
|
||||
{
|
||||
if (rData.m_bStoreAddresses) {
|
||||
osl::MutexGuard const guard( osl_detail_ObjectRegistry_getMutex() );
|
||||
|
|
|
@ -741,7 +741,7 @@ rtl_arena_type * SAL_CALL rtl_arena_create(
|
|||
void * (SAL_CALL * source_alloc)(rtl_arena_type *, sal_Size *),
|
||||
void (SAL_CALL * source_free) (rtl_arena_type *, void *, sal_Size),
|
||||
SAL_UNUSED_PARAMETER int
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
rtl_arena_type * result = nullptr;
|
||||
sal_Size size = sizeof(rtl_arena_type);
|
||||
|
@ -787,7 +787,7 @@ try_alloc:
|
|||
return result;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_arena_destroy(rtl_arena_type * arena) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_arena_destroy(rtl_arena_type * arena) noexcept
|
||||
{
|
||||
if (arena)
|
||||
{
|
||||
|
@ -800,7 +800,7 @@ void SAL_CALL rtl_arena_destroy(rtl_arena_type * arena) SAL_THROW_EXTERN_C()
|
|||
void * SAL_CALL rtl_arena_alloc(
|
||||
rtl_arena_type * arena,
|
||||
sal_Size * pSize
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
void * addr = nullptr;
|
||||
|
||||
|
@ -860,7 +860,7 @@ void SAL_CALL rtl_arena_free (
|
|||
rtl_arena_type * arena,
|
||||
void * addr,
|
||||
sal_Size size
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
if (arena)
|
||||
{
|
||||
|
|
|
@ -90,7 +90,7 @@ rtl_cache_type * SAL_CALL rtl_cache_create(
|
|||
void * userarg,
|
||||
rtl_arena_type *,
|
||||
int
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
rtl_cache_type * result = nullptr;
|
||||
sal_Size size = sizeof(rtl_cache_type);
|
||||
|
@ -130,7 +130,7 @@ try_alloc:
|
|||
return result;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_cache_destroy(rtl_cache_type * cache) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_cache_destroy(rtl_cache_type * cache) noexcept
|
||||
{
|
||||
if (cache)
|
||||
{
|
||||
|
@ -138,7 +138,7 @@ void SAL_CALL rtl_cache_destroy(rtl_cache_type * cache) SAL_THROW_EXTERN_C()
|
|||
}
|
||||
}
|
||||
|
||||
void * SAL_CALL rtl_cache_alloc(rtl_cache_type * cache) SAL_THROW_EXTERN_C()
|
||||
void * SAL_CALL rtl_cache_alloc(rtl_cache_type * cache) noexcept
|
||||
{
|
||||
void * obj = nullptr;
|
||||
|
||||
|
@ -161,7 +161,7 @@ void * SAL_CALL rtl_cache_alloc(rtl_cache_type * cache) SAL_THROW_EXTERN_C()
|
|||
void SAL_CALL rtl_cache_free(
|
||||
rtl_cache_type * cache,
|
||||
void * obj
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
if (obj && cache)
|
||||
{
|
||||
|
@ -176,7 +176,7 @@ void SAL_CALL rtl_cache_free(
|
|||
|
||||
#if defined(SAL_UNX)
|
||||
|
||||
void SAL_CALL rtl_secureZeroMemory(void *Ptr, sal_Size Bytes) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_secureZeroMemory(void *Ptr, sal_Size Bytes) noexcept
|
||||
{
|
||||
//currently glibc doesn't implement memset_s
|
||||
volatile char *p = static_cast<volatile char*>(Ptr);
|
||||
|
@ -186,7 +186,7 @@ void SAL_CALL rtl_secureZeroMemory(void *Ptr, sal_Size Bytes) SAL_THROW_EXTERN_C
|
|||
|
||||
#elif defined(_WIN32)
|
||||
|
||||
void SAL_CALL rtl_secureZeroMemory(void *Ptr, sal_Size Bytes) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_secureZeroMemory(void *Ptr, sal_Size Bytes) noexcept
|
||||
{
|
||||
RtlSecureZeroMemory(Ptr, Bytes);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <oslmemory.h>
|
||||
|
||||
void* SAL_CALL rtl_allocateMemory(sal_Size n) SAL_THROW_EXTERN_C()
|
||||
void* SAL_CALL rtl_allocateMemory(sal_Size n) noexcept
|
||||
{
|
||||
SAL_WARN_IF(
|
||||
n >= SAL_MAX_INT32, "sal.rtl",
|
||||
|
@ -30,7 +30,7 @@ void* SAL_CALL rtl_allocateMemory(sal_Size n) SAL_THROW_EXTERN_C()
|
|||
return malloc (n);
|
||||
}
|
||||
|
||||
void* SAL_CALL rtl_reallocateMemory(void * p, sal_Size n) SAL_THROW_EXTERN_C()
|
||||
void* SAL_CALL rtl_reallocateMemory(void * p, sal_Size n) noexcept
|
||||
{
|
||||
SAL_WARN_IF(
|
||||
n >= SAL_MAX_INT32, "sal.rtl",
|
||||
|
@ -38,18 +38,18 @@ void* SAL_CALL rtl_reallocateMemory(void * p, sal_Size n) SAL_THROW_EXTERN_C()
|
|||
return realloc (p, n);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_freeMemory(void * p) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_freeMemory(void * p) noexcept
|
||||
{
|
||||
free (p);
|
||||
}
|
||||
|
||||
void * SAL_CALL rtl_allocateZeroMemory(sal_Size n) SAL_THROW_EXTERN_C()
|
||||
void * SAL_CALL rtl_allocateZeroMemory(sal_Size n) noexcept
|
||||
{
|
||||
SAL_WARN_IF( n >= SAL_MAX_INT32, "sal.rtl", "suspicious massive alloc " << n);
|
||||
return calloc(n, 1);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_freeZeroMemory(void * p, sal_Size n) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_freeZeroMemory(void * p, sal_Size n) noexcept
|
||||
{
|
||||
if (p)
|
||||
{
|
||||
|
@ -58,12 +58,12 @@ void SAL_CALL rtl_freeZeroMemory(void * p, sal_Size n) SAL_THROW_EXTERN_C()
|
|||
}
|
||||
}
|
||||
|
||||
void* SAL_CALL rtl_allocateAlignedMemory(sal_Size Alignment, sal_Size Bytes) SAL_THROW_EXTERN_C()
|
||||
void* SAL_CALL rtl_allocateAlignedMemory(sal_Size Alignment, sal_Size Bytes) noexcept
|
||||
{
|
||||
return osl_aligned_alloc(Alignment, Bytes);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_freeAlignedMemory(void* Ptr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_freeAlignedMemory(void* Ptr) noexcept
|
||||
{
|
||||
osl_aligned_free(Ptr);
|
||||
}
|
||||
|
|
|
@ -706,7 +706,7 @@ rtlBootstrapHandle SAL_CALL rtl_bootstrap_args_open(rtl_uString * pIniName)
|
|||
return static_cast< rtlBootstrapHandle >( that );
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_bootstrap_args_close(rtlBootstrapHandle handle) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_bootstrap_args_close(rtlBootstrapHandle handle) noexcept
|
||||
{
|
||||
if (!handle)
|
||||
return;
|
||||
|
|
|
@ -37,7 +37,7 @@ static sal_Sequence aEmpty_rtl_ByteSeq =
|
|||
};
|
||||
|
||||
void SAL_CALL rtl_byte_sequence_reference2One(
|
||||
sal_Sequence ** ppSequence ) SAL_THROW_EXTERN_C()
|
||||
sal_Sequence ** ppSequence ) noexcept
|
||||
{
|
||||
sal_Sequence * pSequence;
|
||||
|
||||
|
@ -81,7 +81,7 @@ void SAL_CALL rtl_byte_sequence_reference2One(
|
|||
}
|
||||
|
||||
void SAL_CALL rtl_byte_sequence_realloc(
|
||||
sal_Sequence ** ppSequence, sal_Int32 nSize ) SAL_THROW_EXTERN_C()
|
||||
sal_Sequence ** ppSequence, sal_Int32 nSize ) noexcept
|
||||
{
|
||||
sal_Sequence * pSequence;
|
||||
sal_Int32 nElements;
|
||||
|
@ -129,15 +129,13 @@ void SAL_CALL rtl_byte_sequence_realloc(
|
|||
*ppSequence = pSequence;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_byte_sequence_acquire( sal_Sequence *pSequence )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_byte_sequence_acquire( sal_Sequence *pSequence ) noexcept
|
||||
{
|
||||
assert(pSequence);
|
||||
osl_atomic_increment( &(pSequence->nRefCount) );
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_byte_sequence_release( sal_Sequence *pSequence )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_byte_sequence_release( sal_Sequence *pSequence ) noexcept
|
||||
{
|
||||
if ( pSequence != nullptr )
|
||||
{
|
||||
|
@ -148,8 +146,7 @@ void SAL_CALL rtl_byte_sequence_release( sal_Sequence *pSequence )
|
|||
}
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_byte_sequence_construct( sal_Sequence **ppSequence , sal_Int32 nLength )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_byte_sequence_construct( sal_Sequence **ppSequence , sal_Int32 nLength ) noexcept
|
||||
{
|
||||
assert(ppSequence);
|
||||
if( *ppSequence )
|
||||
|
@ -175,8 +172,7 @@ void SAL_CALL rtl_byte_sequence_construct( sal_Sequence **ppSequence , sal_Int32
|
|||
}
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_byte_sequence_constructNoDefault( sal_Sequence **ppSequence , sal_Int32 nLength )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_byte_sequence_constructNoDefault( sal_Sequence **ppSequence , sal_Int32 nLength ) noexcept
|
||||
{
|
||||
assert(ppSequence);
|
||||
if( *ppSequence )
|
||||
|
@ -195,16 +191,14 @@ void SAL_CALL rtl_byte_sequence_constructNoDefault( sal_Sequence **ppSequence ,
|
|||
}
|
||||
|
||||
void SAL_CALL rtl_byte_sequence_constructFromArray(
|
||||
sal_Sequence **ppSequence, const sal_Int8 *pData , sal_Int32 nLength )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Sequence **ppSequence, const sal_Int8 *pData , sal_Int32 nLength ) noexcept
|
||||
{
|
||||
rtl_byte_sequence_constructNoDefault( ppSequence , nLength );
|
||||
if ( *ppSequence != nullptr && nLength != 0 )
|
||||
memcpy( (*ppSequence)->elements, pData, nLength );
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_byte_sequence_assign( sal_Sequence **ppSequence , sal_Sequence *pSequence )
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_byte_sequence_assign( sal_Sequence **ppSequence , sal_Sequence *pSequence ) noexcept
|
||||
{
|
||||
if ( *ppSequence != pSequence)
|
||||
{
|
||||
|
@ -220,8 +214,7 @@ void SAL_CALL rtl_byte_sequence_assign( sal_Sequence **ppSequence , sal_Sequence
|
|||
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL rtl_byte_sequence_equals( sal_Sequence *pSequence1 , sal_Sequence *pSequence2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Bool SAL_CALL rtl_byte_sequence_equals( sal_Sequence *pSequence1 , sal_Sequence *pSequence2 ) noexcept
|
||||
{
|
||||
assert(pSequence1 && pSequence2);
|
||||
if (pSequence1 == pSequence2)
|
||||
|
@ -238,14 +231,12 @@ sal_Bool SAL_CALL rtl_byte_sequence_equals( sal_Sequence *pSequence1 , sal_Seque
|
|||
== 0;
|
||||
}
|
||||
|
||||
const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray( sal_Sequence *pSequence )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray( sal_Sequence *pSequence ) noexcept
|
||||
{
|
||||
return reinterpret_cast<sal_Int8*>(pSequence->elements);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_byte_sequence_getLength( sal_Sequence *pSequence )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_byte_sequence_getLength( sal_Sequence *pSequence ) noexcept
|
||||
{
|
||||
return pSequence->nElements;
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ struct Cipher_Impl
|
|||
|
||||
rtlCipher SAL_CALL rtl_cipher_create(
|
||||
rtlCipherAlgorithm Algorithm,
|
||||
rtlCipherMode Mode) SAL_THROW_EXTERN_C()
|
||||
rtlCipherMode Mode) noexcept
|
||||
{
|
||||
rtlCipher Cipher = nullptr;
|
||||
switch (Algorithm)
|
||||
|
@ -148,7 +148,7 @@ rtlCipherError SAL_CALL rtl_cipher_init(
|
|||
rtlCipher Cipher,
|
||||
rtlCipherDirection Direction,
|
||||
const sal_uInt8 *pKeyData, sal_Size nKeyLen,
|
||||
const sal_uInt8 *pArgData, sal_Size nArgLen) SAL_THROW_EXTERN_C()
|
||||
const sal_uInt8 *pArgData, sal_Size nArgLen) noexcept
|
||||
{
|
||||
Cipher_Impl *pImpl = static_cast<Cipher_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
@ -164,7 +164,7 @@ rtlCipherError SAL_CALL rtl_cipher_init(
|
|||
rtlCipherError SAL_CALL rtl_cipher_encode(
|
||||
rtlCipher Cipher,
|
||||
const void *pData, sal_Size nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) noexcept
|
||||
{
|
||||
Cipher_Impl *pImpl = static_cast<Cipher_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
@ -179,7 +179,7 @@ rtlCipherError SAL_CALL rtl_cipher_encode(
|
|||
rtlCipherError SAL_CALL rtl_cipher_decode(
|
||||
rtlCipher Cipher,
|
||||
const void *pData, sal_Size nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) noexcept
|
||||
{
|
||||
Cipher_Impl *pImpl = static_cast<Cipher_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
@ -191,7 +191,7 @@ rtlCipherError SAL_CALL rtl_cipher_decode(
|
|||
return (pImpl->m_decode)(Cipher, pData, nDatLen, pBuffer, nBufLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_cipher_destroy(rtlCipher Cipher) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_cipher_destroy(rtlCipher Cipher) noexcept
|
||||
{
|
||||
Cipher_Impl *pImpl = static_cast<Cipher_Impl*>(Cipher);
|
||||
if (pImpl && pImpl->m_delete)
|
||||
|
@ -1001,7 +1001,7 @@ static sal_uInt32 BF(CipherKeyBF *key, sal_uInt32 x)
|
|||
|
||||
Reference: Bruce Schneier: Applied Cryptography, 2nd edition, ch. 14.3
|
||||
*/
|
||||
rtlCipher SAL_CALL rtl_cipher_createBF(rtlCipherMode Mode) SAL_THROW_EXTERN_C()
|
||||
rtlCipher SAL_CALL rtl_cipher_createBF(rtlCipherMode Mode) noexcept
|
||||
{
|
||||
CipherBF_Impl *pImpl = nullptr;
|
||||
|
||||
|
@ -1033,7 +1033,7 @@ rtlCipherError SAL_CALL rtl_cipher_initBF(
|
|||
rtlCipher Cipher,
|
||||
rtlCipherDirection Direction,
|
||||
const sal_uInt8 *pKeyData, sal_Size nKeyLen,
|
||||
const sal_uInt8 *pArgData, sal_Size nArgLen) SAL_THROW_EXTERN_C()
|
||||
const sal_uInt8 *pArgData, sal_Size nArgLen) noexcept
|
||||
{
|
||||
CipherBF_Impl *pImpl = static_cast<CipherBF_Impl*>(Cipher);
|
||||
|
||||
|
@ -1092,7 +1092,7 @@ rtlCipherError SAL_CALL rtl_cipher_initBF(
|
|||
rtlCipherError SAL_CALL rtl_cipher_encodeBF(
|
||||
rtlCipher Cipher,
|
||||
const void *pData, sal_Size nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) noexcept
|
||||
{
|
||||
CipherBF_Impl *pImpl = static_cast<CipherBF_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
@ -1116,7 +1116,7 @@ rtlCipherError SAL_CALL rtl_cipher_encodeBF(
|
|||
rtlCipherError SAL_CALL rtl_cipher_decodeBF(
|
||||
rtlCipher Cipher,
|
||||
const void *pData, sal_Size nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) noexcept
|
||||
{
|
||||
CipherBF_Impl *pImpl = static_cast<CipherBF_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
@ -1137,7 +1137,7 @@ rtlCipherError SAL_CALL rtl_cipher_decodeBF(
|
|||
static_cast<const sal_uInt8*>(pData), nDatLen, pBuffer, nBufLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_cipher_destroyBF(rtlCipher Cipher) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_cipher_destroyBF(rtlCipher Cipher) noexcept
|
||||
{
|
||||
CipherBF_Impl *pImpl = static_cast<CipherBF_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
@ -1325,8 +1325,7 @@ static rtlCipherError rtl_cipherARCFOUR_update_Impl(
|
|||
|
||||
Reference: Bruce Schneier: Applied Cryptography, 2nd edition, ch. 17.1
|
||||
*/
|
||||
rtlCipher SAL_CALL rtl_cipher_createARCFOUR(rtlCipherMode Mode)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlCipher SAL_CALL rtl_cipher_createARCFOUR(rtlCipherMode Mode) noexcept
|
||||
{
|
||||
CipherARCFOUR_Impl *pImpl = nullptr;
|
||||
|
||||
|
@ -1353,8 +1352,7 @@ rtlCipherError SAL_CALL rtl_cipher_initARCFOUR(
|
|||
rtlCipher Cipher,
|
||||
rtlCipherDirection Direction,
|
||||
const sal_uInt8 *pKeyData, sal_Size nKeyLen,
|
||||
SAL_UNUSED_PARAMETER const sal_uInt8 *, SAL_UNUSED_PARAMETER sal_Size)
|
||||
SAL_THROW_EXTERN_C()
|
||||
SAL_UNUSED_PARAMETER const sal_uInt8 *, SAL_UNUSED_PARAMETER sal_Size) noexcept
|
||||
{
|
||||
CipherARCFOUR_Impl *pImpl = static_cast<CipherARCFOUR_Impl*>(Cipher);
|
||||
|
||||
|
@ -1375,7 +1373,7 @@ rtlCipherError SAL_CALL rtl_cipher_initARCFOUR(
|
|||
rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR(
|
||||
rtlCipher Cipher,
|
||||
const void *pData, sal_Size nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) noexcept
|
||||
{
|
||||
CipherARCFOUR_Impl *pImpl = static_cast<CipherARCFOUR_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
@ -1395,7 +1393,7 @@ rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR(
|
|||
rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR(
|
||||
rtlCipher Cipher,
|
||||
const void *pData, sal_Size nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_Size nBufLen) noexcept
|
||||
{
|
||||
CipherARCFOUR_Impl *pImpl = static_cast<CipherARCFOUR_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
@ -1412,7 +1410,7 @@ rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR(
|
|||
static_cast<const sal_uInt8*>(pData), nDatLen, pBuffer, nBufLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_cipher_destroyARCFOUR(rtlCipher Cipher) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_cipher_destroyARCFOUR(rtlCipher Cipher) noexcept
|
||||
{
|
||||
CipherARCFOUR_Impl *pImpl = static_cast<CipherARCFOUR_Impl*>(Cipher);
|
||||
if (!pImpl)
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
sal_uInt32 SAL_CALL rtl_crc32 (
|
||||
sal_uInt32 Crc,
|
||||
const void *Data, sal_uInt32 DatLen) SAL_THROW_EXTERN_C()
|
||||
const void *Data, sal_uInt32 DatLen) noexcept
|
||||
{
|
||||
// Check that our types map to zlib correctly.
|
||||
static_assert(sizeof(uLong) >= sizeof(sal_uInt32));
|
||||
|
|
|
@ -81,8 +81,7 @@ static void swapLong(sal_uInt32 *pData, sal_uInt32 nDatLen)
|
|||
}
|
||||
}
|
||||
|
||||
rtlDigest SAL_CALL rtl_digest_create(rtlDigestAlgorithm Algorithm)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest SAL_CALL rtl_digest_create(rtlDigestAlgorithm Algorithm) noexcept
|
||||
{
|
||||
rtlDigest Digest = nullptr;
|
||||
switch (Algorithm)
|
||||
|
@ -117,8 +116,7 @@ rtlDigest SAL_CALL rtl_digest_create(rtlDigestAlgorithm Algorithm)
|
|||
return Digest;
|
||||
}
|
||||
|
||||
rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm(rtlDigest Digest)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm(rtlDigest Digest) noexcept
|
||||
{
|
||||
Digest_Impl *pImpl = static_cast<Digest_Impl *>(Digest);
|
||||
if (pImpl)
|
||||
|
@ -126,8 +124,7 @@ rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm(rtlDigest Digest)
|
|||
return rtl_Digest_AlgorithmInvalid;
|
||||
}
|
||||
|
||||
sal_uInt32 SAL_CALL rtl_digest_queryLength(rtlDigest Digest)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_uInt32 SAL_CALL rtl_digest_queryLength(rtlDigest Digest) noexcept
|
||||
{
|
||||
Digest_Impl *pImpl = static_cast<Digest_Impl *>(Digest);
|
||||
if (pImpl)
|
||||
|
@ -136,8 +133,7 @@ sal_uInt32 SAL_CALL rtl_digest_queryLength(rtlDigest Digest)
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_init(
|
||||
rtlDigest Digest, const sal_uInt8 *pData, sal_uInt32 nDatLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const sal_uInt8 *pData, sal_uInt32 nDatLen) noexcept
|
||||
{
|
||||
Digest_Impl *pImpl = static_cast<Digest_Impl *>(Digest);
|
||||
if (pImpl)
|
||||
|
@ -150,8 +146,7 @@ rtlDigestError SAL_CALL rtl_digest_init(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_update(
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) noexcept
|
||||
{
|
||||
Digest_Impl *pImpl = static_cast<Digest_Impl *>(Digest);
|
||||
if (pImpl && pImpl->m_update)
|
||||
|
@ -160,8 +155,7 @@ rtlDigestError SAL_CALL rtl_digest_update(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_get(
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
Digest_Impl *pImpl = static_cast<Digest_Impl *>(Digest);
|
||||
if (pImpl && pImpl->m_get)
|
||||
|
@ -169,7 +163,7 @@ rtlDigestError SAL_CALL rtl_digest_get(
|
|||
return rtl_Digest_E_Argument;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_digest_destroy(rtlDigest Digest) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_digest_destroy(rtlDigest Digest) noexcept
|
||||
{
|
||||
Digest_Impl *pImpl = static_cast<Digest_Impl *>(Digest);
|
||||
if (pImpl && pImpl->m_delete)
|
||||
|
@ -316,7 +310,7 @@ static void endMD2(DigestContextMD2 *ctx)
|
|||
|
||||
rtlDigestError SAL_CALL rtl_digest_MD2(
|
||||
const void *pData, sal_uInt32 nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestMD2_Impl digest;
|
||||
rtlDigestError result;
|
||||
|
@ -332,7 +326,7 @@ rtlDigestError SAL_CALL rtl_digest_MD2(
|
|||
return result;
|
||||
}
|
||||
|
||||
rtlDigest SAL_CALL rtl_digest_createMD2() SAL_THROW_EXTERN_C()
|
||||
rtlDigest SAL_CALL rtl_digest_createMD2() noexcept
|
||||
{
|
||||
DigestMD2_Impl *pImpl = RTL_DIGEST_CREATE(DigestMD2_Impl);
|
||||
if (pImpl)
|
||||
|
@ -344,8 +338,7 @@ rtlDigest SAL_CALL rtl_digest_createMD2() SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_updateMD2(
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) noexcept
|
||||
{
|
||||
DigestMD2_Impl *pImpl = static_cast<DigestMD2_Impl *>(Digest);
|
||||
const sal_uInt8 *d = static_cast<const sal_uInt8 *>(pData);
|
||||
|
@ -400,8 +393,7 @@ rtlDigestError SAL_CALL rtl_digest_updateMD2(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_getMD2(
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestMD2_Impl *pImpl = static_cast<DigestMD2_Impl *>(Digest);
|
||||
sal_uInt32 i;
|
||||
|
@ -430,7 +422,7 @@ rtlDigestError SAL_CALL rtl_digest_getMD2(
|
|||
return rtl_Digest_E_None;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_digest_destroyMD2(rtlDigest Digest) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_digest_destroyMD2(rtlDigest Digest) noexcept
|
||||
{
|
||||
DigestMD2_Impl *pImpl = static_cast<DigestMD2_Impl *>(Digest);
|
||||
if (pImpl)
|
||||
|
@ -657,7 +649,7 @@ static void endMD5(DigestContextMD5 *ctx)
|
|||
|
||||
rtlDigestError SAL_CALL rtl_digest_MD5(
|
||||
const void *pData, sal_uInt32 nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestMD5_Impl digest;
|
||||
rtlDigestError result;
|
||||
|
@ -673,7 +665,7 @@ rtlDigestError SAL_CALL rtl_digest_MD5(
|
|||
return result;
|
||||
}
|
||||
|
||||
rtlDigest SAL_CALL rtl_digest_createMD5() SAL_THROW_EXTERN_C()
|
||||
rtlDigest SAL_CALL rtl_digest_createMD5() noexcept
|
||||
{
|
||||
DigestMD5_Impl *pImpl = RTL_DIGEST_CREATE(DigestMD5_Impl);
|
||||
if (pImpl)
|
||||
|
@ -685,8 +677,7 @@ rtlDigest SAL_CALL rtl_digest_createMD5() SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_updateMD5(
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) noexcept
|
||||
{
|
||||
DigestMD5_Impl *pImpl = static_cast<DigestMD5_Impl *>(Digest);
|
||||
const sal_uInt8 *d = static_cast<const sal_uInt8 *>(pData);
|
||||
|
@ -757,8 +748,7 @@ rtlDigestError SAL_CALL rtl_digest_updateMD5(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_getMD5(
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestMD5_Impl *pImpl = static_cast<DigestMD5_Impl *>(Digest);
|
||||
sal_uInt8 *p = pBuffer;
|
||||
|
@ -787,8 +777,7 @@ rtlDigestError SAL_CALL rtl_digest_getMD5(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_rawMD5(
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestMD5_Impl *pImpl = static_cast<DigestMD5_Impl *>(Digest);
|
||||
sal_uInt8 *p = pBuffer;
|
||||
|
@ -816,7 +805,7 @@ rtlDigestError SAL_CALL rtl_digest_rawMD5(
|
|||
return rtl_Digest_E_None;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_digest_destroyMD5(rtlDigest Digest) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_digest_destroyMD5(rtlDigest Digest) noexcept
|
||||
{
|
||||
DigestMD5_Impl *pImpl = static_cast<DigestMD5_Impl *>(Digest);
|
||||
if (pImpl)
|
||||
|
@ -1103,7 +1092,7 @@ static sal_uInt32 updateSHA_0(sal_uInt32 x)
|
|||
|
||||
rtlDigestError SAL_CALL rtl_digest_SHA(
|
||||
const void *pData, sal_uInt32 nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestSHA_Impl digest;
|
||||
rtlDigestError result;
|
||||
|
@ -1119,7 +1108,7 @@ rtlDigestError SAL_CALL rtl_digest_SHA(
|
|||
return result;
|
||||
}
|
||||
|
||||
rtlDigest SAL_CALL rtl_digest_createSHA() SAL_THROW_EXTERN_C()
|
||||
rtlDigest SAL_CALL rtl_digest_createSHA() noexcept
|
||||
{
|
||||
DigestSHA_Impl *pImpl = RTL_DIGEST_CREATE(DigestSHA_Impl);
|
||||
if (pImpl)
|
||||
|
@ -1131,8 +1120,7 @@ rtlDigest SAL_CALL rtl_digest_createSHA() SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_updateSHA(
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) noexcept
|
||||
{
|
||||
DigestSHA_Impl *pImpl = static_cast<DigestSHA_Impl *>(Digest);
|
||||
const sal_uInt8 *d = static_cast<const sal_uInt8 *>(pData);
|
||||
|
@ -1203,8 +1191,7 @@ rtlDigestError SAL_CALL rtl_digest_updateSHA(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_getSHA(
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestSHA_Impl *pImpl = static_cast<DigestSHA_Impl *>(Digest);
|
||||
sal_uInt8 *p = pBuffer;
|
||||
|
@ -1233,7 +1220,7 @@ rtlDigestError SAL_CALL rtl_digest_getSHA(
|
|||
return rtl_Digest_E_None;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_digest_destroySHA(rtlDigest Digest) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_digest_destroySHA(rtlDigest Digest) noexcept
|
||||
{
|
||||
DigestSHA_Impl *pImpl = static_cast< DigestSHA_Impl * >(Digest);
|
||||
if (pImpl)
|
||||
|
@ -1262,7 +1249,7 @@ static sal_uInt32 updateSHA_1(sal_uInt32 x)
|
|||
|
||||
rtlDigestError SAL_CALL rtl_digest_SHA1(
|
||||
const void *pData, sal_uInt32 nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestSHA_Impl digest;
|
||||
rtlDigestError result;
|
||||
|
@ -1278,7 +1265,7 @@ rtlDigestError SAL_CALL rtl_digest_SHA1(
|
|||
return result;
|
||||
}
|
||||
|
||||
rtlDigest SAL_CALL rtl_digest_createSHA1() SAL_THROW_EXTERN_C()
|
||||
rtlDigest SAL_CALL rtl_digest_createSHA1() noexcept
|
||||
{
|
||||
DigestSHA_Impl *pImpl = RTL_DIGEST_CREATE(DigestSHA_Impl);
|
||||
if (pImpl)
|
||||
|
@ -1290,8 +1277,7 @@ rtlDigest SAL_CALL rtl_digest_createSHA1() SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_updateSHA1(
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) noexcept
|
||||
{
|
||||
DigestSHA_Impl *pImpl = static_cast< DigestSHA_Impl * >(Digest);
|
||||
const sal_uInt8 *d = static_cast< const sal_uInt8 * >(pData);
|
||||
|
@ -1362,8 +1348,7 @@ rtlDigestError SAL_CALL rtl_digest_updateSHA1(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_getSHA1 (
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestSHA_Impl *pImpl = static_cast<DigestSHA_Impl *>(Digest);
|
||||
sal_uInt8 *p = pBuffer;
|
||||
|
@ -1392,7 +1377,7 @@ rtlDigestError SAL_CALL rtl_digest_getSHA1 (
|
|||
return rtl_Digest_E_None;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_digest_destroySHA1(rtlDigest Digest) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_digest_destroySHA1(rtlDigest Digest) noexcept
|
||||
{
|
||||
DigestSHA_Impl *pImpl = static_cast< DigestSHA_Impl * >(Digest);
|
||||
if (pImpl)
|
||||
|
@ -1477,7 +1462,7 @@ static void opadHMAC_MD5(ContextHMAC_MD5 * ctx)
|
|||
rtlDigestError SAL_CALL rtl_digest_HMAC_MD5(
|
||||
const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen,
|
||||
const void *pData, sal_uInt32 nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestHMAC_MD5_Impl digest;
|
||||
rtlDigestError result;
|
||||
|
@ -1496,7 +1481,7 @@ rtlDigestError SAL_CALL rtl_digest_HMAC_MD5(
|
|||
return result;
|
||||
}
|
||||
|
||||
rtlDigest SAL_CALL rtl_digest_createHMAC_MD5() SAL_THROW_EXTERN_C()
|
||||
rtlDigest SAL_CALL rtl_digest_createHMAC_MD5() noexcept
|
||||
{
|
||||
DigestHMAC_MD5_Impl *pImpl = RTL_DIGEST_CREATE(DigestHMAC_MD5_Impl);
|
||||
if (pImpl)
|
||||
|
@ -1508,8 +1493,7 @@ rtlDigest SAL_CALL rtl_digest_createHMAC_MD5() SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5(
|
||||
rtlDigest Digest, const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen) noexcept
|
||||
{
|
||||
DigestHMAC_MD5_Impl *pImpl = static_cast< DigestHMAC_MD5_Impl* >(Digest);
|
||||
ContextHMAC_MD5 *ctx;
|
||||
|
@ -1542,8 +1526,7 @@ rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5(
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) noexcept
|
||||
{
|
||||
DigestHMAC_MD5_Impl *pImpl = static_cast< DigestHMAC_MD5_Impl* >(Digest);
|
||||
ContextHMAC_MD5 *ctx;
|
||||
|
@ -1561,8 +1544,7 @@ rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5(
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestHMAC_MD5_Impl *pImpl = static_cast<DigestHMAC_MD5_Impl*>(Digest);
|
||||
ContextHMAC_MD5 *ctx;
|
||||
|
@ -1592,7 +1574,7 @@ rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5(
|
|||
return rtl_Digest_E_None;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_digest_destroyHMAC_MD5(rtlDigest Digest) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_digest_destroyHMAC_MD5(rtlDigest Digest) noexcept
|
||||
{
|
||||
DigestHMAC_MD5_Impl *pImpl = static_cast< DigestHMAC_MD5_Impl* >(Digest);
|
||||
if (pImpl)
|
||||
|
@ -1676,7 +1658,7 @@ static void opadHMAC_SHA1(ContextHMAC_SHA1 * ctx)
|
|||
rtlDigestError SAL_CALL rtl_digest_HMAC_SHA1(
|
||||
const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen,
|
||||
const void *pData, sal_uInt32 nDatLen,
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) SAL_THROW_EXTERN_C()
|
||||
sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestHMAC_SHA1_Impl digest;
|
||||
rtlDigestError result;
|
||||
|
@ -1695,7 +1677,7 @@ rtlDigestError SAL_CALL rtl_digest_HMAC_SHA1(
|
|||
return result;
|
||||
}
|
||||
|
||||
rtlDigest SAL_CALL rtl_digest_createHMAC_SHA1() SAL_THROW_EXTERN_C()
|
||||
rtlDigest SAL_CALL rtl_digest_createHMAC_SHA1() noexcept
|
||||
{
|
||||
DigestHMAC_SHA1_Impl *pImpl = RTL_DIGEST_CREATE(DigestHMAC_SHA1_Impl);
|
||||
if (pImpl)
|
||||
|
@ -1707,8 +1689,7 @@ rtlDigest SAL_CALL rtl_digest_createHMAC_SHA1() SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1(
|
||||
rtlDigest Digest, const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen) noexcept
|
||||
{
|
||||
DigestHMAC_SHA1_Impl *pImpl = static_cast<DigestHMAC_SHA1_Impl*>(Digest);
|
||||
ContextHMAC_SHA1 *ctx;
|
||||
|
@ -1741,8 +1722,7 @@ rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1(
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, const void *pData, sal_uInt32 nDatLen) noexcept
|
||||
{
|
||||
DigestHMAC_SHA1_Impl *pImpl = static_cast<DigestHMAC_SHA1_Impl*>(Digest);
|
||||
ContextHMAC_SHA1 *ctx;
|
||||
|
@ -1760,8 +1740,7 @@ rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1(
|
|||
}
|
||||
|
||||
rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1(
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen) noexcept
|
||||
{
|
||||
DigestHMAC_SHA1_Impl *pImpl = static_cast<DigestHMAC_SHA1_Impl*>(Digest);
|
||||
ContextHMAC_SHA1 *ctx;
|
||||
|
@ -1791,8 +1770,7 @@ rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1(
|
|||
return rtl_Digest_E_None;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_digest_destroyHMAC_SHA1(rtlDigest Digest)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_digest_destroyHMAC_SHA1(rtlDigest Digest) noexcept
|
||||
{
|
||||
DigestHMAC_SHA1_Impl *pImpl = static_cast<DigestHMAC_SHA1_Impl*>(Digest);
|
||||
if (pImpl)
|
||||
|
@ -1848,7 +1826,7 @@ rtlDigestError SAL_CALL rtl_digest_PBKDF2(
|
|||
sal_uInt8 *pKeyData , sal_uInt32 nKeyLen,
|
||||
const sal_uInt8 *pPassData, sal_uInt32 nPassLen,
|
||||
const sal_uInt8 *pSaltData, sal_uInt32 nSaltLen,
|
||||
sal_uInt32 nCount) SAL_THROW_EXTERN_C()
|
||||
sal_uInt32 nCount) noexcept
|
||||
{
|
||||
DigestHMAC_SHA1_Impl digest;
|
||||
sal_uInt32 i = 1;
|
||||
|
|
|
@ -145,8 +145,8 @@ void SAL_CALL rtl_math_doubleToString(rtl_String** pResult, sal_Int32* pResultCa
|
|||
sal_Int32 nResultOffset, double fValue,
|
||||
rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces,
|
||||
char cDecSeparator, sal_Int32 const* pGroups,
|
||||
char cGroupSeparator, sal_Bool bEraseTrailingDecZeros)
|
||||
SAL_THROW_EXTERN_C()
|
||||
char cGroupSeparator,
|
||||
sal_Bool bEraseTrailingDecZeros) noexcept
|
||||
{
|
||||
rtl::str::doubleToString(pResult, pResultCapacity, nResultOffset, fValue, eFormat, nDecPlaces,
|
||||
cDecSeparator, pGroups, cGroupSeparator, bEraseTrailingDecZeros);
|
||||
|
@ -156,8 +156,8 @@ void SAL_CALL rtl_math_doubleToUString(rtl_uString** pResult, sal_Int32* pResult
|
|||
sal_Int32 nResultOffset, double fValue,
|
||||
rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces,
|
||||
sal_Unicode cDecSeparator, sal_Int32 const* pGroups,
|
||||
sal_Unicode cGroupSeparator, sal_Bool bEraseTrailingDecZeros)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Unicode cGroupSeparator,
|
||||
sal_Bool bEraseTrailingDecZeros) noexcept
|
||||
{
|
||||
rtl::str::doubleToString(pResult, pResultCapacity, nResultOffset, fValue, eFormat, nDecPlaces,
|
||||
cDecSeparator, pGroups, cGroupSeparator, bEraseTrailingDecZeros);
|
||||
|
@ -415,7 +415,7 @@ double stringToDouble(CharT const* pBegin, CharT const* pEnd, CharT cDecSeparato
|
|||
|
||||
double SAL_CALL rtl_math_stringToDouble(char const* pBegin, char const* pEnd, char cDecSeparator,
|
||||
char cGroupSeparator, rtl_math_ConversionStatus* pStatus,
|
||||
char const** pParsedEnd) SAL_THROW_EXTERN_C()
|
||||
char const** pParsedEnd) noexcept
|
||||
{
|
||||
return stringToDouble(reinterpret_cast<unsigned char const*>(pBegin),
|
||||
reinterpret_cast<unsigned char const*>(pEnd),
|
||||
|
@ -427,13 +427,13 @@ double SAL_CALL rtl_math_stringToDouble(char const* pBegin, char const* pEnd, ch
|
|||
double SAL_CALL rtl_math_uStringToDouble(sal_Unicode const* pBegin, sal_Unicode const* pEnd,
|
||||
sal_Unicode cDecSeparator, sal_Unicode cGroupSeparator,
|
||||
rtl_math_ConversionStatus* pStatus,
|
||||
sal_Unicode const** pParsedEnd) SAL_THROW_EXTERN_C()
|
||||
sal_Unicode const** pParsedEnd) noexcept
|
||||
{
|
||||
return stringToDouble(pBegin, pEnd, cDecSeparator, cGroupSeparator, pStatus, pParsedEnd);
|
||||
}
|
||||
|
||||
double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, enum rtl_math_RoundingMode eMode)
|
||||
SAL_THROW_EXTERN_C()
|
||||
double SAL_CALL rtl_math_round(double fValue, int nDecPlaces,
|
||||
enum rtl_math_RoundingMode eMode) noexcept
|
||||
{
|
||||
if (!std::isfinite(fValue))
|
||||
return fValue;
|
||||
|
@ -572,12 +572,12 @@ double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, enum rtl_math_Roun
|
|||
return bSign ? -fValue : fValue;
|
||||
}
|
||||
|
||||
double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C()
|
||||
double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) noexcept
|
||||
{
|
||||
return fValue * getN10Exp(nExp);
|
||||
}
|
||||
|
||||
double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C()
|
||||
double SAL_CALL rtl_math_approxValue(double fValue) noexcept
|
||||
{
|
||||
const double fBigInt = 0x1p41; // 2^41 -> only 11 bits left for fractional part, fine as decimal
|
||||
if (fValue == 0.0 || !std::isfinite(fValue) || fValue > fBigInt)
|
||||
|
@ -626,7 +626,7 @@ double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C()
|
|||
return bSign ? -fValue : fValue;
|
||||
}
|
||||
|
||||
bool SAL_CALL rtl_math_approxEqual(double a, double b) SAL_THROW_EXTERN_C()
|
||||
bool SAL_CALL rtl_math_approxEqual(double a, double b) noexcept
|
||||
{
|
||||
static const double e48 = 0x1p-48;
|
||||
|
||||
|
@ -653,9 +653,9 @@ bool SAL_CALL rtl_math_approxEqual(double a, double b) SAL_THROW_EXTERN_C()
|
|||
return true;
|
||||
}
|
||||
|
||||
double SAL_CALL rtl_math_expm1(double fValue) SAL_THROW_EXTERN_C() { return expm1(fValue); }
|
||||
double SAL_CALL rtl_math_expm1(double fValue) noexcept { return expm1(fValue); }
|
||||
|
||||
double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C()
|
||||
double SAL_CALL rtl_math_log1p(double fValue) noexcept
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
if (fValue == -0.0)
|
||||
|
@ -665,18 +665,18 @@ double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C()
|
|||
return log1p(fValue);
|
||||
}
|
||||
|
||||
double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C() { return ::atanh(fValue); }
|
||||
double SAL_CALL rtl_math_atanh(double fValue) noexcept { return ::atanh(fValue); }
|
||||
|
||||
/** Parent error function (erf) */
|
||||
double SAL_CALL rtl_math_erf(double x) SAL_THROW_EXTERN_C() { return erf(x); }
|
||||
double SAL_CALL rtl_math_erf(double x) noexcept { return erf(x); }
|
||||
|
||||
/** Parent complementary error function (erfc) */
|
||||
double SAL_CALL rtl_math_erfc(double x) SAL_THROW_EXTERN_C() { return erfc(x); }
|
||||
double SAL_CALL rtl_math_erfc(double x) noexcept { return erfc(x); }
|
||||
|
||||
/** improved accuracy of asinh for |x| large and for x near zero
|
||||
@see #i97605#
|
||||
*/
|
||||
double SAL_CALL rtl_math_asinh(double fX) SAL_THROW_EXTERN_C()
|
||||
double SAL_CALL rtl_math_asinh(double fX) noexcept
|
||||
{
|
||||
if (fX == 0.0)
|
||||
return 0.0;
|
||||
|
@ -700,7 +700,7 @@ double SAL_CALL rtl_math_asinh(double fX) SAL_THROW_EXTERN_C()
|
|||
/** improved accuracy of acosh for x large and for x near 1
|
||||
@see #i97605#
|
||||
*/
|
||||
double SAL_CALL rtl_math_acosh(double fX) SAL_THROW_EXTERN_C()
|
||||
double SAL_CALL rtl_math_acosh(double fX) noexcept
|
||||
{
|
||||
volatile double fZ = fX - 1.0;
|
||||
if (fX < 1.0)
|
||||
|
|
|
@ -35,13 +35,13 @@ struct RandomPool_Impl
|
|||
|
||||
}
|
||||
|
||||
rtlRandomPool SAL_CALL rtl_random_createPool() SAL_THROW_EXTERN_C()
|
||||
rtlRandomPool SAL_CALL rtl_random_createPool() noexcept
|
||||
{
|
||||
RandomPool_Impl *pImpl = static_cast< RandomPool_Impl* >(rtl_allocateZeroMemory(sizeof(RandomPool_Impl)));
|
||||
return static_cast< rtlRandomPool >(pImpl);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_random_destroyPool(rtlRandomPool Pool) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_random_destroyPool(rtlRandomPool Pool) noexcept
|
||||
{
|
||||
RandomPool_Impl *pImpl = static_cast< RandomPool_Impl* >(Pool);
|
||||
if (pImpl)
|
||||
|
@ -51,7 +51,7 @@ void SAL_CALL rtl_random_destroyPool(rtlRandomPool Pool) SAL_THROW_EXTERN_C()
|
|||
}
|
||||
|
||||
rtlRandomError SAL_CALL rtl_random_addBytes(
|
||||
rtlRandomPool Pool, const void *Buffer, sal_Size /*Bytes*/) SAL_THROW_EXTERN_C()
|
||||
rtlRandomPool Pool, const void *Buffer, sal_Size /*Bytes*/) noexcept
|
||||
{
|
||||
RandomPool_Impl *pImpl = static_cast< RandomPool_Impl* >(Pool);
|
||||
const sal_uInt8 *pBuffer = static_cast< const sal_uInt8* >(Buffer);
|
||||
|
@ -63,7 +63,7 @@ rtlRandomError SAL_CALL rtl_random_addBytes(
|
|||
}
|
||||
|
||||
rtlRandomError SAL_CALL rtl_random_getBytes (
|
||||
rtlRandomPool, void *Buffer, sal_Size Bytes) SAL_THROW_EXTERN_C()
|
||||
rtlRandomPool, void *Buffer, sal_Size Bytes) noexcept
|
||||
{
|
||||
sal_uInt8 *pBuffer = static_cast< sal_uInt8* >(Buffer);
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ static void mark_static(void *addr, sal_Size /* size */)
|
|||
str->refCount |= SAL_STRING_STATIC_FLAG;
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_alloc_preInit (sal_Bool start) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_alloc_preInit (sal_Bool start) noexcept
|
||||
{
|
||||
if (start)
|
||||
{
|
||||
|
|
|
@ -41,26 +41,24 @@
|
|||
|
||||
/* ======================================================================= */
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfFloat(char * pStr, float f)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfFloat(char * pStr, float f) noexcept
|
||||
{
|
||||
return rtl::str::valueOfFP<RTL_STR_MAX_VALUEOFFLOAT>(pStr, f);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfDouble(char * pStr, double d)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfDouble(char * pStr, double d) noexcept
|
||||
{
|
||||
return rtl::str::valueOfFP<RTL_STR_MAX_VALUEOFDOUBLE>(pStr, d);
|
||||
}
|
||||
|
||||
float SAL_CALL rtl_str_toFloat(char const * pStr) SAL_THROW_EXTERN_C()
|
||||
float SAL_CALL rtl_str_toFloat(char const * pStr) noexcept
|
||||
{
|
||||
assert(pStr);
|
||||
return static_cast<float>(rtl_math_stringToDouble(pStr, pStr + rtl_str_getLength(pStr),
|
||||
'.', 0, nullptr, nullptr));
|
||||
}
|
||||
|
||||
double SAL_CALL rtl_str_toDouble(char const * pStr) SAL_THROW_EXTERN_C()
|
||||
double SAL_CALL rtl_str_toDouble(char const * pStr) noexcept
|
||||
{
|
||||
assert(pStr);
|
||||
return rtl_math_stringToDouble(pStr, pStr + rtl_str_getLength(pStr), '.', 0,
|
||||
|
@ -258,8 +256,7 @@ void SAL_CALL rtl_uString2String( rtl_String** ppThis,
|
|||
const sal_Unicode* pUStr,
|
||||
sal_Int32 nULen,
|
||||
rtl_TextEncoding eTextEncoding,
|
||||
sal_uInt32 nCvtFlags )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_uInt32 nCvtFlags ) noexcept
|
||||
{
|
||||
rtl_impl_convertUStringToString(ppThis, pUStr, nULen, eTextEncoding,
|
||||
nCvtFlags, false);
|
||||
|
@ -269,8 +266,7 @@ sal_Bool SAL_CALL rtl_convertUStringToString(rtl_String ** pTarget,
|
|||
sal_Unicode const * pSource,
|
||||
sal_Int32 nLength,
|
||||
rtl_TextEncoding nEncoding,
|
||||
sal_uInt32 nFlags)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_uInt32 nFlags) noexcept
|
||||
{
|
||||
return rtl_impl_convertUStringToString(pTarget, pSource, nLength, nEncoding,
|
||||
nFlags, true);
|
||||
|
@ -279,7 +275,7 @@ sal_Bool SAL_CALL rtl_convertUStringToString(rtl_String ** pTarget,
|
|||
void rtl_string_newReplaceFirst(
|
||||
rtl_String ** newStr, rtl_String * str, char const * from,
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength,
|
||||
sal_Int32 * index) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 * index) noexcept
|
||||
{
|
||||
assert(str != nullptr);
|
||||
assert(index != nullptr);
|
||||
|
@ -304,26 +300,24 @@ void rtl_string_newReplaceFirst(
|
|||
|
||||
void rtl_string_newReplaceAll(
|
||||
rtl_String ** newStr, rtl_String * str, char const * from,
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength) noexcept
|
||||
{
|
||||
rtl::str::newReplaceAllFromIndex(newStr, str, from, fromLength, to, toLength, 0);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_getLength(const char* pStr) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_getLength(const char* pStr) noexcept
|
||||
{
|
||||
return rtl::str::getLength(pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_compare(const char* pStr1, const char* pStr2) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_compare(const char* pStr1, const char* pStr2) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::null_terminated(pStr1), rtl::str::null_terminated(pStr2),
|
||||
rtl::str::CompareNormal(), rtl::str::noShortening);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_compare_WithLength(const char* pStr1, sal_Int32 nStr1Len,
|
||||
const char* pStr2, sal_Int32 nStr2Len)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pStr2, sal_Int32 nStr2Len) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::with_length(pStr2, nStr2Len),
|
||||
|
@ -332,8 +326,7 @@ sal_Int32 SAL_CALL rtl_str_compare_WithLength(const char* pStr1, sal_Int32 nStr1
|
|||
|
||||
sal_Int32 SAL_CALL rtl_str_shortenedCompare_WithLength(const char* pStr1, sal_Int32 nStr1Len,
|
||||
const char* pStr2, sal_Int32 nStr2Len,
|
||||
sal_Int32 nShortenedLength)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nShortenedLength) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::with_length(pStr2, nStr2Len),
|
||||
|
@ -341,23 +334,20 @@ sal_Int32 SAL_CALL rtl_str_shortenedCompare_WithLength(const char* pStr1, sal_In
|
|||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_reverseCompare_WithLength(const char* pStr1, sal_Int32 nStr1Len,
|
||||
const char* pStr2, sal_Int32 nStr2Len)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pStr2, sal_Int32 nStr2Len) noexcept
|
||||
{
|
||||
return rtl::str::reverseCompare_WithLengths(pStr1, nStr1Len, pStr2, nStr2Len,
|
||||
rtl::str::CompareNormal());
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase(const char* pStr1, const char* pStr2)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase(const char* pStr1, const char* pStr2) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::null_terminated(pStr1), rtl::str::null_terminated(pStr2),
|
||||
rtl::str::CompareIgnoreAsciiCase(), rtl::str::noShortening);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase_WithLength(const char* pStr1, sal_Int32 nStr1Len,
|
||||
const char* pStr2, sal_Int32 nStr2Len)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pStr2, sal_Int32 nStr2Len) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::with_length(pStr2, nStr2Len),
|
||||
|
@ -366,292 +356,274 @@ sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase_WithLength(const char* pStr1,
|
|||
|
||||
sal_Int32 SAL_CALL rtl_str_shortenedCompareIgnoreAsciiCase_WithLength(
|
||||
const char* pStr1, sal_Int32 nStr1Len, const char* pStr2, sal_Int32 nStr2Len,
|
||||
sal_Int32 nShortenedLength) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nShortenedLength) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::with_length(pStr2, nStr2Len),
|
||||
rtl::str::CompareIgnoreAsciiCase(), nShortenedLength);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_hashCode(const char* pStr) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_hashCode(const char* pStr) noexcept
|
||||
{
|
||||
return rtl::str::hashCode(pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_hashCode_WithLength(const char* pStr, sal_Int32 nLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_hashCode_WithLength(const char* pStr, sal_Int32 nLen) noexcept
|
||||
{
|
||||
return rtl::str::hashCode_WithLength(pStr, nLen);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_indexOfChar(const char* pStr, char c) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_indexOfChar(const char* pStr, char c) noexcept
|
||||
{
|
||||
return rtl::str::indexOfChar(pStr, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength(const char* pStr, sal_Int32 nLen, char c)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength(const char* pStr, sal_Int32 nLen, char c) noexcept
|
||||
{
|
||||
return rtl::str::indexOfChar_WithLength(pStr, nLen, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_lastIndexOfChar(const char* pStr, char c) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_lastIndexOfChar(const char* pStr, char c) noexcept
|
||||
{
|
||||
return rtl::str::lastIndexOfChar(pStr, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength(const char* pStr, sal_Int32 nLen, char c)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength(const char* pStr, sal_Int32 nLen, char c) noexcept
|
||||
{
|
||||
return rtl::str::lastIndexOfChar_WithLength(pStr, nLen, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_indexOfStr(const char* pStr, const char* pSubStr) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_indexOfStr(const char* pStr, const char* pSubStr) noexcept
|
||||
{
|
||||
return rtl::str::indexOfStr(pStr, pSubStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_indexOfStr_WithLength(const char* pStr, sal_Int32 nStrLen,
|
||||
const char* pSubStr, sal_Int32 nSubLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pSubStr, sal_Int32 nSubLen) noexcept
|
||||
{
|
||||
return rtl::str::indexOfStr_WithLength(pStr, nStrLen, pSubStr, nSubLen);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_lastIndexOfStr(const char* pStr, const char* pSubStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_lastIndexOfStr(const char* pStr, const char* pSubStr) noexcept
|
||||
{
|
||||
return rtl::str::lastIndexOfStr(pStr, pSubStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_lastIndexOfStr_WithLength(const char* pStr, sal_Int32 nStrLen,
|
||||
const char* pSubStr, sal_Int32 nSubLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pSubStr, sal_Int32 nSubLen) noexcept
|
||||
{
|
||||
return rtl::str::lastIndexOfStr_WithLength(pStr, nStrLen, pSubStr, nSubLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_str_replaceChar(char* pStr, char cOld, char cNew) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_str_replaceChar(char* pStr, char cOld, char cNew) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::null_terminated(pStr), rtl::str::FromTo(cOld, cNew));
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_str_replaceChar_WithLength(char* pStr, sal_Int32 nLen, char cOld, char cNew)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_str_replaceChar_WithLength(char* pStr, sal_Int32 nLen, char cOld, char cNew) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::with_length(pStr, nLen), rtl::str::FromTo(cOld, cNew));
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_str_toAsciiLowerCase(char* pStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_str_toAsciiLowerCase(char* pStr) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::null_terminated(pStr), rtl::str::toAsciiLower);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_str_toAsciiLowerCase_WithLength(char* pStr, sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_str_toAsciiLowerCase_WithLength(char* pStr, sal_Int32 nLen) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::with_length(pStr, nLen), rtl::str::toAsciiLower);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_str_toAsciiUpperCase(char* pStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_str_toAsciiUpperCase(char* pStr) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::null_terminated(pStr), rtl::str::toAsciiUpper);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_str_toAsciiUpperCase_WithLength(char* pStr, sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_str_toAsciiUpperCase_WithLength(char* pStr, sal_Int32 nLen) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::with_length(pStr, nLen), rtl::str::toAsciiUpper);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_trim(char* pStr) SAL_THROW_EXTERN_C() { return rtl::str::trim(pStr); }
|
||||
sal_Int32 SAL_CALL rtl_str_trim(char* pStr) noexcept { return rtl::str::trim(pStr); }
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_trim_WithLength(char* pStr, sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_trim_WithLength(char* pStr, sal_Int32 nLen) noexcept
|
||||
{
|
||||
return rtl::str::trim_WithLength(pStr, nLen);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfBoolean(char* pStr, sal_Bool b) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfBoolean(char* pStr, sal_Bool b) noexcept
|
||||
{
|
||||
return rtl::str::valueOfBoolean(pStr, b);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfChar(char* pStr, char c) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfChar(char* pStr, char c) noexcept
|
||||
{
|
||||
return rtl::str::valueOfChar(pStr, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfInt32(char* pStr, sal_Int32 n, sal_Int16 nRadix)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfInt32(char* pStr, sal_Int32 n, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::valueOfInt<RTL_STR_MAX_VALUEOFINT32>(pStr, n, nRadix);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfInt64(char* pStr, sal_Int64 n, sal_Int16 nRadix)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfInt64(char* pStr, sal_Int64 n, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::valueOfInt<RTL_STR_MAX_VALUEOFINT64>(pStr, n, nRadix);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfUInt64(char* pStr, sal_uInt64 n, sal_Int16 nRadix)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_valueOfUInt64(char* pStr, sal_uInt64 n, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::valueOfInt<RTL_STR_MAX_VALUEOFUINT64>(pStr, n, nRadix);
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL rtl_str_toBoolean(const char* pStr) SAL_THROW_EXTERN_C()
|
||||
sal_Bool SAL_CALL rtl_str_toBoolean(const char* pStr) noexcept
|
||||
{
|
||||
return rtl::str::toBoolean(pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_str_toInt32(const char* pStr, sal_Int16 nRadix) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_str_toInt32(const char* pStr, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_Int32>(rtl::str::null_terminated(pStr), nRadix);
|
||||
}
|
||||
|
||||
sal_Int64 SAL_CALL rtl_str_toInt64(const char* pStr, sal_Int16 nRadix) SAL_THROW_EXTERN_C()
|
||||
sal_Int64 SAL_CALL rtl_str_toInt64(const char* pStr, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_Int64>(rtl::str::null_terminated(pStr), nRadix);
|
||||
}
|
||||
|
||||
sal_Int64 SAL_CALL rtl_str_toInt64_WithLength(const char* pStr, sal_Int16 nRadix,
|
||||
sal_Int32 nStrLength) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nStrLength) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_Int64>(rtl::str::with_length(pStr, nStrLength), nRadix);
|
||||
}
|
||||
|
||||
sal_uInt32 SAL_CALL rtl_str_toUInt32(const char* pStr, sal_Int16 nRadix) SAL_THROW_EXTERN_C()
|
||||
sal_uInt32 SAL_CALL rtl_str_toUInt32(const char* pStr, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_uInt32>(rtl::str::null_terminated(pStr), nRadix);
|
||||
}
|
||||
|
||||
sal_uInt64 SAL_CALL rtl_str_toUInt64(const char* pStr, sal_Int16 nRadix) SAL_THROW_EXTERN_C()
|
||||
sal_uInt64 SAL_CALL rtl_str_toUInt64(const char* pStr, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_uInt64>(rtl::str::null_terminated(pStr), nRadix);
|
||||
}
|
||||
|
||||
rtl_String* rtl_string_ImplAlloc(sal_Int32 nLen) { return rtl::str::Alloc<rtl_String>(nLen); }
|
||||
|
||||
void SAL_CALL rtl_string_acquire(rtl_String* pThis) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_acquire(rtl_String* pThis) noexcept
|
||||
{
|
||||
return rtl::str::acquire(pThis);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_release(rtl_String* pThis) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_release(rtl_String* pThis) noexcept
|
||||
{
|
||||
return rtl::str::release(pThis);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_new(rtl_String** ppThis) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_new(rtl_String** ppThis) noexcept
|
||||
{
|
||||
return rtl::str::new_(ppThis);
|
||||
}
|
||||
|
||||
rtl_String* SAL_CALL rtl_string_alloc(sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
rtl_String* SAL_CALL rtl_string_alloc(sal_Int32 nLen) noexcept
|
||||
{
|
||||
assert(nLen >= 0);
|
||||
return rtl::str::Alloc<rtl_String>(nLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_new_WithLength(rtl_String** ppThis, sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_new_WithLength(rtl_String** ppThis, sal_Int32 nLen) noexcept
|
||||
{
|
||||
rtl::str::new_WithLength(ppThis, nLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newFromString(rtl_String** ppThis, const rtl_String* pStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_newFromString(rtl_String** ppThis, const rtl_String* pStr) noexcept
|
||||
{
|
||||
rtl::str::newFromString(ppThis, pStr);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newFromStr(rtl_String** ppThis, const char* pCharStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_newFromStr(rtl_String** ppThis, const char* pCharStr) noexcept
|
||||
{
|
||||
rtl::str::newFromStr(ppThis, pCharStr);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newFromStr_WithLength(rtl_String** ppThis, const char* pCharStr,
|
||||
sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nLen) noexcept
|
||||
{
|
||||
rtl::str::newFromStr_WithLength(ppThis, pCharStr, nLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newFromSubString(rtl_String** ppThis, const rtl_String* pFrom,
|
||||
sal_Int32 beginIndex, sal_Int32 count)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 beginIndex, sal_Int32 count) noexcept
|
||||
{
|
||||
rtl::str::newFromSubString(ppThis, pFrom, beginIndex, count);
|
||||
}
|
||||
|
||||
// Used when creating from string literals.
|
||||
void SAL_CALL rtl_string_newFromLiteral(rtl_String** ppThis, const char* pCharStr, sal_Int32 nLen,
|
||||
sal_Int32 allocExtra) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 allocExtra) noexcept
|
||||
{
|
||||
rtl::str::newFromStr_WithLength(ppThis, pCharStr, nLen, allocExtra);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_assign(rtl_String** ppThis, rtl_String* pStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_assign(rtl_String** ppThis, rtl_String* pStr) noexcept
|
||||
{
|
||||
rtl::str::assign(ppThis, pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_string_getLength(const rtl_String* pThis) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_string_getLength(const rtl_String* pThis) noexcept
|
||||
{
|
||||
return rtl::str::getLength(pThis);
|
||||
}
|
||||
|
||||
char* SAL_CALL rtl_string_getStr(rtl_String* pThis) SAL_THROW_EXTERN_C()
|
||||
char* SAL_CALL rtl_string_getStr(rtl_String* pThis) noexcept
|
||||
{
|
||||
return rtl::str::getStr(pThis);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newConcat(rtl_String** ppThis, rtl_String* pLeft, rtl_String* pRight)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_newConcat(rtl_String** ppThis, rtl_String* pLeft, rtl_String* pRight) noexcept
|
||||
{
|
||||
rtl::str::newConcat(ppThis, pLeft, pRight);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_ensureCapacity(rtl_String** ppThis, sal_Int32 size) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_ensureCapacity(rtl_String** ppThis, sal_Int32 size) noexcept
|
||||
{
|
||||
rtl::str::ensureCapacity(ppThis, size);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newReplaceStrAt(rtl_String** ppThis, rtl_String* pStr, sal_Int32 nIndex,
|
||||
sal_Int32 nCount, rtl_String* pNewSubStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nCount, rtl_String* pNewSubStr) noexcept
|
||||
{
|
||||
rtl::str::newReplaceStrAt(ppThis, pStr, nIndex, nCount, pNewSubStr);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newReplaceStrAt_WithLength(rtl_String** ppThis, rtl_String* pStr, sal_Int32 nIndex,
|
||||
sal_Int32 nCount, char const * subStr, sal_Int32 substrLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nCount, char const * subStr, sal_Int32 substrLen) noexcept
|
||||
{
|
||||
rtl::str::newReplaceStrAt(ppThis, pStr, nIndex, nCount, subStr, substrLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newReplace(rtl_String** ppThis, rtl_String* pStr, char cOld, char cNew)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_newReplace(rtl_String** ppThis, rtl_String* pStr, char cOld, char cNew) noexcept
|
||||
{
|
||||
rtl::str::newReplaceChars(ppThis, pStr, rtl::str::FromTo(cOld, cNew));
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newToAsciiLowerCase(rtl_String** ppThis, rtl_String* pStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_newToAsciiLowerCase(rtl_String** ppThis, rtl_String* pStr) noexcept
|
||||
{
|
||||
rtl::str::newReplaceChars(ppThis, pStr, rtl::str::toAsciiLower);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newToAsciiUpperCase(rtl_String** ppThis, rtl_String* pStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_newToAsciiUpperCase(rtl_String** ppThis, rtl_String* pStr) noexcept
|
||||
{
|
||||
rtl::str::newReplaceChars(ppThis, pStr, rtl::str::toAsciiUpper);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_string_newTrim(rtl_String** ppThis, rtl_String* pStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_string_newTrim(rtl_String** ppThis, rtl_String* pStr) noexcept
|
||||
{
|
||||
rtl::str::newTrim(ppThis, pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_string_getToken(rtl_String** ppThis, rtl_String* pStr, sal_Int32 nToken,
|
||||
char cTok, sal_Int32 nIndex) SAL_THROW_EXTERN_C()
|
||||
char cTok, sal_Int32 nIndex) noexcept
|
||||
{
|
||||
return rtl::str::getToken(ppThis, pStr, nToken, cTok, nIndex);
|
||||
}
|
||||
|
|
|
@ -461,8 +461,7 @@ void appendPath(
|
|||
|
||||
}
|
||||
|
||||
sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass) noexcept
|
||||
{
|
||||
static constexpr std::array<sal_Bool, rtl::UriCharClassSize> aCharClass[] = {
|
||||
rtl::createUriCharClass(u8""), // None
|
||||
|
@ -497,8 +496,7 @@ sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass)
|
|||
|
||||
void SAL_CALL rtl_uriEncode(rtl_uString * pText, sal_Bool const * pCharClass,
|
||||
rtl_UriEncodeMechanism eMechanism,
|
||||
rtl_TextEncoding eCharset, rtl_uString ** pResult)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_TextEncoding eCharset, rtl_uString ** pResult) noexcept
|
||||
{
|
||||
assert(!pCharClass[0x25]); // make sure the percent sign is encoded...
|
||||
|
||||
|
@ -563,8 +561,7 @@ void SAL_CALL rtl_uriEncode(rtl_uString * pText, sal_Bool const * pCharClass,
|
|||
|
||||
void SAL_CALL rtl_uriDecode(rtl_uString * pText,
|
||||
rtl_UriDecodeMechanism eMechanism,
|
||||
rtl_TextEncoding eCharset, rtl_uString ** pResult)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_TextEncoding eCharset, rtl_uString ** pResult) noexcept
|
||||
{
|
||||
switch (eMechanism)
|
||||
{
|
||||
|
@ -620,8 +617,7 @@ void SAL_CALL rtl_uriDecode(rtl_uString * pText,
|
|||
sal_Bool SAL_CALL rtl_uriConvertRelToAbs(rtl_uString * pBaseUriRef,
|
||||
rtl_uString * pRelUriRef,
|
||||
rtl_uString ** pResult,
|
||||
rtl_uString ** pException)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_uString ** pException) noexcept
|
||||
{
|
||||
// Use the strict parser algorithm from RFC 3986, section 5.2, to turn the
|
||||
// relative URI into an absolute one:
|
||||
|
|
|
@ -82,8 +82,7 @@ void SAL_CALL rtl_uStringbuffer_insert( rtl_uString ** This,
|
|||
}
|
||||
|
||||
void rtl_uStringbuffer_insertUtf32(
|
||||
rtl_uString ** pThis, sal_Int32 * capacity, sal_Int32 offset, sal_uInt32 c)
|
||||
SAL_THROW_EXTERN_C()
|
||||
rtl_uString ** pThis, sal_Int32 * capacity, sal_Int32 offset, sal_uInt32 c) noexcept
|
||||
{
|
||||
sal_Unicode buf[2];
|
||||
sal_Int32 len = rtl::splitSurrogates(c, buf);
|
||||
|
|
|
@ -52,14 +52,14 @@
|
|||
|
||||
sal_Int32 rtl_ustr_indexOfAscii_WithLength(
|
||||
sal_Unicode const * str, sal_Int32 len,
|
||||
char const * subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C()
|
||||
char const * subStr, sal_Int32 subLen) noexcept
|
||||
{
|
||||
return rtl::str::indexOfStr_WithLength(str, len, subStr, subLen);
|
||||
}
|
||||
|
||||
sal_Int32 rtl_ustr_lastIndexOfAscii_WithLength(
|
||||
sal_Unicode const * str, sal_Int32 len,
|
||||
char const * subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C()
|
||||
char const * subStr, sal_Int32 subLen) noexcept
|
||||
{
|
||||
assert(len >= 0);
|
||||
assert(subLen >= 0);
|
||||
|
@ -76,14 +76,12 @@ sal_Int32 rtl_ustr_lastIndexOfAscii_WithLength(
|
|||
return -1;
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfFloat(sal_Unicode * pStr, float f)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfFloat(sal_Unicode * pStr, float f) noexcept
|
||||
{
|
||||
return rtl::str::valueOfFP<RTL_USTR_MAX_VALUEOFFLOAT>(pStr, f);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfDouble(sal_Unicode * pStr, double d)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfDouble(sal_Unicode * pStr, double d) noexcept
|
||||
{
|
||||
return rtl::str::valueOfFP<RTL_USTR_MAX_VALUEOFDOUBLE>(pStr, d);
|
||||
}
|
||||
|
@ -96,7 +94,7 @@ float doubleToFloat(double x) {
|
|||
|
||||
}
|
||||
|
||||
float SAL_CALL rtl_ustr_toFloat(sal_Unicode const * pStr) SAL_THROW_EXTERN_C()
|
||||
float SAL_CALL rtl_ustr_toFloat(sal_Unicode const * pStr) noexcept
|
||||
{
|
||||
assert(pStr);
|
||||
return doubleToFloat(rtl_math_uStringToDouble(pStr,
|
||||
|
@ -104,7 +102,7 @@ float SAL_CALL rtl_ustr_toFloat(sal_Unicode const * pStr) SAL_THROW_EXTERN_C()
|
|||
'.', 0, nullptr, nullptr));
|
||||
}
|
||||
|
||||
double SAL_CALL rtl_ustr_toDouble(sal_Unicode const * pStr) SAL_THROW_EXTERN_C()
|
||||
double SAL_CALL rtl_ustr_toDouble(sal_Unicode const * pStr) noexcept
|
||||
{
|
||||
assert(pStr);
|
||||
return rtl_math_uStringToDouble(pStr, pStr + rtl_ustr_getLength(pStr), '.',
|
||||
|
@ -114,8 +112,7 @@ double SAL_CALL rtl_ustr_toDouble(sal_Unicode const * pStr) SAL_THROW_EXTERN_C()
|
|||
/* ======================================================================= */
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_ascii_compare( const sal_Unicode* pStr1,
|
||||
const char* pStr2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pStr2 ) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::null_terminated(pStr1), rtl::str::null_terminated(pStr2),
|
||||
rtl::str::CompareNormal(), rtl::str::noShortening);
|
||||
|
@ -125,8 +122,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compare( const sal_Unicode* pStr1,
|
|||
|
||||
sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength( const sal_Unicode* pStr1,
|
||||
sal_Int32 nStr1Len,
|
||||
const char* pStr2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pStr2 ) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::null_terminated(pStr2),
|
||||
|
@ -138,8 +134,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength( const sal_Unicode* pStr1,
|
|||
sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompare_WithLength( const sal_Unicode* pStr1,
|
||||
sal_Int32 nStr1Len,
|
||||
const char* pStr2,
|
||||
sal_Int32 nShortenedLength )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nShortenedLength ) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::null_terminated(pStr2),
|
||||
|
@ -151,8 +146,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompare_WithLength( const sal_Unicode
|
|||
sal_Int32 SAL_CALL rtl_ustr_asciil_reverseCompare_WithLength( const sal_Unicode* pStr1,
|
||||
sal_Int32 nStr1Len,
|
||||
const char* pStr2,
|
||||
sal_Int32 nStr2Len )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nStr2Len ) noexcept
|
||||
{
|
||||
return rtl::str::reverseCompare_WithLengths(pStr1, nStr1Len, pStr2, nStr2Len,
|
||||
rtl::str::CompareNormal());
|
||||
|
@ -162,8 +156,7 @@ sal_Int32 SAL_CALL rtl_ustr_asciil_reverseCompare_WithLength( const sal_Unicode*
|
|||
|
||||
sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength( const sal_Unicode* pStr1,
|
||||
const char* pStr2,
|
||||
sal_Int32 nStrLen )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nStrLen ) noexcept
|
||||
{
|
||||
assert(nStrLen >= 0);
|
||||
const sal_Unicode* pStr1Run = pStr1+nStrLen;
|
||||
|
@ -184,8 +177,7 @@ sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength( const sal_Unicode* p
|
|||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase( const sal_Unicode* pStr1,
|
||||
const char* pStr2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pStr2 ) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::null_terminated(pStr1), rtl::str::null_terminated(pStr2),
|
||||
rtl::str::CompareIgnoreAsciiCase(), rtl::str::noShortening);
|
||||
|
@ -195,8 +187,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase( const sal_Unicode* pSt
|
|||
|
||||
sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( const sal_Unicode* pStr1,
|
||||
sal_Int32 nStr1Len,
|
||||
const char* pStr2 )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pStr2 ) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::null_terminated(pStr2),
|
||||
|
@ -205,7 +196,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( const sal_U
|
|||
|
||||
sal_Int32 rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths(
|
||||
sal_Unicode const * first, sal_Int32 firstLen,
|
||||
char const * second, sal_Int32 secondLen) SAL_THROW_EXTERN_C()
|
||||
char const * second, sal_Int32 secondLen) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(first, firstLen),
|
||||
rtl::str::with_length(second, secondLen),
|
||||
|
@ -217,8 +208,7 @@ sal_Int32 rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths(
|
|||
sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( const sal_Unicode* pStr1,
|
||||
sal_Int32 nStr1Len,
|
||||
const char* pStr2,
|
||||
sal_Int32 nShortenedLength )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nShortenedLength ) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::null_terminated(pStr2),
|
||||
|
@ -228,8 +218,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( co
|
|||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
void SAL_CALL rtl_uString_newFromAscii( rtl_uString** ppThis,
|
||||
const char* pCharStr )
|
||||
SAL_THROW_EXTERN_C()
|
||||
const char* pCharStr ) noexcept
|
||||
{
|
||||
assert(ppThis);
|
||||
sal_Int32 nLen = pCharStr ? rtl::str::getLength(pCharStr) : 0;
|
||||
|
@ -263,7 +252,7 @@ void SAL_CALL rtl_uString_newFromAscii( rtl_uString** ppThis,
|
|||
|
||||
void SAL_CALL rtl_uString_newFromCodePoints(
|
||||
rtl_uString ** newString, sal_uInt32 const * codePoints,
|
||||
sal_Int32 codePointCount) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 codePointCount) noexcept
|
||||
{
|
||||
sal_Int32 n;
|
||||
sal_Int32 i;
|
||||
|
@ -545,7 +534,7 @@ void SAL_CALL rtl_string2UString( rtl_uString** ppThis,
|
|||
const char* pStr,
|
||||
sal_Int32 nLen,
|
||||
rtl_TextEncoding eTextEncoding,
|
||||
sal_uInt32 nCvtFlags ) SAL_THROW_EXTERN_C()
|
||||
sal_uInt32 nCvtFlags ) noexcept
|
||||
{
|
||||
assert(ppThis);
|
||||
assert(nLen >= 0);
|
||||
|
@ -596,7 +585,7 @@ static void rtl_ustring_intern_internal( rtl_uString ** newStr,
|
|||
}
|
||||
|
||||
void SAL_CALL rtl_uString_intern( rtl_uString ** newStr,
|
||||
rtl_uString * str) SAL_THROW_EXTERN_C()
|
||||
rtl_uString * str) noexcept
|
||||
{
|
||||
assert(newStr);
|
||||
assert(str);
|
||||
|
@ -642,8 +631,7 @@ void SAL_CALL rtl_uString_internConvert( rtl_uString ** newStr,
|
|||
sal_Int32 len,
|
||||
rtl_TextEncoding eTextEncoding,
|
||||
sal_uInt32 convertFlags,
|
||||
sal_uInt32 * pInfo )
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_uInt32 * pInfo ) noexcept
|
||||
{
|
||||
assert(newStr);
|
||||
assert(len >= 0);
|
||||
|
@ -758,7 +746,7 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints(
|
|||
|
||||
sal_Bool rtl_convertStringToUString(
|
||||
rtl_uString ** target, char const * source, sal_Int32 length,
|
||||
rtl_TextEncoding encoding, sal_uInt32 flags) SAL_THROW_EXTERN_C()
|
||||
rtl_TextEncoding encoding, sal_uInt32 flags) noexcept
|
||||
{
|
||||
assert(target);
|
||||
assert(length >= 0);
|
||||
|
@ -769,7 +757,7 @@ sal_Bool rtl_convertStringToUString(
|
|||
|
||||
void rtl_uString_newReplaceFirst(
|
||||
rtl_uString ** newStr, rtl_uString * str, rtl_uString const * from,
|
||||
rtl_uString const * to, sal_Int32 * index) SAL_THROW_EXTERN_C()
|
||||
rtl_uString const * to, sal_Int32 * index) noexcept
|
||||
{
|
||||
assert(from != nullptr);
|
||||
assert(to != nullptr);
|
||||
|
@ -779,8 +767,7 @@ void rtl_uString_newReplaceFirst(
|
|||
|
||||
void rtl_uString_newReplaceFirstAsciiL(
|
||||
rtl_uString ** newStr, rtl_uString * str, char const * from,
|
||||
sal_Int32 fromLength, rtl_uString const * to, sal_Int32 * index)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 fromLength, rtl_uString const * to, sal_Int32 * index) noexcept
|
||||
{
|
||||
assert(to != nullptr);
|
||||
rtl_uString_newReplaceFirstAsciiLUtf16L(newStr, str, from, fromLength, to->buffer, to->length,
|
||||
|
@ -789,8 +776,7 @@ void rtl_uString_newReplaceFirstAsciiL(
|
|||
|
||||
void rtl_uString_newReplaceFirstToAsciiL(
|
||||
rtl_uString ** newStr, rtl_uString * str, rtl_uString const * from,
|
||||
char const * to, sal_Int32 toLength, sal_Int32 * index)
|
||||
SAL_THROW_EXTERN_C()
|
||||
char const * to, sal_Int32 toLength, sal_Int32 * index) noexcept
|
||||
{
|
||||
assert(from != nullptr);
|
||||
rtl_uString_newReplaceFirstUtf16LAsciiL(newStr, str, from->buffer, from->length, to, toLength,
|
||||
|
@ -800,7 +786,7 @@ void rtl_uString_newReplaceFirstToAsciiL(
|
|||
void rtl_uString_newReplaceFirstAsciiLAsciiL(
|
||||
rtl_uString ** newStr, rtl_uString * str, char const * from,
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength,
|
||||
sal_Int32 * index) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 * index) noexcept
|
||||
{
|
||||
assert(index != nullptr);
|
||||
rtl::str::newReplaceFirst(newStr, str, from, fromLength, to, toLength, *index);
|
||||
|
@ -809,7 +795,7 @@ void rtl_uString_newReplaceFirstAsciiLAsciiL(
|
|||
void rtl_uString_newReplaceFirstAsciiLUtf16L(
|
||||
rtl_uString ** newStr, rtl_uString * str, char const * from,
|
||||
sal_Int32 fromLength, sal_Unicode const * to, sal_Int32 toLength,
|
||||
sal_Int32 * index) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 * index) noexcept
|
||||
{
|
||||
assert(index != nullptr);
|
||||
rtl::str::newReplaceFirst(newStr, str, from, fromLength, to, toLength, *index);
|
||||
|
@ -818,7 +804,7 @@ void rtl_uString_newReplaceFirstAsciiLUtf16L(
|
|||
void rtl_uString_newReplaceFirstUtf16LAsciiL(
|
||||
rtl_uString ** newStr, rtl_uString * str, sal_Unicode const * from,
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength,
|
||||
sal_Int32 * index) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 * index) noexcept
|
||||
{
|
||||
assert(index != nullptr);
|
||||
rtl::str::newReplaceFirst(newStr, str, from, fromLength, to, toLength, *index);
|
||||
|
@ -827,7 +813,7 @@ void rtl_uString_newReplaceFirstUtf16LAsciiL(
|
|||
void rtl_uString_newReplaceFirstUtf16LUtf16L(
|
||||
rtl_uString ** newStr, rtl_uString * str, sal_Unicode const * from,
|
||||
sal_Int32 fromLength, sal_Unicode const * to, sal_Int32 toLength,
|
||||
sal_Int32 * index) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 * index) noexcept
|
||||
{
|
||||
assert(index != nullptr);
|
||||
rtl::str::newReplaceFirst(newStr, str, from, fromLength, to, toLength, *index);
|
||||
|
@ -835,14 +821,14 @@ void rtl_uString_newReplaceFirstUtf16LUtf16L(
|
|||
|
||||
void rtl_uString_newReplaceAll(
|
||||
rtl_uString ** newStr, rtl_uString * str, rtl_uString const * from,
|
||||
rtl_uString const * to) SAL_THROW_EXTERN_C()
|
||||
rtl_uString const * to) noexcept
|
||||
{
|
||||
rtl_uString_newReplaceAllFromIndex( newStr, str, from, to, 0 );
|
||||
}
|
||||
|
||||
void rtl_uString_newReplaceAllFromIndex(
|
||||
rtl_uString ** newStr, rtl_uString * str, rtl_uString const * from,
|
||||
rtl_uString const * to, sal_Int32 fromIndex) SAL_THROW_EXTERN_C()
|
||||
rtl_uString const * to, sal_Int32 fromIndex) noexcept
|
||||
{
|
||||
assert(to != nullptr);
|
||||
assert(fromIndex >= 0 && fromIndex <= str->length);
|
||||
|
@ -852,7 +838,7 @@ void rtl_uString_newReplaceAllFromIndex(
|
|||
|
||||
void rtl_uString_newReplaceAllAsciiL(
|
||||
rtl_uString ** newStr, rtl_uString * str, char const * from,
|
||||
sal_Int32 fromLength, rtl_uString const * to) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 fromLength, rtl_uString const * to) noexcept
|
||||
{
|
||||
assert(to != nullptr);
|
||||
rtl_uString_newReplaceAllAsciiLUtf16L(newStr, str, from, fromLength, to->buffer, to->length);
|
||||
|
@ -860,7 +846,7 @@ void rtl_uString_newReplaceAllAsciiL(
|
|||
|
||||
void rtl_uString_newReplaceAllToAsciiL(
|
||||
rtl_uString ** newStr, rtl_uString * str, rtl_uString const * from,
|
||||
char const * to, sal_Int32 toLength) SAL_THROW_EXTERN_C()
|
||||
char const * to, sal_Int32 toLength) noexcept
|
||||
{
|
||||
assert(from != nullptr);
|
||||
rtl_uString_newReplaceAllUtf16LAsciiL(newStr, str, from->buffer, from->length, to, toLength);
|
||||
|
@ -868,59 +854,52 @@ void rtl_uString_newReplaceAllToAsciiL(
|
|||
|
||||
void rtl_uString_newReplaceAllAsciiLAsciiL(
|
||||
rtl_uString ** newStr, rtl_uString * str, char const * from,
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength) noexcept
|
||||
{
|
||||
rtl::str::newReplaceAllFromIndex(newStr, str, from, fromLength, to, toLength, 0);
|
||||
}
|
||||
|
||||
void rtl_uString_newReplaceAllAsciiLUtf16L(
|
||||
rtl_uString ** newStr, rtl_uString * str, char const * from,
|
||||
sal_Int32 fromLength, sal_Unicode const * to, sal_Int32 toLength)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 fromLength, sal_Unicode const * to, sal_Int32 toLength) noexcept
|
||||
{
|
||||
rtl::str::newReplaceAllFromIndex(newStr, str, from, fromLength, to, toLength, 0);
|
||||
}
|
||||
|
||||
void rtl_uString_newReplaceAllUtf16LAsciiL(
|
||||
rtl_uString ** newStr, rtl_uString * str, sal_Unicode const * from,
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 fromLength, char const * to, sal_Int32 toLength) noexcept
|
||||
{
|
||||
rtl::str::newReplaceAllFromIndex(newStr, str, from, fromLength, to, toLength, 0);
|
||||
}
|
||||
|
||||
void rtl_uString_newReplaceAllUtf16LUtf16L(
|
||||
rtl_uString ** newStr, rtl_uString * str, sal_Unicode const * from,
|
||||
sal_Int32 fromLength, sal_Unicode const * to, sal_Int32 toLength)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 fromLength, sal_Unicode const * to, sal_Int32 toLength) noexcept
|
||||
{
|
||||
rtl_uString_newReplaceAllFromIndexUtf16LUtf16L(newStr, str, from, fromLength, to, toLength, 0);
|
||||
}
|
||||
|
||||
void rtl_uString_newReplaceAllFromIndexUtf16LUtf16L(
|
||||
rtl_uString ** newStr, rtl_uString * str, sal_Unicode const * from,
|
||||
sal_Int32 fromLength, sal_Unicode const * to, sal_Int32 toLength, sal_Int32 fromIndex)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 fromLength, sal_Unicode const * to, sal_Int32 toLength, sal_Int32 fromIndex) noexcept
|
||||
{
|
||||
rtl::str::newReplaceAllFromIndex(newStr, str, from, fromLength, to, toLength, fromIndex);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_getLength(const sal_Unicode* pStr) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_getLength(const sal_Unicode* pStr) noexcept
|
||||
{
|
||||
return rtl::str::getLength(pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_compare(const sal_Unicode* pStr1, const sal_Unicode* pStr2)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_compare(const sal_Unicode* pStr1, const sal_Unicode* pStr2) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::null_terminated(pStr1), rtl::str::null_terminated(pStr2),
|
||||
rtl::str::CompareNormal(), rtl::str::noShortening);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_compare_WithLength(const sal_Unicode* pStr1, sal_Int32 nStr1Len,
|
||||
const sal_Unicode* pStr2, sal_Int32 nStr2Len)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const sal_Unicode* pStr2, sal_Int32 nStr2Len) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::with_length(pStr2, nStr2Len), rtl::str::CompareNormal(),
|
||||
|
@ -929,7 +908,7 @@ sal_Int32 SAL_CALL rtl_ustr_compare_WithLength(const sal_Unicode* pStr1, sal_Int
|
|||
|
||||
sal_Int32 SAL_CALL rtl_ustr_shortenedCompare_WithLength(
|
||||
const sal_Unicode* pStr1, sal_Int32 nStr1Len, const sal_Unicode* pStr2, sal_Int32 nStr2Len,
|
||||
sal_Int32 nShortenedLength) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nShortenedLength) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::with_length(pStr2, nStr2Len), rtl::str::CompareNormal(),
|
||||
|
@ -937,15 +916,14 @@ sal_Int32 SAL_CALL rtl_ustr_shortenedCompare_WithLength(
|
|||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_reverseCompare_WithLength(const sal_Unicode* pStr1, sal_Int32 nStr1Len,
|
||||
const sal_Unicode* pStr2, sal_Int32 nStr2Len)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const sal_Unicode* pStr2, sal_Int32 nStr2Len) noexcept
|
||||
{
|
||||
return rtl::str::reverseCompare_WithLengths(pStr1, nStr1Len, pStr2, nStr2Len,
|
||||
rtl::str::CompareNormal());
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase(const sal_Unicode* pStr1,
|
||||
const sal_Unicode* pStr2) SAL_THROW_EXTERN_C()
|
||||
const sal_Unicode* pStr2) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::null_terminated(pStr1), rtl::str::null_terminated(pStr2),
|
||||
rtl::str::CompareIgnoreAsciiCase(), rtl::str::noShortening);
|
||||
|
@ -954,8 +932,7 @@ sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase(const sal_Unicode* pStr1,
|
|||
sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase_WithLength(const sal_Unicode* pStr1,
|
||||
sal_Int32 nStr1Len,
|
||||
const sal_Unicode* pStr2,
|
||||
sal_Int32 nStr2Len)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nStr2Len) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::with_length(pStr2, nStr2Len),
|
||||
|
@ -964,174 +941,160 @@ sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase_WithLength(const sal_Unicode*
|
|||
|
||||
sal_Int32 SAL_CALL rtl_ustr_shortenedCompareIgnoreAsciiCase_WithLength(
|
||||
const sal_Unicode* pStr1, sal_Int32 nStr1Len, const sal_Unicode* pStr2, sal_Int32 nStr2Len,
|
||||
sal_Int32 nShortenedLength) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nShortenedLength) noexcept
|
||||
{
|
||||
return rtl::str::compare(rtl::str::with_length(pStr1, nStr1Len),
|
||||
rtl::str::with_length(pStr2, nStr2Len),
|
||||
rtl::str::CompareIgnoreAsciiCase(), nShortenedLength);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_hashCode(const sal_Unicode* pStr) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_hashCode(const sal_Unicode* pStr) noexcept
|
||||
{
|
||||
return rtl::str::hashCode(pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength(const sal_Unicode* pStr, sal_Int32 nLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength(const sal_Unicode* pStr, sal_Int32 nLen) noexcept
|
||||
{
|
||||
return rtl::str::hashCode_WithLength(pStr, nLen);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_indexOfChar(const sal_Unicode* pStr, sal_Unicode c) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_indexOfChar(const sal_Unicode* pStr, sal_Unicode c) noexcept
|
||||
{
|
||||
return rtl::str::indexOfChar(pStr, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_indexOfChar_WithLength(const sal_Unicode* pStr, sal_Int32 nLen,
|
||||
sal_Unicode c) SAL_THROW_EXTERN_C()
|
||||
sal_Unicode c) noexcept
|
||||
{
|
||||
return rtl::str::indexOfChar_WithLength(pStr, nLen, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar(const sal_Unicode* pStr, sal_Unicode c)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar(const sal_Unicode* pStr, sal_Unicode c) noexcept
|
||||
{
|
||||
return rtl::str::lastIndexOfChar(pStr, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar_WithLength(const sal_Unicode* pStr, sal_Int32 nLen,
|
||||
sal_Unicode c) SAL_THROW_EXTERN_C()
|
||||
sal_Unicode c) noexcept
|
||||
{
|
||||
return rtl::str::lastIndexOfChar_WithLength(pStr, nLen, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_indexOfStr(const sal_Unicode* pStr, const sal_Unicode* pSubStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_indexOfStr(const sal_Unicode* pStr, const sal_Unicode* pSubStr) noexcept
|
||||
{
|
||||
return rtl::str::indexOfStr(pStr, pSubStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_indexOfStr_WithLength(const sal_Unicode* pStr, sal_Int32 nStrLen,
|
||||
const sal_Unicode* pSubStr, sal_Int32 nSubLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const sal_Unicode* pSubStr, sal_Int32 nSubLen) noexcept
|
||||
{
|
||||
return rtl::str::indexOfStr_WithLength(pStr, nStrLen, pSubStr, nSubLen);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr(const sal_Unicode* pStr, const sal_Unicode* pSubStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr(const sal_Unicode* pStr, const sal_Unicode* pSubStr) noexcept
|
||||
{
|
||||
return rtl::str::lastIndexOfStr(pStr, pSubStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr_WithLength(const sal_Unicode* pStr, sal_Int32 nStrLen,
|
||||
const sal_Unicode* pSubStr, sal_Int32 nSubLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
const sal_Unicode* pSubStr, sal_Int32 nSubLen) noexcept
|
||||
{
|
||||
return rtl::str::lastIndexOfStr_WithLength(pStr, nStrLen, pSubStr, nSubLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_ustr_replaceChar(sal_Unicode* pStr, sal_Unicode cOld, sal_Unicode cNew)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_ustr_replaceChar(sal_Unicode* pStr, sal_Unicode cOld, sal_Unicode cNew) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::null_terminated(pStr), rtl::str::FromTo(cOld, cNew));
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_ustr_replaceChar_WithLength(sal_Unicode* pStr, sal_Int32 nLen, sal_Unicode cOld,
|
||||
sal_Unicode cNew) SAL_THROW_EXTERN_C()
|
||||
sal_Unicode cNew) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::with_length(pStr, nLen), rtl::str::FromTo(cOld, cNew));
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_ustr_toAsciiLowerCase(sal_Unicode* pStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_ustr_toAsciiLowerCase(sal_Unicode* pStr) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::null_terminated(pStr), rtl::str::toAsciiLower);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength(sal_Unicode* pStr, sal_Int32 nLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength(sal_Unicode* pStr, sal_Int32 nLen) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::with_length(pStr, nLen), rtl::str::toAsciiLower);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_ustr_toAsciiUpperCase(sal_Unicode* pStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_ustr_toAsciiUpperCase(sal_Unicode* pStr) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::null_terminated(pStr), rtl::str::toAsciiUpper);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength(sal_Unicode* pStr, sal_Int32 nLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength(sal_Unicode* pStr, sal_Int32 nLen) noexcept
|
||||
{
|
||||
return rtl::str::replaceChars(rtl::str::with_length(pStr, nLen), rtl::str::toAsciiUpper);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_trim(sal_Unicode* pStr) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_trim(sal_Unicode* pStr) noexcept
|
||||
{
|
||||
return rtl::str::trim(pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_trim_WithLength(sal_Unicode* pStr, sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_trim_WithLength(sal_Unicode* pStr, sal_Int32 nLen) noexcept
|
||||
{
|
||||
return rtl::str::trim_WithLength(pStr, nLen);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfBoolean(sal_Unicode* pStr, sal_Bool b) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfBoolean(sal_Unicode* pStr, sal_Bool b) noexcept
|
||||
{
|
||||
return rtl::str::valueOfBoolean(pStr, b);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfChar(sal_Unicode* pStr, sal_Unicode c) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfChar(sal_Unicode* pStr, sal_Unicode c) noexcept
|
||||
{
|
||||
return rtl::str::valueOfChar(pStr, c);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfInt32(sal_Unicode* pStr, sal_Int32 n, sal_Int16 nRadix)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfInt32(sal_Unicode* pStr, sal_Int32 n, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::valueOfInt<RTL_USTR_MAX_VALUEOFINT32>(pStr, n, nRadix);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfInt64(sal_Unicode* pStr, sal_Int64 n, sal_Int16 nRadix)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfInt64(sal_Unicode* pStr, sal_Int64 n, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::valueOfInt<RTL_USTR_MAX_VALUEOFINT64>(pStr, n, nRadix);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfUInt64(sal_Unicode* pStr, sal_uInt64 n, sal_Int16 nRadix)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_valueOfUInt64(sal_Unicode* pStr, sal_uInt64 n, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::valueOfInt<RTL_USTR_MAX_VALUEOFUINT64>(pStr, n, nRadix);
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL rtl_ustr_toBoolean(const sal_Unicode* pStr) SAL_THROW_EXTERN_C()
|
||||
sal_Bool SAL_CALL rtl_ustr_toBoolean(const sal_Unicode* pStr) noexcept
|
||||
{
|
||||
return rtl::str::toBoolean(pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_ustr_toInt32(const sal_Unicode* pStr, sal_Int16 nRadix) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_ustr_toInt32(const sal_Unicode* pStr, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_Int32>(rtl::str::null_terminated(pStr), nRadix);
|
||||
}
|
||||
|
||||
sal_Int64 SAL_CALL rtl_ustr_toInt64(const sal_Unicode* pStr, sal_Int16 nRadix) SAL_THROW_EXTERN_C()
|
||||
sal_Int64 SAL_CALL rtl_ustr_toInt64(const sal_Unicode* pStr, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_Int64>(rtl::str::null_terminated(pStr), nRadix);
|
||||
}
|
||||
|
||||
sal_Int64 SAL_CALL rtl_ustr_toInt64_WithLength(const sal_Unicode* pStr, sal_Int16 nRadix,
|
||||
sal_Int32 nStrLength) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nStrLength) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_Int64>(rtl::str::with_length(pStr, nStrLength), nRadix);
|
||||
}
|
||||
|
||||
sal_uInt32 SAL_CALL rtl_ustr_toUInt32(const sal_Unicode* pStr, sal_Int16 nRadix)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_uInt32 SAL_CALL rtl_ustr_toUInt32(const sal_Unicode* pStr, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_uInt32>(rtl::str::null_terminated(pStr), nRadix);
|
||||
}
|
||||
|
||||
sal_uInt64 SAL_CALL rtl_ustr_toUInt64(const sal_Unicode* pStr, sal_Int16 nRadix)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_uInt64 SAL_CALL rtl_ustr_toUInt64(const sal_Unicode* pStr, sal_Int16 nRadix) noexcept
|
||||
{
|
||||
return rtl::str::toInt<sal_uInt64>(rtl::str::null_terminated(pStr), nRadix);
|
||||
}
|
||||
|
@ -1141,129 +1104,121 @@ rtl_uString* rtl_uString_ImplAlloc(sal_Int32 nLen)
|
|||
return rtl::str::Alloc<rtl_uString>(nLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_acquire(rtl_uString* pThis) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_acquire(rtl_uString* pThis) noexcept
|
||||
{
|
||||
return rtl::str::acquire(pThis);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_release(rtl_uString* pThis) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_release(rtl_uString* pThis) noexcept
|
||||
{
|
||||
return rtl::str::release(pThis);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_new(rtl_uString** ppThis) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_new(rtl_uString** ppThis) noexcept
|
||||
{
|
||||
return rtl::str::new_(ppThis);
|
||||
}
|
||||
|
||||
rtl_uString* SAL_CALL rtl_uString_alloc(sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
rtl_uString* SAL_CALL rtl_uString_alloc(sal_Int32 nLen) noexcept
|
||||
{
|
||||
assert(nLen >= 0);
|
||||
return rtl::str::Alloc<rtl_uString>(nLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_new_WithLength(rtl_uString** ppThis, sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_new_WithLength(rtl_uString** ppThis, sal_Int32 nLen) noexcept
|
||||
{
|
||||
rtl::str::new_WithLength(ppThis, nLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newFromString(rtl_uString** ppThis, const rtl_uString* pStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_newFromString(rtl_uString** ppThis, const rtl_uString* pStr) noexcept
|
||||
{
|
||||
rtl::str::newFromString(ppThis, pStr);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newFromStr(rtl_uString** ppThis, const sal_Unicode* pCharStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_newFromStr(rtl_uString** ppThis, const sal_Unicode* pCharStr) noexcept
|
||||
{
|
||||
rtl::str::newFromStr(ppThis, pCharStr);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newFromStr_WithLength(rtl_uString** ppThis, const sal_Unicode* pCharStr,
|
||||
sal_Int32 nLen) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nLen) noexcept
|
||||
{
|
||||
rtl::str::newFromStr_WithLength(ppThis, pCharStr, nLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newFromSubString(rtl_uString** ppThis, const rtl_uString* pFrom,
|
||||
sal_Int32 beginIndex, sal_Int32 count)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 beginIndex, sal_Int32 count) noexcept
|
||||
{
|
||||
rtl::str::newFromSubString(ppThis, pFrom, beginIndex, count);
|
||||
}
|
||||
|
||||
// Used when creating from string literals.
|
||||
void SAL_CALL rtl_uString_newFromLiteral(rtl_uString** ppThis, const char* pCharStr, sal_Int32 nLen,
|
||||
sal_Int32 allocExtra) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 allocExtra) noexcept
|
||||
{
|
||||
rtl::str::newFromStr_WithLength(ppThis, pCharStr, nLen, allocExtra);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_assign(rtl_uString** ppThis, rtl_uString* pStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_assign(rtl_uString** ppThis, rtl_uString* pStr) noexcept
|
||||
{
|
||||
rtl::str::assign(ppThis, pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_uString_getLength(const rtl_uString* pThis) SAL_THROW_EXTERN_C()
|
||||
sal_Int32 SAL_CALL rtl_uString_getLength(const rtl_uString* pThis) noexcept
|
||||
{
|
||||
return rtl::str::getLength(pThis);
|
||||
}
|
||||
|
||||
sal_Unicode* SAL_CALL rtl_uString_getStr(rtl_uString* pThis) SAL_THROW_EXTERN_C()
|
||||
sal_Unicode* SAL_CALL rtl_uString_getStr(rtl_uString* pThis) noexcept
|
||||
{
|
||||
return rtl::str::getStr(pThis);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newConcat(rtl_uString** ppThis, rtl_uString* pLeft, rtl_uString* pRight)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_newConcat(rtl_uString** ppThis, rtl_uString* pLeft, rtl_uString* pRight) noexcept
|
||||
{
|
||||
rtl::str::newConcat(ppThis, pLeft, pRight);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_ensureCapacity(rtl_uString** ppThis, sal_Int32 size) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_ensureCapacity(rtl_uString** ppThis, sal_Int32 size) noexcept
|
||||
{
|
||||
rtl::str::ensureCapacity(ppThis, size);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newReplaceStrAt(rtl_uString** ppThis, rtl_uString* pStr, sal_Int32 nIndex,
|
||||
sal_Int32 nCount, rtl_uString* pNewSubStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nCount, rtl_uString* pNewSubStr) noexcept
|
||||
{
|
||||
rtl::str::newReplaceStrAt(ppThis, pStr, nIndex, nCount, pNewSubStr);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newReplaceStrAtUtf16L(rtl_uString** ppThis, rtl_uString* pStr, sal_Int32 nIndex,
|
||||
sal_Int32 nCount, sal_Unicode const * subStr, sal_Int32 substrLen)
|
||||
SAL_THROW_EXTERN_C()
|
||||
sal_Int32 nCount, sal_Unicode const * subStr, sal_Int32 substrLen) noexcept
|
||||
{
|
||||
rtl::str::newReplaceStrAt(ppThis, pStr, nIndex, nCount, subStr, substrLen);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newReplace(rtl_uString** ppThis, rtl_uString* pStr, sal_Unicode cOld,
|
||||
sal_Unicode cNew) SAL_THROW_EXTERN_C()
|
||||
sal_Unicode cNew) noexcept
|
||||
{
|
||||
rtl::str::newReplaceChars(ppThis, pStr, rtl::str::FromTo(cOld, cNew));
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newToAsciiLowerCase(rtl_uString** ppThis, rtl_uString* pStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_newToAsciiLowerCase(rtl_uString** ppThis, rtl_uString* pStr) noexcept
|
||||
{
|
||||
rtl::str::newReplaceChars(ppThis, pStr, rtl::str::toAsciiLower);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newToAsciiUpperCase(rtl_uString** ppThis, rtl_uString* pStr)
|
||||
SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_newToAsciiUpperCase(rtl_uString** ppThis, rtl_uString* pStr) noexcept
|
||||
{
|
||||
rtl::str::newReplaceChars(ppThis, pStr, rtl::str::toAsciiUpper);
|
||||
}
|
||||
|
||||
void SAL_CALL rtl_uString_newTrim(rtl_uString** ppThis, rtl_uString* pStr) SAL_THROW_EXTERN_C()
|
||||
void SAL_CALL rtl_uString_newTrim(rtl_uString** ppThis, rtl_uString* pStr) noexcept
|
||||
{
|
||||
rtl::str::newTrim(ppThis, pStr);
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL rtl_uString_getToken(rtl_uString** ppThis, rtl_uString* pStr, sal_Int32 nToken,
|
||||
sal_Unicode cTok, sal_Int32 nIndex) SAL_THROW_EXTERN_C()
|
||||
sal_Unicode cTok, sal_Int32 nIndex) noexcept
|
||||
{
|
||||
return rtl::str::getToken(ppThis, pStr, nToken, cTok, nIndex);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ using namespace store;
|
|||
|
||||
storeError store_acquireHandle (
|
||||
storeHandle Handle
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
OStoreObject *pHandle = static_cast<OStoreObject*>(Handle);
|
||||
if (!pHandle)
|
||||
|
@ -76,7 +76,7 @@ storeError store_acquireHandle (
|
|||
|
||||
storeError store_releaseHandle (
|
||||
storeHandle Handle
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
OStoreObject *pHandle = static_cast<OStoreObject*>(Handle);
|
||||
if (!pHandle)
|
||||
|
@ -89,7 +89,7 @@ storeError store_releaseHandle (
|
|||
storeError store_createMemoryFile (
|
||||
sal_uInt16 nPageSize,
|
||||
storeFileHandle *phFile
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
if (!phFile)
|
||||
return store_E_InvalidParameter;
|
||||
|
@ -122,7 +122,7 @@ storeError store_openFile (
|
|||
storeAccessMode eAccessMode,
|
||||
sal_uInt16 nPageSize,
|
||||
storeFileHandle *phFile
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
if (phFile)
|
||||
*phFile = nullptr;
|
||||
|
@ -157,7 +157,7 @@ storeError store_openFile (
|
|||
*/
|
||||
storeError store_closeFile (
|
||||
storeFileHandle Handle
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
OStorePageManager *pManager =
|
||||
OStoreHandle<OStorePageManager>::query (Handle);
|
||||
|
@ -171,7 +171,7 @@ storeError store_closeFile (
|
|||
|
||||
storeError store_flushFile (
|
||||
storeFileHandle Handle
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
OStoreHandle<OStorePageManager> xManager (
|
||||
OStoreHandle<OStorePageManager>::query (Handle));
|
||||
|
@ -187,7 +187,7 @@ storeError store_openDirectory (
|
|||
rtl_uString const *pName,
|
||||
storeAccessMode eAccessMode,
|
||||
storeDirectoryHandle *phDirectory
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
storeError eErrCode = store_E_None;
|
||||
if (phDirectory)
|
||||
|
@ -221,7 +221,7 @@ storeError store_openDirectory (
|
|||
storeError store_findFirst (
|
||||
storeDirectoryHandle Handle,
|
||||
storeFindData *pFindData
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
OStoreHandle<OStoreDirectory_Impl> xDirectory (
|
||||
OStoreHandle<OStoreDirectory_Impl>::query (Handle));
|
||||
|
@ -242,7 +242,7 @@ storeError store_findFirst (
|
|||
storeError store_findNext (
|
||||
storeDirectoryHandle Handle,
|
||||
storeFindData *pFindData
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
OStoreHandle<OStoreDirectory_Impl> xDirectory (
|
||||
OStoreHandle<OStoreDirectory_Impl>::query (Handle));
|
||||
|
@ -267,7 +267,7 @@ storeError store_openStream (
|
|||
rtl_uString const *pName,
|
||||
storeAccessMode eAccessMode,
|
||||
storeStreamHandle *phStream
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
storeError eErrCode = store_E_None;
|
||||
if (phStream)
|
||||
|
@ -307,7 +307,7 @@ storeError store_readStream (
|
|||
void *pBuffer,
|
||||
sal_uInt32 nBytes,
|
||||
sal_uInt32 *pnDone
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
OStoreHandle<OStoreLockBytes> xLockBytes (
|
||||
OStoreHandle<OStoreLockBytes>::query (Handle));
|
||||
|
@ -326,7 +326,7 @@ storeError store_writeStream (
|
|||
const void *pBuffer,
|
||||
sal_uInt32 nBytes,
|
||||
sal_uInt32 *pnDone
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
OStoreHandle<OStoreLockBytes> xLockBytes (
|
||||
OStoreHandle<OStoreLockBytes>::query (Handle));
|
||||
|
@ -343,7 +343,7 @@ storeError store_remove (
|
|||
storeFileHandle Handle,
|
||||
rtl_uString const *pPath,
|
||||
rtl_uString const *pName
|
||||
) SAL_THROW_EXTERN_C()
|
||||
) noexcept
|
||||
{
|
||||
storeError eErrCode = store_E_None;
|
||||
|
||||
|
|
Loading…
Reference in a new issue