From cf77e8a0b9dc26d5007c76388c3f09231f048bdd Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Sat, 17 Dec 2011 13:22:02 +0100 Subject: sal: add visibility symbols --- sal/inc/rtl/alloc.h | 34 +++----- sal/inc/rtl/bootstrap.h | 24 +++--- sal/inc/rtl/byteseq.h | 22 ++--- sal/inc/rtl/cipher.h | 30 +++---- sal/inc/rtl/crc.h | 2 +- sal/inc/rtl/digest.h | 82 +++++++++---------- sal/inc/rtl/locale.h | 18 +++-- sal/inc/rtl/logfile.h | 6 +- sal/inc/rtl/math.h | 28 +++---- sal/inc/rtl/memory.h | 12 +-- sal/inc/rtl/process.h | 6 +- sal/inc/rtl/random.h | 8 +- sal/inc/rtl/strbuf.h | 15 ++-- sal/inc/rtl/string.h | 157 ++++++++++++++++++++++------------- sal/inc/rtl/tencinfo.h | 31 ++++--- sal/inc/rtl/textcvt.h | 26 +++--- sal/inc/rtl/unload.h | 16 ++-- sal/inc/rtl/uri.h | 11 ++- sal/inc/rtl/ustrbuf.h | 20 +++-- sal/inc/rtl/ustring.h | 211 +++++++++++++++++++++++++++++++----------------- sal/inc/rtl/uuid.h | 8 +- 21 files changed, 450 insertions(+), 317 deletions(-) (limited to 'sal/inc/rtl') diff --git a/sal/inc/rtl/alloc.h b/sal/inc/rtl/alloc.h index dac0a2c42e53..35c7e5b308b4 100644 --- a/sal/inc/rtl/alloc.h +++ b/sal/inc/rtl/alloc.h @@ -43,7 +43,7 @@ extern "C" { @param Bytes [in] memory size. @return pointer to allocated memory. */ -void * SAL_CALL rtl_allocateMemory ( +SAL_DLLPUBLIC void * SAL_CALL rtl_allocateMemory ( sal_Size Bytes ) SAL_THROW_EXTERN_C(); @@ -62,7 +62,7 @@ void * SAL_CALL rtl_allocateMemory ( @param Bytes [in] new memory size. @return pointer to reallocated memory. May differ from Ptr. */ -void * SAL_CALL rtl_reallocateMemory ( +SAL_DLLPUBLIC void * SAL_CALL rtl_reallocateMemory ( void * Ptr, sal_Size Bytes ) SAL_THROW_EXTERN_C(); @@ -72,7 +72,7 @@ void * SAL_CALL rtl_reallocateMemory ( @param Ptr [in] pointer to previously allocated memory. @return none. Memory is released. Ptr is invalid. */ -void SAL_CALL rtl_freeMemory ( +SAL_DLLPUBLIC void SAL_CALL rtl_freeMemory ( void * Ptr ) SAL_THROW_EXTERN_C(); @@ -84,7 +84,7 @@ void SAL_CALL rtl_freeMemory ( @param Bytes [in] memory size. @return pointer to allocated and zero'ed memory. */ -void * SAL_CALL rtl_allocateZeroMemory ( +SAL_DLLPUBLIC void * SAL_CALL rtl_allocateZeroMemory ( sal_Size Bytes ) SAL_THROW_EXTERN_C(); @@ -94,7 +94,7 @@ void * SAL_CALL rtl_allocateZeroMemory ( @param Bytes [in] memory size. @return none. Memory is zero'ed and released. Ptr is invalid. */ -void SAL_CALL rtl_freeZeroMemory ( +SAL_DLLPUBLIC void SAL_CALL rtl_freeZeroMemory ( void * Ptr, sal_Size Bytes ) SAL_THROW_EXTERN_C(); @@ -121,8 +121,7 @@ typedef struct rtl_arena_st rtl_arena_type; * * @see rtl_arena_destroy() */ -rtl_arena_type * -SAL_CALL rtl_arena_create ( +SAL_DLLPUBLIC rtl_arena_type * SAL_CALL rtl_arena_create ( const char * pName, sal_Size quantum, sal_Size quantum_cache_max, @@ -140,8 +139,7 @@ SAL_CALL rtl_arena_create ( * * @see rtl_arena_create() */ -void -SAL_CALL rtl_arena_destroy ( +SAL_DLLPUBLIC void SAL_CALL rtl_arena_destroy ( rtl_arena_type * pArena ) SAL_THROW_EXTERN_C(); @@ -155,8 +153,7 @@ SAL_CALL rtl_arena_destroy ( * * @see rtl_arena_free() */ -void * -SAL_CALL rtl_arena_alloc ( +SAL_DLLPUBLIC void * SAL_CALL rtl_arena_alloc ( rtl_arena_type * pArena, sal_Size * pBytes ) SAL_THROW_EXTERN_C(); @@ -172,8 +169,7 @@ SAL_CALL rtl_arena_alloc ( * * @see rtl_arena_alloc() */ -void -SAL_CALL rtl_arena_free ( +SAL_DLLPUBLIC void SAL_CALL rtl_arena_free ( rtl_arena_type * pArena, void * pAddr, sal_Size nBytes @@ -203,8 +199,7 @@ typedef struct rtl_cache_st rtl_cache_type; * * @see rtl_cache_destroy() */ -rtl_cache_type * -SAL_CALL rtl_cache_create ( +SAL_DLLPUBLIC rtl_cache_type * SAL_CALL rtl_cache_create ( const char * pName, sal_Size nObjSize, sal_Size nObjAlign, @@ -225,8 +220,7 @@ SAL_CALL rtl_cache_create ( * * @see rtl_cache_create() */ -void -SAL_CALL rtl_cache_destroy ( +SAL_DLLPUBLIC void SAL_CALL rtl_cache_destroy ( rtl_cache_type * pCache ) SAL_THROW_EXTERN_C(); @@ -237,8 +231,7 @@ SAL_CALL rtl_cache_destroy ( * * @return pointer to allocated object, or NULL upon failure. */ -void * -SAL_CALL rtl_cache_alloc ( +SAL_DLLPUBLIC void * SAL_CALL rtl_cache_alloc ( rtl_cache_type * pCache ) SAL_THROW_EXTERN_C(); @@ -252,8 +245,7 @@ SAL_CALL rtl_cache_alloc ( * * @see rtl_cache_alloc() */ -void -SAL_CALL rtl_cache_free ( +SAL_DLLPUBLIC void SAL_CALL rtl_cache_free ( rtl_cache_type * pCache, void * pObj ) SAL_THROW_EXTERN_C(); diff --git a/sal/inc/rtl/bootstrap.h b/sal/inc/rtl/bootstrap.h index 500537b67ab8..a88b5ad9c0bc 100644 --- a/sal/inc/rtl/bootstrap.h +++ b/sal/inc/rtl/bootstrap.h @@ -125,7 +125,7 @@ extern "C" { @param pName URL of the ini file; must not be null, must not be the empty string */ -void SAL_CALL rtl_bootstrap_setIniFileName( rtl_uString *pName ) +SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_setIniFileName( rtl_uString *pName ) SAL_THROW_EXTERN_C(); /** @@ -145,7 +145,8 @@ void SAL_CALL rtl_bootstrap_setIniFileName( rtl_uString *pName ) When a pDefault value is given, the function returns always sal_True. */ -sal_Bool SAL_CALL rtl_bootstrap_get( rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault ) +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_bootstrap_get( + rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault ) SAL_THROW_EXTERN_C(); /** Sets a bootstrap parameter. @@ -155,7 +156,8 @@ sal_Bool SAL_CALL rtl_bootstrap_get( rtl_uString *pName, rtl_uString **ppValue, @param pValue value of bootstrap parameter */ -void SAL_CALL rtl_bootstrap_set( rtl_uString * pName, rtl_uString * pValue ) +SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_set( + rtl_uString * pName, rtl_uString * pValue ) SAL_THROW_EXTERN_C(); @@ -167,14 +169,14 @@ typedef void * rtlBootstrapHandle; to the excutables name @return Handle for a boostrap argument container */ -rtlBootstrapHandle SAL_CALL rtl_bootstrap_args_open(rtl_uString * pIniName) +SAL_DLLPUBLIC rtlBootstrapHandle SAL_CALL rtl_bootstrap_args_open(rtl_uString * pIniName) SAL_THROW_EXTERN_C(); /** Closes a boostrap agument container. @param handle [in] The handle got by rtl_bootstrap_args_open() */ -void SAL_CALL rtl_bootstrap_args_close(rtlBootstrapHandle handle) +SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_args_close(rtlBootstrapHandle handle) SAL_THROW_EXTERN_C(); /** @@ -185,7 +187,8 @@ void SAL_CALL rtl_bootstrap_args_close(rtlBootstrapHandle handle) @return The status of the retrieval, sal_True on success. */ -sal_Bool SAL_CALL rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault) +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_bootstrap_get_from_handle( + rtlBootstrapHandle handle, rtl_uString *pName, rtl_uString **ppValue, rtl_uString *pDefault) SAL_THROW_EXTERN_C(); @@ -193,7 +196,8 @@ sal_Bool SAL_CALL rtl_bootstrap_get_from_handle(rtlBootstrapHandle handle, rtl_u @param ppIniName contains after the call the name of the ini-filename. */ -void SAL_CALL rtl_bootstrap_get_iniName_from_handle(rtlBootstrapHandle handle, rtl_uString ** ppIniName) +SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_get_iniName_from_handle( + rtlBootstrapHandle handle, rtl_uString ** ppIniName) SAL_THROW_EXTERN_C(); /** Expands a macro using bootstrap variables. @@ -201,14 +205,14 @@ void SAL_CALL rtl_bootstrap_get_iniName_from_handle(rtlBootstrapHandle handle, r @param handle [in] The handle got by rtl_bootstrap_args_open() @param macro [inout] The macro to be expanded */ -void SAL_CALL rtl_bootstrap_expandMacros_from_handle( +SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_expandMacros_from_handle( rtlBootstrapHandle handle, rtl_uString ** macro ) SAL_THROW_EXTERN_C(); /** Expands a macro using default bootstrap variables. @param macro [inout] The macro to be expanded */ -void SAL_CALL rtl_bootstrap_expandMacros( +SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_expandMacros( rtl_uString ** macro ) SAL_THROW_EXTERN_C(); @@ -223,7 +227,7 @@ void SAL_CALL rtl_bootstrap_expandMacros( @since UDK 3.2.9 */ -void SAL_CALL rtl_bootstrap_encode( +SAL_DLLPUBLIC void SAL_CALL rtl_bootstrap_encode( rtl_uString const * value, rtl_uString ** encoded ) SAL_THROW_EXTERN_C(); diff --git a/sal/inc/rtl/byteseq.h b/sal/inc/rtl/byteseq.h index d19db147d677..ee321c24e7b7 100644 --- a/sal/inc/rtl/byteseq.h +++ b/sal/inc/rtl/byteseq.h @@ -41,7 +41,7 @@ extern "C" @param ppSequence sequence */ -void SAL_CALL rtl_byte_sequence_reference2One( +SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_reference2One( sal_Sequence ** ppSequence ) SAL_THROW_EXTERN_C(); @@ -50,7 +50,7 @@ void SAL_CALL rtl_byte_sequence_reference2One( @param ppSequence sequence @param nSize new size of sequence */ -void SAL_CALL rtl_byte_sequence_realloc( +SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_realloc( sal_Sequence ** ppSequence, sal_Int32 nSize ) SAL_THROW_EXTERN_C(); @@ -58,7 +58,7 @@ void SAL_CALL rtl_byte_sequence_realloc( @param pSequence sequence, that is to be acquired */ -void SAL_CALL rtl_byte_sequence_acquire( +SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_acquire( sal_Sequence *pSequence ) SAL_THROW_EXTERN_C(); @@ -66,7 +66,7 @@ void SAL_CALL rtl_byte_sequence_acquire( @param pSequence sequence, that is to be released; invalid after call */ -void SAL_CALL rtl_byte_sequence_release( +SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_release( sal_Sequence *pSequence ) SAL_THROW_EXTERN_C(); @@ -76,7 +76,7 @@ void SAL_CALL rtl_byte_sequence_release( after the call, *ppSequence contains the newly constructed sequence @param nLength length of new sequence */ -void SAL_CALL rtl_byte_sequence_construct( +SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_construct( sal_Sequence **ppSequence , sal_Int32 nLength ) SAL_THROW_EXTERN_C(); @@ -86,7 +86,7 @@ void SAL_CALL rtl_byte_sequence_construct( after the call, *ppSequence contains the newly constructed sequence @param nLength length of new sequence */ -void SAL_CALL rtl_byte_sequence_constructNoDefault( +SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_constructNoDefault( sal_Sequence **ppSequence , sal_Int32 nLength ) SAL_THROW_EXTERN_C(); @@ -97,7 +97,7 @@ void SAL_CALL rtl_byte_sequence_constructNoDefault( @param pData initial data @param nLength length of new sequence */ -void SAL_CALL rtl_byte_sequence_constructFromArray( +SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_constructFromArray( sal_Sequence **ppSequence, const sal_Int8 *pData , sal_Int32 nLength ) SAL_THROW_EXTERN_C(); @@ -107,7 +107,7 @@ void SAL_CALL rtl_byte_sequence_constructFromArray( after the call, *ppSequence references pSequence @param pSequence the source sequence */ -void SAL_CALL rtl_byte_sequence_assign( +SAL_DLLPUBLIC void SAL_CALL rtl_byte_sequence_assign( sal_Sequence **ppSequence , sal_Sequence *pSequence ) SAL_THROW_EXTERN_C(); @@ -115,7 +115,7 @@ void SAL_CALL rtl_byte_sequence_assign( @return true, if the data within the sequences are identical; false otherwise */ -sal_Bool SAL_CALL rtl_byte_sequence_equals( +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_byte_sequence_equals( sal_Sequence *pSequence1 , sal_Sequence *pSequence2 ) SAL_THROW_EXTERN_C(); @@ -125,7 +125,7 @@ sal_Bool SAL_CALL rtl_byte_sequence_equals( has been called before, the pointer may be casted to a non const pointer and the sequence may be modified */ -const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray( +SAL_DLLPUBLIC const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray( sal_Sequence *pSequence ) SAL_THROW_EXTERN_C(); @@ -134,7 +134,7 @@ const sal_Int8 *SAL_CALL rtl_byte_sequence_getConstArray( @param pSequence sequence handle @return length of the sequence */ -sal_Int32 SAL_CALL rtl_byte_sequence_getLength( +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_byte_sequence_getLength( sal_Sequence *pSequence ) SAL_THROW_EXTERN_C(); diff --git a/sal/inc/rtl/cipher.h b/sal/inc/rtl/cipher.h index 7656eb6b4d2a..8a67d56cbbec 100644 --- a/sal/inc/rtl/cipher.h +++ b/sal/inc/rtl/cipher.h @@ -123,7 +123,7 @@ typedef enum __rtl_CipherError rtlCipherError; @param Mode [in] cipher mode. @return Cipher handle, or 0 upon failure. */ -rtlCipher SAL_CALL rtl_cipher_create ( +SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_create ( rtlCipherAlgorithm Algorithm, rtlCipherMode Mode ) SAL_THROW_EXTERN_C(); @@ -140,7 +140,7 @@ rtlCipher SAL_CALL rtl_cipher_create ( @param nArgLen [in] initialization vector length in bytes. @return rtl_Cipher_E_None upon success. */ -rtlCipherError SAL_CALL rtl_cipher_init ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_init ( rtlCipher Cipher, rtlCipherDirection Direction, const sal_uInt8 *pKeyData, sal_Size nKeyLen, @@ -159,7 +159,7 @@ rtlCipherError SAL_CALL rtl_cipher_init ( @param nBufLen [in] ciphertext length in bytes. @return rtl_Cipher_E_None upon success. */ -rtlCipherError SAL_CALL rtl_cipher_encode ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encode ( rtlCipher Cipher, const void *pData, sal_Size nDatLen, sal_uInt8 *pBuffer, sal_Size nBufLen @@ -177,7 +177,7 @@ rtlCipherError SAL_CALL rtl_cipher_encode ( @param nBufLen [in] plaintext length in bytes. @return rtl_Cipher_E_None upon success. */ -rtlCipherError SAL_CALL rtl_cipher_decode ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decode ( rtlCipher Cipher, const void *pData, sal_Size nDatLen, sal_uInt8 *pBuffer, sal_Size nBufLen @@ -188,7 +188,7 @@ rtlCipherError SAL_CALL rtl_cipher_decode ( @param Cipher [in] cipher handle to be destroyed. @return None. Cipher handle destroyed and invalid. */ -void SAL_CALL rtl_cipher_destroy ( +SAL_DLLPUBLIC void SAL_CALL rtl_cipher_destroy ( rtlCipher Cipher ) SAL_THROW_EXTERN_C(); @@ -204,7 +204,7 @@ void SAL_CALL rtl_cipher_destroy ( @see rtl_cipher_create() */ -rtlCipher SAL_CALL rtl_cipher_createBF ( +SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_createBF ( rtlCipherMode Mode ) SAL_THROW_EXTERN_C(); @@ -212,7 +212,7 @@ rtlCipher SAL_CALL rtl_cipher_createBF ( /** Inititialize a Blowfish cipher for the given direction. @see rtl_cipher_init() */ -rtlCipherError SAL_CALL rtl_cipher_initBF ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_initBF ( rtlCipher Cipher, rtlCipherDirection Direction, const sal_uInt8 *pKeyData, sal_Size nKeyLen, @@ -223,7 +223,7 @@ rtlCipherError SAL_CALL rtl_cipher_initBF ( /** Encode a buffer under the Blowfish cipher algorithm. @see rtl_cipher_encode() */ -rtlCipherError SAL_CALL rtl_cipher_encodeBF ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encodeBF ( rtlCipher Cipher, const void *pData, sal_Size nDatLen, sal_uInt8 *pBuffer, sal_Size nBufLen @@ -233,7 +233,7 @@ rtlCipherError SAL_CALL rtl_cipher_encodeBF ( /** Decode a buffer under the Blowfish cipher algorithm. @see rtl_cipher_decode() */ -rtlCipherError SAL_CALL rtl_cipher_decodeBF ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decodeBF ( rtlCipher Cipher, const void *pData, sal_Size nDatLen, sal_uInt8 *pBuffer, sal_Size nBufLen @@ -243,7 +243,7 @@ rtlCipherError SAL_CALL rtl_cipher_decodeBF ( /** Destroy a Blowfish cipher handle. @see rtl_cipher_destroy() */ -void SAL_CALL rtl_cipher_destroyBF ( +SAL_DLLPUBLIC void SAL_CALL rtl_cipher_destroyBF ( rtlCipher Cipher ) SAL_THROW_EXTERN_C(); @@ -262,7 +262,7 @@ void SAL_CALL rtl_cipher_destroyBF ( @param Mode [in] cipher mode. Must be rtl_Cipher_ModeStream. @return Cipher handle, or 0 upon failure. */ -rtlCipher SAL_CALL rtl_cipher_createARCFOUR ( +SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_createARCFOUR ( rtlCipherMode Mode ) SAL_THROW_EXTERN_C(); @@ -270,7 +270,7 @@ rtlCipher SAL_CALL rtl_cipher_createARCFOUR ( /** Inititialize a RC4 cipher for the given direction. @see rtl_cipher_init() */ -rtlCipherError SAL_CALL rtl_cipher_initARCFOUR ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_initARCFOUR ( rtlCipher Cipher, rtlCipherDirection Direction, const sal_uInt8 *pKeyData, sal_Size nKeyLen, @@ -281,7 +281,7 @@ rtlCipherError SAL_CALL rtl_cipher_initARCFOUR ( /** Encode a buffer under the RC4 cipher algorithm. @see rtl_cipher_encode() */ -rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR ( rtlCipher Cipher, const void *pData, sal_Size nDatLen, sal_uInt8 *pBuffer, sal_Size nBufLen @@ -291,7 +291,7 @@ rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR ( /** Decode a buffer under the RC4 cipher algorithm. @see rtl_cipher_decode() */ -rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR ( +SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR ( rtlCipher Cipher, const void *pData, sal_Size nDatLen, sal_uInt8 *pBuffer, sal_Size nBufLen @@ -301,7 +301,7 @@ rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR ( /** Destroy a RC4 cipher handle. @see rtl_cipher_destroy() */ -void SAL_CALL rtl_cipher_destroyARCFOUR ( +SAL_DLLPUBLIC void SAL_CALL rtl_cipher_destroyARCFOUR ( rtlCipher Cipher ) SAL_THROW_EXTERN_C(); diff --git a/sal/inc/rtl/crc.h b/sal/inc/rtl/crc.h index 8313795b85cf..be3b03b93683 100644 --- a/sal/inc/rtl/crc.h +++ b/sal/inc/rtl/crc.h @@ -48,7 +48,7 @@ extern "C" { @param DatLen [in] data buffer length. @return new CRC32 value. */ -sal_uInt32 SAL_CALL rtl_crc32 ( +SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_crc32 ( sal_uInt32 Crc, const void *Data, sal_uInt32 DatLen ) SAL_THROW_EXTERN_C(); diff --git a/sal/inc/rtl/digest.h b/sal/inc/rtl/digest.h index 5a87e024b298..c8640dfdfc7f 100644 --- a/sal/inc/rtl/digest.h +++ b/sal/inc/rtl/digest.h @@ -91,7 +91,7 @@ typedef enum __rtl_DigestError rtlDigestError; @param Algorithm [in] digest algorithm. @return Digest handle, or 0 upon failure. */ -rtlDigest SAL_CALL rtl_digest_create ( +SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_create ( rtlDigestAlgorithm Algorithm ) SAL_THROW_EXTERN_C(); @@ -101,7 +101,7 @@ rtlDigest SAL_CALL rtl_digest_create ( @param Digest [in] digest handle to be destroyed. @return None. */ -void SAL_CALL rtl_digest_destroy ( +SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroy ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -110,7 +110,7 @@ void SAL_CALL rtl_digest_destroy ( @param Digest [in] digest handle. @return digest algorithm, or rtl_Digest_AlgorithmInvalid upon failure. */ -rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm ( +SAL_DLLPUBLIC rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -119,7 +119,7 @@ rtlDigestAlgorithm SAL_CALL rtl_digest_queryAlgorithm ( @param Digest [in] digest handle. @return digest length, or 0 upon failure. */ -sal_uInt32 SAL_CALL rtl_digest_queryLength ( +SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_digest_queryLength ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -131,7 +131,7 @@ sal_uInt32 SAL_CALL rtl_digest_queryLength ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_init ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_init ( rtlDigest Digest, const sal_uInt8 *pData, sal_uInt32 nDatLen ) SAL_THROW_EXTERN_C(); @@ -144,7 +144,7 @@ rtlDigestError SAL_CALL rtl_digest_init ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_update ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_update ( rtlDigest Digest, const void *pData, sal_uInt32 nDatLen ) SAL_THROW_EXTERN_C(); @@ -162,7 +162,7 @@ rtlDigestError SAL_CALL rtl_digest_update ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_get ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_get ( rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -182,13 +182,13 @@ rtlDigestError SAL_CALL rtl_digest_get ( @see rtl_digest_create() */ -rtlDigest SAL_CALL rtl_digest_createMD2 (void) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createMD2 (void) SAL_THROW_EXTERN_C(); /** Destroy a MD2 digest handle. @see rtl_digest_destroy() */ -void SAL_CALL rtl_digest_destroyMD2 ( +SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyMD2 ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -196,7 +196,7 @@ void SAL_CALL rtl_digest_destroyMD2 ( /** Update a MD2 digest with given data. @see rtl_digest_update() */ -rtlDigestError SAL_CALL rtl_digest_updateMD2 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateMD2 ( rtlDigest Digest, const void *pData, sal_uInt32 nDatLen ) SAL_THROW_EXTERN_C(); @@ -205,7 +205,7 @@ rtlDigestError SAL_CALL rtl_digest_updateMD2 ( /** Finalize a MD2 digest and retrieve the digest value. @see rtl_digest_get() */ -rtlDigestError SAL_CALL rtl_digest_getMD2 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getMD2 ( rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -225,7 +225,7 @@ rtlDigestError SAL_CALL rtl_digest_getMD2 ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_MD2 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_MD2 ( const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -245,13 +245,13 @@ rtlDigestError SAL_CALL rtl_digest_MD2 ( @see rtl_digest_create() */ -rtlDigest SAL_CALL rtl_digest_createMD5 (void) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createMD5 (void) SAL_THROW_EXTERN_C(); /** Destroy a MD5 digest handle. @see rtl_digest_destroy() */ -void SAL_CALL rtl_digest_destroyMD5 ( +SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyMD5 ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -259,7 +259,7 @@ void SAL_CALL rtl_digest_destroyMD5 ( /** Update a MD5 digest with given data. @see rtl_digest_update() */ -rtlDigestError SAL_CALL rtl_digest_updateMD5 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateMD5 ( rtlDigest Digest, const void *pData, sal_uInt32 nDatLen ) SAL_THROW_EXTERN_C(); @@ -268,7 +268,7 @@ rtlDigestError SAL_CALL rtl_digest_updateMD5 ( /** Finalize a MD5 digest and retrieve the digest value. @see rtl_digest_get() */ -rtlDigestError SAL_CALL rtl_digest_getMD5 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getMD5 ( rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -281,7 +281,7 @@ rtlDigestError SAL_CALL rtl_digest_getMD5 ( @postcond Digest initialized to accept another update sequence. @see rtl_digest_get() */ -rtlDigestError SAL_CALL rtl_digest_rawMD5 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_rawMD5 ( rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -301,7 +301,7 @@ rtlDigestError SAL_CALL rtl_digest_rawMD5 ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_MD5 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_MD5 ( const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -321,13 +321,13 @@ rtlDigestError SAL_CALL rtl_digest_MD5 ( @see rtl_digest_create() */ -rtlDigest SAL_CALL rtl_digest_createSHA (void) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createSHA (void) SAL_THROW_EXTERN_C(); /** Destroy a SHA digest handle. @see rtl_digest_destroy() */ -void SAL_CALL rtl_digest_destroySHA ( +SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroySHA ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -335,7 +335,7 @@ void SAL_CALL rtl_digest_destroySHA ( /** Update a SHA digest with given data. @see rtl_digest_update() */ -rtlDigestError SAL_CALL rtl_digest_updateSHA ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateSHA ( rtlDigest Digest, const void *pData, sal_uInt32 nDatLen ) SAL_THROW_EXTERN_C(); @@ -344,7 +344,7 @@ rtlDigestError SAL_CALL rtl_digest_updateSHA ( /** Finalize a SHA digest and retrieve the digest value. @see rtl_digest_get() */ -rtlDigestError SAL_CALL rtl_digest_getSHA ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getSHA ( rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -364,7 +364,7 @@ rtlDigestError SAL_CALL rtl_digest_getSHA ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_SHA ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_SHA ( const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -384,13 +384,13 @@ rtlDigestError SAL_CALL rtl_digest_SHA ( @see rtl_digest_create() */ -rtlDigest SAL_CALL rtl_digest_createSHA1 (void) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createSHA1 (void) SAL_THROW_EXTERN_C(); /** Destroy a SHA1 digest handle. @see rtl_digest_destroy() */ -void SAL_CALL rtl_digest_destroySHA1 ( +SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroySHA1 ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -398,7 +398,7 @@ void SAL_CALL rtl_digest_destroySHA1 ( /** Update a SHA1 digest with given data. @see rtl_digest_update() */ -rtlDigestError SAL_CALL rtl_digest_updateSHA1 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateSHA1 ( rtlDigest Digest, const void *pData, sal_uInt32 nDatLen ) SAL_THROW_EXTERN_C(); @@ -407,7 +407,7 @@ rtlDigestError SAL_CALL rtl_digest_updateSHA1 ( /** Finalize a SHA1 digest and retrieve the digest value. @see rtl_digest_get() */ -rtlDigestError SAL_CALL rtl_digest_getSHA1 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getSHA1 ( rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -427,7 +427,7 @@ rtlDigestError SAL_CALL rtl_digest_getSHA1 ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_SHA1 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_SHA1 ( const void *pData, sal_uInt32 nDatLen, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -447,13 +447,13 @@ rtlDigestError SAL_CALL rtl_digest_SHA1 ( @see rtl_digest_create() */ -rtlDigest SAL_CALL rtl_digest_createHMAC_MD5 (void) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createHMAC_MD5 (void) SAL_THROW_EXTERN_C(); /** Destroy a HMAC_MD5 digest handle. @see rtl_digest_destroy() */ -void SAL_CALL rtl_digest_destroyHMAC_MD5 ( +SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyHMAC_MD5 ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -467,7 +467,7 @@ void SAL_CALL rtl_digest_destroyHMAC_MD5 ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5 ( rtlDigest Digest, const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen ) SAL_THROW_EXTERN_C(); @@ -476,7 +476,7 @@ rtlDigestError SAL_CALL rtl_digest_initHMAC_MD5 ( /** Update a HMAC_MD5 digest with given data. @see rtl_digest_update() */ -rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5 ( rtlDigest Digest, const void *pData, sal_uInt32 nDatLen ) SAL_THROW_EXTERN_C(); @@ -485,7 +485,7 @@ rtlDigestError SAL_CALL rtl_digest_updateHMAC_MD5 ( /** Finalize a HMAC_MD5 digest and retrieve the digest value. @see rtl_digest_get() */ -rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5 ( rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -508,7 +508,7 @@ rtlDigestError SAL_CALL rtl_digest_getHMAC_MD5 ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_HMAC_MD5 ( +SAL_DLLPUBLIC 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 @@ -531,13 +531,13 @@ rtlDigestError SAL_CALL rtl_digest_HMAC_MD5 ( @see rtl_digest_create() */ -rtlDigest SAL_CALL rtl_digest_createHMAC_SHA1 (void) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC rtlDigest SAL_CALL rtl_digest_createHMAC_SHA1 (void) SAL_THROW_EXTERN_C(); /** Destroy a HMAC_SHA1 digest handle. @see rtl_digest_destroy() */ -void SAL_CALL rtl_digest_destroyHMAC_SHA1 ( +SAL_DLLPUBLIC void SAL_CALL rtl_digest_destroyHMAC_SHA1 ( rtlDigest Digest ) SAL_THROW_EXTERN_C(); @@ -551,7 +551,7 @@ void SAL_CALL rtl_digest_destroyHMAC_SHA1 ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1 ( rtlDigest Digest, const sal_uInt8 *pKeyData, sal_uInt32 nKeyLen ) SAL_THROW_EXTERN_C(); @@ -560,7 +560,7 @@ rtlDigestError SAL_CALL rtl_digest_initHMAC_SHA1 ( /** Update a HMAC_SHA1 digest with given data. @see rtl_digest_update() */ -rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1 ( rtlDigest Digest, const void *pData, sal_uInt32 nDatLen ) SAL_THROW_EXTERN_C(); @@ -569,7 +569,7 @@ rtlDigestError SAL_CALL rtl_digest_updateHMAC_SHA1 ( /** Finalize a HMAC_SHA1 digest and retrieve the digest value. @see rtl_digest_get() */ -rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1 ( +SAL_DLLPUBLIC rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1 ( rtlDigest Digest, sal_uInt8 *pBuffer, sal_uInt32 nBufLen ) SAL_THROW_EXTERN_C(); @@ -592,7 +592,7 @@ rtlDigestError SAL_CALL rtl_digest_getHMAC_SHA1 ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_HMAC_SHA1 ( +SAL_DLLPUBLIC 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 @@ -619,7 +619,7 @@ rtlDigestError SAL_CALL rtl_digest_HMAC_SHA1 ( @return rtl_Digest_E_None upon success. */ -rtlDigestError SAL_CALL rtl_digest_PBKDF2 ( +SAL_DLLPUBLIC 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, diff --git a/sal/inc/rtl/locale.h b/sal/inc/rtl/locale.h index f671800656c0..e29ed0e3c5e8 100644 --- a/sal/inc/rtl/locale.h +++ b/sal/inc/rtl/locale.h @@ -75,7 +75,8 @@ typedef struct _rtl_Locale @param country uppercase two-letter ISO-3166 code. May be null. @param variant vendor and browser specific code. May be null. */ -rtl_Locale * SAL_CALL rtl_locale_register( const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant ); +SAL_DLLPUBLIC rtl_Locale * SAL_CALL rtl_locale_register( + const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant ); /** Common method of getting the current default Locale. @@ -88,7 +89,7 @@ rtl_Locale * SAL_CALL rtl_locale_register( const sal_Unicode * language, const s for different fields, e.g. in a spreadsheet.
Note that the initial setting will match the host system. */ -rtl_Locale * SAL_CALL rtl_locale_getDefault(); +SAL_DLLPUBLIC rtl_Locale * SAL_CALL rtl_locale_getDefault(); /** Sets the default. @@ -98,37 +99,38 @@ rtl_Locale * SAL_CALL rtl_locale_getDefault(); @param country uppercase two-letter ISO-3166 code. @param variant vendor and browser specific code. See class description. */ -void SAL_CALL rtl_locale_setDefault( const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant ); +SAL_DLLPUBLIC void SAL_CALL rtl_locale_setDefault( + const sal_Unicode * language, const sal_Unicode * country, const sal_Unicode * variant ); /** Getter for programmatic name of field, a lowercased two-letter ISO 639-1 or three-letter ISO 639-3 code. @see #getDisplayLanguage */ -rtl_uString * SAL_CALL rtl_locale_getLanguage( rtl_Locale * This ); +SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getLanguage( rtl_Locale * This ); /** Getter for programmatic name of field, an uppercased two-letter ISO-3166 code. @see #getDisplayCountry */ -rtl_uString * SAL_CALL rtl_locale_getCountry( rtl_Locale * This ); +SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getCountry( rtl_Locale * This ); /** Getter for programmatic name of field. @see #getDisplayVariant */ -rtl_uString * SAL_CALL rtl_locale_getVariant( rtl_Locale * This ); +SAL_DLLPUBLIC rtl_uString * SAL_CALL rtl_locale_getVariant( rtl_Locale * This ); /** Returns the hash code of the locale This. */ -sal_Int32 SAL_CALL rtl_locale_hashCode( rtl_Locale * This ); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_locale_hashCode( rtl_Locale * This ); /** Returns true if the locals are equal, otherwis false. */ -sal_Int32 SAL_CALL rtl_locale_equals( rtl_Locale * This, rtl_Locale * obj ); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_locale_equals( rtl_Locale * This, rtl_Locale * obj ); #ifdef __cplusplus } diff --git a/sal/inc/rtl/logfile.h b/sal/inc/rtl/logfile.h index fab9ed4d0264..ce89345a23b5 100644 --- a/sal/inc/rtl/logfile.h +++ b/sal/inc/rtl/logfile.h @@ -49,7 +49,7 @@ extern "C" { @param ... An arbitrary number of arguments for fprintf, matching the format string. */ -void SAL_CALL rtl_logfile_trace( const sal_Char* pszFormat, ... ); +SAL_DLLPUBLIC void SAL_CALL rtl_logfile_trace( const sal_Char* pszFormat, ... ); /** Like rtl_logfile_trace, but prefixing every log entry with the current time and thread ID. @@ -63,7 +63,7 @@ void SAL_CALL rtl_logfile_trace( const sal_Char* pszFormat, ... ); @since UDK 3.2.0 */ -void SAL_CALL rtl_logfile_longTrace(char const * format, ...); +SAL_DLLPUBLIC void SAL_CALL rtl_logfile_longTrace(char const * format, ...); /** Return if a log file is written. @@ -71,7 +71,7 @@ void SAL_CALL rtl_logfile_longTrace(char const * format, ...); @since UDK 3.2.11 */ -sal_Bool SAL_CALL rtl_logfile_hasLogFile( void ); +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_logfile_hasLogFile( void ); #ifdef __cplusplus } diff --git a/sal/inc/rtl/math.h b/sal/inc/rtl/math.h index 26a1029095b1..c2c087d3474a 100644 --- a/sal/inc/rtl/math.h +++ b/sal/inc/rtl/math.h @@ -203,7 +203,7 @@ enum rtl_math_DecimalPlaces @param bEraseTrailingDecZeros Trailing zeros in decimal places are erased. */ -void SAL_CALL rtl_math_doubleToString(rtl_String ** pResult, +SAL_DLLPUBLIC void SAL_CALL rtl_math_doubleToString(rtl_String ** pResult, sal_Int32 * pResultCapacity, sal_Int32 nResultOffset, double fValue, enum rtl_math_StringFormat eFormat, @@ -278,7 +278,7 @@ void SAL_CALL rtl_math_doubleToString(rtl_String ** pResult, @param bEraseTrailingDecZeros Trailing zeros in decimal places are erased. */ -void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult, +SAL_DLLPUBLIC void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult, sal_Int32 * pResultCapacity, sal_Int32 nResultOffset, double fValue, enum rtl_math_StringFormat eFormat, @@ -324,7 +324,7 @@ void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult, found, *pParsedEnd == pBegin on return, even if there was leading whitespace. */ -double SAL_CALL rtl_math_stringToDouble( +SAL_DLLPUBLIC double SAL_CALL rtl_math_stringToDouble( sal_Char const * pBegin, sal_Char const * pEnd, sal_Char cDecSeparator, sal_Char cGroupSeparator, enum rtl_math_ConversionStatus * pStatus, sal_Char const ** pParsedEnd) SAL_THROW_EXTERN_C(); @@ -364,7 +364,7 @@ double SAL_CALL rtl_math_stringToDouble( found, *pParsedEnd == pBegin on return, even if there was leading whitespace. */ -double SAL_CALL rtl_math_uStringToDouble( +SAL_DLLPUBLIC double SAL_CALL rtl_math_uStringToDouble( sal_Unicode const * pBegin, sal_Unicode const * pEnd, sal_Unicode cDecSeparator, sal_Unicode cGroupSeparator, enum rtl_math_ConversionStatus * pStatus, sal_Unicode const ** pParsedEnd) @@ -383,7 +383,7 @@ double SAL_CALL rtl_math_uStringToDouble( @param eMode Specifies the rounding mode. */ -double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, +SAL_DLLPUBLIC double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, enum rtl_math_RoundingMode eMode) SAL_THROW_EXTERN_C(); @@ -399,14 +399,14 @@ double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, @return fVal * pow(10.0, nExp) */ -double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C(); /** Rounds value to 15 significant decimal digits. @param fValue The value to be rounded. */ -double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C(); /** Returns more accurate e^x-1 for x near 0 than calculating directly. @@ -415,7 +415,7 @@ double SAL_CALL rtl_math_approxValue(double fValue) SAL_THROW_EXTERN_C(); @param fValue The value x in the term e^x-1. */ -double SAL_CALL rtl_math_expm1(double fValue) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_expm1(double fValue) SAL_THROW_EXTERN_C(); /** Returns more accurate log(1+x) for x near 0 than calculating directly. @@ -424,7 +424,7 @@ double SAL_CALL rtl_math_expm1(double fValue) SAL_THROW_EXTERN_C(); @param fValue The value x in the term log(1+x). */ -double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C(); /** Returns more accurate atanh(x) for x near 0 than calculating 0.5*log((1+x)/(1-x)). @@ -434,7 +434,7 @@ double SAL_CALL rtl_math_log1p(double fValue) SAL_THROW_EXTERN_C(); @param fValue The value x in the term atanh(x). */ -double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C(); /** Returns values of the Errorfunction erf. @@ -443,7 +443,7 @@ double SAL_CALL rtl_math_atanh(double fValue) SAL_THROW_EXTERN_C(); @param fValue The value x in the term erf(x). */ -double SAL_CALL rtl_math_erf(double fValue) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_erf(double fValue) SAL_THROW_EXTERN_C(); /** Returns values of the complement Errorfunction erfc. @@ -452,7 +452,7 @@ double SAL_CALL rtl_math_erf(double fValue) SAL_THROW_EXTERN_C(); @param fValue The value x in the term erfc(x). */ -double SAL_CALL rtl_math_erfc(double fValue) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_erfc(double fValue) SAL_THROW_EXTERN_C(); /** Returns values of the inverse hyperbolic sine. @@ -461,7 +461,7 @@ double SAL_CALL rtl_math_erfc(double fValue) SAL_THROW_EXTERN_C(); @param fValue The value x in the term asinh(x). */ -double SAL_CALL rtl_math_asinh(double fValue) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_asinh(double fValue) SAL_THROW_EXTERN_C(); /** Returns values of the inverse hyperbolic cosine. @@ -470,7 +470,7 @@ double SAL_CALL rtl_math_asinh(double fValue) SAL_THROW_EXTERN_C(); @param fValue The value x in the term acosh(x). */ -double SAL_CALL rtl_math_acosh(double fValue) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_math_acosh(double fValue) SAL_THROW_EXTERN_C(); #if defined __cplusplus } diff --git a/sal/inc/rtl/memory.h b/sal/inc/rtl/memory.h index 5ead5914c1e5..516040f1880d 100644 --- a/sal/inc/rtl/memory.h +++ b/sal/inc/rtl/memory.h @@ -36,12 +36,12 @@ extern "C" { #endif -void SAL_CALL rtl_zeroMemory(void *Ptr, sal_Size Bytes); -void SAL_CALL rtl_fillMemory(void *Ptr, sal_Size Bytes, sal_uInt8 Fill); -void SAL_CALL rtl_copyMemory(void *Dst, const void *Src, sal_Size Bytes); -void SAL_CALL rtl_moveMemory(void *Dst, const void *Src, sal_Size Bytes); -sal_Int32 SAL_CALL rtl_compareMemory(const void *MemA, const void *MemB, sal_Size Bytes); -void* SAL_CALL rtl_findInMemory(const void *MemA, sal_uInt8 ch, sal_Size Bytes); +SAL_DLLPUBLIC void SAL_CALL rtl_zeroMemory(void *Ptr, sal_Size Bytes); +SAL_DLLPUBLIC void SAL_CALL rtl_fillMemory(void *Ptr, sal_Size Bytes, sal_uInt8 Fill); +SAL_DLLPUBLIC void SAL_CALL rtl_copyMemory(void *Dst, const void *Src, sal_Size Bytes); +SAL_DLLPUBLIC void SAL_CALL rtl_moveMemory(void *Dst, const void *Src, sal_Size Bytes); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareMemory(const void *MemA, const void *MemB, sal_Size Bytes); +SAL_DLLPUBLIC void* SAL_CALL rtl_findInMemory(const void *MemA, sal_uInt8 ch, sal_Size Bytes); #ifdef __cplusplus } diff --git a/sal/inc/rtl/process.h b/sal/inc/rtl/process.h index ae27cda80fe5..ae18e66b969a 100644 --- a/sal/inc/rtl/process.h +++ b/sal/inc/rtl/process.h @@ -48,7 +48,7 @@ extern "C" { @param pTargetUUID 16 byte of memory @see rtl_createUiid() */ -void SAL_CALL rtl_getGlobalProcessId( sal_uInt8 *pTargetUUID ); +SAL_DLLPUBLIC void SAL_CALL rtl_getGlobalProcessId( sal_uInt8 *pTargetUUID ); /** Get the nArg-th command-line argument passed to the main-function of this process. @@ -62,7 +62,7 @@ void SAL_CALL rtl_getGlobalProcessId( sal_uInt8 *pTargetUUID ); @see osl_getCommandArg() @see rtl_getCommandArgCount() */ -oslProcessError SAL_CALL rtl_getAppCommandArg(sal_uInt32 nArg, rtl_uString **strCommandArg); +SAL_DLLPUBLIC oslProcessError SAL_CALL rtl_getAppCommandArg(sal_uInt32 nArg, rtl_uString **strCommandArg); /** Returns the number of command line arguments at process start. @@ -74,7 +74,7 @@ oslProcessError SAL_CALL rtl_getAppCommandArg(sal_uInt32 nArg, rtl_uString **str @see osl_getCommandArgCount() @see rtl_getCommandArg() */ -sal_uInt32 SAL_CALL rtl_getAppCommandArgCount(); +SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_getAppCommandArgCount(); #ifdef __cplusplus } diff --git a/sal/inc/rtl/random.h b/sal/inc/rtl/random.h index 5e034161374b..45d8c0d48820 100644 --- a/sal/inc/rtl/random.h +++ b/sal/inc/rtl/random.h @@ -64,14 +64,14 @@ typedef enum __rtl_RandomError rtlRandomError; /** Create a Random Pool. @return initialized Random Pool, or NULL upon failure. */ -rtlRandomPool SAL_CALL rtl_random_createPool (void) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC rtlRandomPool SAL_CALL rtl_random_createPool (void) SAL_THROW_EXTERN_C(); /** Destroy a Random Pool. @param Pool [in] a Random Pool. @return none. Pool is invalid. */ -void SAL_CALL rtl_random_destroyPool ( +SAL_DLLPUBLIC void SAL_CALL rtl_random_destroyPool ( rtlRandomPool Pool ) SAL_THROW_EXTERN_C(); @@ -82,7 +82,7 @@ void SAL_CALL rtl_random_destroyPool ( @param nBufLen [in] the number of bytes to read from the buffer. @return rtl_Random_E_None upon success. */ -rtlRandomError SAL_CALL rtl_random_addBytes ( +SAL_DLLPUBLIC rtlRandomError SAL_CALL rtl_random_addBytes ( rtlRandomPool Pool, const void *Buffer, sal_Size Bytes @@ -95,7 +95,7 @@ rtlRandomError SAL_CALL rtl_random_addBytes ( @param nBufLen [in] the number of bytes to write to the buffer. @return rtl_Random_E_None upon success. */ -rtlRandomError SAL_CALL rtl_random_getBytes ( +SAL_DLLPUBLIC rtlRandomError SAL_CALL rtl_random_getBytes ( rtlRandomPool Pool, void *Buffer, sal_Size Bytes diff --git a/sal/inc/rtl/strbuf.h b/sal/inc/rtl/strbuf.h index c1d929c1298b..deebd89d7d16 100644 --- a/sal/inc/rtl/strbuf.h +++ b/sal/inc/rtl/strbuf.h @@ -47,7 +47,8 @@ extern "C" { @param value the initial value of the string. @param count the length of value. */ -void SAL_CALL rtl_stringbuffer_newFromStr_WithLength( rtl_String ** newStr, +SAL_DLLPUBLIC void SAL_CALL rtl_stringbuffer_newFromStr_WithLength( + rtl_String ** newStr, const sal_Char * value, sal_Int32 count); @@ -66,7 +67,8 @@ void SAL_CALL rtl_stringbuffer_newFromStr_WithLength( rtl_String ** newStr, @param oldStr the initial value of the string. @return the new capacity of the string buffer */ -sal_Int32 SAL_CALL rtl_stringbuffer_newFromStringBuffer( rtl_String ** newStr, +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_stringbuffer_newFromStringBuffer( + rtl_String ** newStr, sal_Int32 capacity, rtl_String * olsStr ); @@ -87,7 +89,8 @@ sal_Int32 SAL_CALL rtl_stringbuffer_newFromStringBuffer( rtl_String ** newStr, @param capacity in: old capicity, out: new capacity. @param minimumCapacity the minimum desired capacity. */ -void SAL_CALL rtl_stringbuffer_ensureCapacity( /*inout*/rtl_String ** This, +SAL_DLLPUBLIC void SAL_CALL rtl_stringbuffer_ensureCapacity( + /*inout*/rtl_String ** This, /*inout*/sal_Int32* capacity, sal_Int32 minimumCapacity); @@ -106,7 +109,8 @@ void SAL_CALL rtl_stringbuffer_ensureCapacity( /*inout*/rtl_String ** This, @param ch a character array. @param len the number of characters to append. */ -void SAL_CALL rtl_stringbuffer_insert( /*inout*/rtl_String ** This, +SAL_DLLPUBLIC void SAL_CALL rtl_stringbuffer_insert( + /*inout*/rtl_String ** This, /*inout*/sal_Int32 * capacity, sal_Int32 offset, const sal_Char * str, @@ -123,7 +127,8 @@ void SAL_CALL rtl_stringbuffer_insert( /*inout*/rtl_String ** This, @param start The beginning index, inclusive @param len The substring length */ -void SAL_CALL rtl_stringbuffer_remove( /*inout*/rtl_String ** This, +SAL_DLLPUBLIC void SAL_CALL rtl_stringbuffer_remove( + /*inout*/rtl_String ** This, sal_Int32 start, sal_Int32 len ); diff --git a/sal/inc/rtl/string.h b/sal/inc/rtl/string.h index 65ecae5010f2..7b2354711f5a 100644 --- a/sal/inc/rtl/string.h +++ b/sal/inc/rtl/string.h @@ -51,7 +51,8 @@ extern "C" { the length of the sequence of characters represented by this string, excluding the terminating NUL character. */ -sal_Int32 SAL_CALL rtl_str_getLength( const sal_Char * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_getLength( + const sal_Char * str ) SAL_THROW_EXTERN_C(); /** Compare two strings. @@ -71,7 +72,8 @@ sal_Int32 SAL_CALL rtl_str_getLength( const sal_Char * str ) SAL_THROW_EXTERN_C( less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_str_compare( const sal_Char * first, const sal_Char * second ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_compare( + const sal_Char * first, const sal_Char * second ) SAL_THROW_EXTERN_C(); /** Compare two strings. @@ -98,7 +100,8 @@ sal_Int32 SAL_CALL rtl_str_compare( const sal_Char * first, const sal_Char * sec less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_str_compare_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_compare_WithLength( + const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); /** Compare two strings with a maximum count of characters. @@ -129,7 +132,8 @@ sal_Int32 SAL_CALL rtl_str_compare_WithLength( const sal_Char * first, sal_Int32 is less than the second substring, and a value greater than 0 if the first substring is greater than the second substring. */ -sal_Int32 SAL_CALL rtl_str_shortenedCompare_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_shortenedCompare_WithLength( + const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); /** Compare two strings from back to front. @@ -156,7 +160,8 @@ sal_Int32 SAL_CALL rtl_str_shortenedCompare_WithLength( const sal_Char * first, compares less than the second string, and a value greater than 0 if the first string compares greater than the second string. */ -sal_Int32 SAL_CALL rtl_str_reverseCompare_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_reverseCompare_WithLength( + const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); /** Compare two strings, ignoring the case of ASCII characters. @@ -177,7 +182,8 @@ sal_Int32 SAL_CALL rtl_str_reverseCompare_WithLength( const sal_Char * first, sa less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase( const sal_Char * first, const sal_Char * second ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase( + const sal_Char * first, const sal_Char * second ) SAL_THROW_EXTERN_C(); /** Compare two strings, ignoring the case of ASCII characters. @@ -206,7 +212,8 @@ sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase( const sal_Char * first, const less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase_WithLength( + const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); /** Compare two strings with a maximum count of characters, ignoring the case of ASCII characters. @@ -240,7 +247,8 @@ sal_Int32 SAL_CALL rtl_str_compareIgnoreAsciiCase_WithLength( const sal_Char * f is less than the second substring, and a value greater than 0 if the first substring is greater than the second substring. */ -sal_Int32 SAL_CALL rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( + const sal_Char * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); /** Return a hash code for a string. @@ -254,7 +262,8 @@ sal_Int32 SAL_CALL rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( const sal @return a hash code for the given string. */ -sal_Int32 SAL_CALL rtl_str_hashCode( const sal_Char * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_hashCode( + const sal_Char * str ) SAL_THROW_EXTERN_C(); /** Return a hash code for a string. @@ -271,7 +280,8 @@ sal_Int32 SAL_CALL rtl_str_hashCode( const sal_Char * str ) SAL_THROW_EXTERN_C() @return a hash code for the given string. */ -sal_Int32 SAL_CALL rtl_str_hashCode_WithLength( const sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_hashCode_WithLength( + const sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of a character within a string. @@ -287,7 +297,8 @@ sal_Int32 SAL_CALL rtl_str_hashCode_WithLength( const sal_Char * str, sal_Int32 the index (starting at 0) of the first occurrence of the character in the string, or -1 if the character does not occur. */ -sal_Int32 SAL_CALL rtl_str_indexOfChar( const sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_indexOfChar( + const sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of a character within a string. @@ -305,7 +316,8 @@ sal_Int32 SAL_CALL rtl_str_indexOfChar( const sal_Char * str, sal_Char ch ) SAL_ the index (starting at 0) of the first occurrence of the character in the string, or -1 if the character does not occur. */ -sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength( const sal_Char * str, sal_Int32 len, sal_Char ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength( + const sal_Char * str, sal_Int32 len, sal_Char ch ) SAL_THROW_EXTERN_C(); /** Search for the last occurrence of a character within a string. @@ -322,7 +334,8 @@ sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength( const sal_Char * str, sal_Int string, or -1 if the character does not occur. The returned value is always smaller than the string length. */ -sal_Int32 SAL_CALL rtl_str_lastIndexOfChar( const sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_lastIndexOfChar( + const sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C(); /** Search for the last occurrence of a character within a string. @@ -341,7 +354,8 @@ sal_Int32 SAL_CALL rtl_str_lastIndexOfChar( const sal_Char * str, sal_Char ch ) string, or -1 if the character does not occur. The returned value is always smaller than the string length. */ -sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength( const sal_Char * str, sal_Int32 len, sal_Char ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength( + const sal_Char * str, sal_Int32 len, sal_Char ch ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of a substring within a string. @@ -358,7 +372,8 @@ sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength( const sal_Char * str, sal the index (starting at 0) of the first character of the first occurrence of the substring within the string, or -1 if the substring does not occur. */ -sal_Int32 SAL_CALL rtl_str_indexOfStr( const sal_Char * str, const sal_Char * subStr ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_indexOfStr( + const sal_Char * str, const sal_Char * subStr ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of a substring within a string. @@ -382,7 +397,8 @@ sal_Int32 SAL_CALL rtl_str_indexOfStr( const sal_Char * str, const sal_Char * su the index (starting at 0) of the first character of the first occurrence of the substring within the string, or -1 if the substring does not occur. */ -sal_Int32 SAL_CALL rtl_str_indexOfStr_WithLength( const sal_Char * str, sal_Int32 len, const sal_Char * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_indexOfStr_WithLength( + const sal_Char * str, sal_Int32 len, const sal_Char * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C(); /** Search for the last occurrence of a substring within a string. @@ -399,7 +415,8 @@ sal_Int32 SAL_CALL rtl_str_indexOfStr_WithLength( const sal_Char * str, sal_Int3 the index (starting at 0) of the first character of the last occurrence of the substring within the string, or -1 if the substring does not occur. */ -sal_Int32 SAL_CALL rtl_str_lastIndexOfStr( const sal_Char * str, const sal_Char * subStr ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_lastIndexOfStr( + const sal_Char * str, const sal_Char * subStr ) SAL_THROW_EXTERN_C(); /** Search for the last occurrence of a substring within a string. @@ -423,7 +440,8 @@ sal_Int32 SAL_CALL rtl_str_lastIndexOfStr( const sal_Char * str, const sal_Char the index (starting at 0) of the first character of the first occurrence of the substring within the string, or -1 if the substring does not occur. */ -sal_Int32 SAL_CALL rtl_str_lastIndexOfStr_WithLength( const sal_Char * str, sal_Int32 len, const sal_Char * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_lastIndexOfStr_WithLength( + const sal_Char * str, sal_Int32 len, const sal_Char * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C(); /** Replace all occurrences of a single character within a string. @@ -439,7 +457,8 @@ sal_Int32 SAL_CALL rtl_str_lastIndexOfStr_WithLength( const sal_Char * str, sal_ @param newChar the new character. */ -void SAL_CALL rtl_str_replaceChar( sal_Char * str, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_str_replaceChar( + sal_Char * str, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C(); /** Replace all occurrences of a single character within a string. @@ -458,7 +477,8 @@ void SAL_CALL rtl_str_replaceChar( sal_Char * str, sal_Char oldChar, sal_Char ne @param newChar the new character. */ -void SAL_CALL rtl_str_replaceChar_WithLength( sal_Char * str, sal_Int32 len, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_str_replaceChar_WithLength( + sal_Char * str, sal_Int32 len, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C(); /** Convert all ASCII uppercase letters to lowercase within a string. @@ -469,7 +489,8 @@ void SAL_CALL rtl_str_replaceChar_WithLength( sal_Char * str, sal_Int32 len, sal @param str a null-terminated string. */ -void SAL_CALL rtl_str_toAsciiLowerCase( sal_Char * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_str_toAsciiLowerCase( + sal_Char * str ) SAL_THROW_EXTERN_C(); /** Convert all ASCII uppercase letters to lowercase within a string. @@ -483,7 +504,8 @@ void SAL_CALL rtl_str_toAsciiLowerCase( sal_Char * str ) SAL_THROW_EXTERN_C(); @param len the length of the string. */ -void SAL_CALL rtl_str_toAsciiLowerCase_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_str_toAsciiLowerCase_WithLength( + sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Convert all ASCII lowercase letters to uppercase within a string. @@ -494,7 +516,8 @@ void SAL_CALL rtl_str_toAsciiLowerCase_WithLength( sal_Char * str, sal_Int32 len @param str a null-terminated string. */ -void SAL_CALL rtl_str_toAsciiUpperCase( sal_Char * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_str_toAsciiUpperCase( + sal_Char * str ) SAL_THROW_EXTERN_C(); /** Convert all ASCII lowercase letters to uppercase within a string. @@ -508,7 +531,8 @@ void SAL_CALL rtl_str_toAsciiUpperCase( sal_Char * str ) SAL_THROW_EXTERN_C(); @param len the length of the string. */ -void SAL_CALL rtl_str_toAsciiUpperCase_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_str_toAsciiUpperCase_WithLength( + sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Remove white space from both ends of a string. @@ -522,7 +546,8 @@ void SAL_CALL rtl_str_toAsciiUpperCase_WithLength( sal_Char * str, sal_Int32 len @return the new length of the string. */ -sal_Int32 SAL_CALL rtl_str_trim( sal_Char * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_trim( + sal_Char * str ) SAL_THROW_EXTERN_C(); /** Remove white space from both ends of the string. @@ -540,7 +565,8 @@ sal_Int32 SAL_CALL rtl_str_trim( sal_Char * str ) SAL_THROW_EXTERN_C(); @return the new length of the string. */ -sal_Int32 SAL_CALL rtl_str_trim_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_trim_WithLength( + sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Create the string representation of a boolean. @@ -560,7 +586,8 @@ sal_Int32 SAL_CALL rtl_str_trim_WithLength( sal_Char * str, sal_Int32 len ) SAL_ @return the length of the string. */ -sal_Int32 SAL_CALL rtl_str_valueOfBoolean( sal_Char * str, sal_Bool b ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfBoolean( + sal_Char * str, sal_Bool b ) SAL_THROW_EXTERN_C(); #define RTL_STR_MAX_VALUEOFBOOLEAN 6 /** Create the string representation of a character. @@ -576,7 +603,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfBoolean( sal_Char * str, sal_Bool b ) SAL_THRO @return the length of the string. */ -sal_Int32 SAL_CALL rtl_str_valueOfChar( sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfChar( + sal_Char * str, sal_Char ch ) SAL_THROW_EXTERN_C(); #define RTL_STR_MAX_VALUEOFCHAR 2 /** Create the string representation of an integer. @@ -598,7 +626,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfChar( sal_Char * str, sal_Char ch ) SAL_THROW_ @return the length of the string. */ -sal_Int32 SAL_CALL rtl_str_valueOfInt32( sal_Char * str, sal_Int32 i, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfInt32( + sal_Char * str, sal_Int32 i, sal_Int16 radix ) SAL_THROW_EXTERN_C(); #define RTL_STR_MIN_RADIX 2 #define RTL_STR_MAX_RADIX 36 #define RTL_STR_MAX_VALUEOFINT32 33 @@ -622,7 +651,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfInt32( sal_Char * str, sal_Int32 i, sal_Int16 @return the length of the string. */ -sal_Int32 SAL_CALL rtl_str_valueOfInt64( sal_Char * str, sal_Int64 l, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfInt64( + sal_Char * str, sal_Int64 l, sal_Int16 radix ) SAL_THROW_EXTERN_C(); #define RTL_STR_MAX_VALUEOFINT64 65 /** Create the string representation of a float. @@ -640,7 +670,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfInt64( sal_Char * str, sal_Int64 l, sal_Int16 @return the length of the string. */ -sal_Int32 SAL_CALL rtl_str_valueOfFloat( sal_Char * str, float f ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfFloat( + sal_Char * str, float f ) SAL_THROW_EXTERN_C(); #define RTL_STR_MAX_VALUEOFFLOAT 15 /** Create the string representation of a double. @@ -658,7 +689,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfFloat( sal_Char * str, float f ) SAL_THROW_EXT @return the length of the string. */ -sal_Int32 SAL_CALL rtl_str_valueOfDouble( sal_Char * str, double d ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_valueOfDouble( + sal_Char * str, double d ) SAL_THROW_EXTERN_C(); #define RTL_STR_MAX_VALUEOFDOUBLE 25 /** Interpret a string as a boolean. @@ -672,7 +704,8 @@ sal_Int32 SAL_CALL rtl_str_valueOfDouble( sal_Char * str, double d ) SAL_THROW_E @return true if the string is "1" or "true" in any ASCII case, false otherwise. */ -sal_Bool SAL_CALL rtl_str_toBoolean( const sal_Char * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_str_toBoolean( + const sal_Char * str ) SAL_THROW_EXTERN_C(); /** Interpret a string as an integer. @@ -690,7 +723,8 @@ sal_Bool SAL_CALL rtl_str_toBoolean( const sal_Char * str ) SAL_THROW_EXTERN_C() the integer value represented by the string, or 0 if the string does not represent an integer. */ -sal_Int32 SAL_CALL rtl_str_toInt32( const sal_Char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_toInt32( + const sal_Char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); /** Interpret a string as a long integer. @@ -708,7 +742,8 @@ sal_Int32 SAL_CALL rtl_str_toInt32( const sal_Char * str, sal_Int16 radix ) SAL_ the long integer value represented by the string, or 0 if the string does not represent a long integer. */ -sal_Int64 SAL_CALL rtl_str_toInt64( const sal_Char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int64 SAL_CALL rtl_str_toInt64( + const sal_Char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); /** Interpret a string as a float. @@ -722,7 +757,8 @@ sal_Int64 SAL_CALL rtl_str_toInt64( const sal_Char * str, sal_Int16 radix ) SAL_ the float value represented by the string, or 0.0 if the string does not represent a float. */ -float SAL_CALL rtl_str_toFloat( const sal_Char * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC float SAL_CALL rtl_str_toFloat( + const sal_Char * str ) SAL_THROW_EXTERN_C(); /** Interpret a string as a double. @@ -736,7 +772,8 @@ float SAL_CALL rtl_str_toFloat( const sal_Char * str ) SAL_THROW_EXTERN_C(); the float value represented by the string, or 0.0 if the string does not represent a double. */ -double SAL_CALL rtl_str_toDouble( const sal_Char * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_str_toDouble( + const sal_Char * str ) SAL_THROW_EXTERN_C(); /* ======================================================================= */ @@ -766,7 +803,7 @@ typedef struct _rtl_String @param str a string. */ -void SAL_CALL rtl_string_acquire( rtl_String * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_acquire( rtl_String * str ) SAL_THROW_EXTERN_C(); /** Decrement the reference count of a string. @@ -775,7 +812,7 @@ void SAL_CALL rtl_string_acquire( rtl_String * str ) SAL_THROW_EXTERN_C(); @param str a string. */ -void SAL_CALL rtl_string_release( rtl_String * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_release( rtl_String * str ) SAL_THROW_EXTERN_C(); /** Allocate a new string containing no characters. @@ -783,7 +820,7 @@ void SAL_CALL rtl_string_release( rtl_String * str ) SAL_THROW_EXTERN_C(); pointer to the new string. The pointed-to data must be null or a valid string. */ -void SAL_CALL rtl_string_new( rtl_String ** newStr ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_new( rtl_String ** newStr ) SAL_THROW_EXTERN_C(); /** Allocate a new string containing space for a given number of characters. @@ -798,7 +835,7 @@ void SAL_CALL rtl_string_new( rtl_String ** newStr ) SAL_THROW_EXTERN_C(); @param len the number of characters. */ -void SAL_CALL rtl_string_new_WithLength( rtl_String ** newStr, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_new_WithLength( rtl_String ** newStr, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Allocate a new string that contains a copy of another string. @@ -813,7 +850,7 @@ void SAL_CALL rtl_string_new_WithLength( rtl_String ** newStr, sal_Int32 len ) S @param value a valid string. */ -void SAL_CALL rtl_string_newFromString( rtl_String ** newStr, const rtl_String * value ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newFromString( rtl_String ** newStr, const rtl_String * value ) SAL_THROW_EXTERN_C(); /** Allocate a new string that contains a copy of a character array. @@ -828,7 +865,7 @@ void SAL_CALL rtl_string_newFromString( rtl_String ** newStr, const rtl_String * @param value a null-terminated character array. */ -void SAL_CALL rtl_string_newFromStr( rtl_String ** newStr, const sal_Char * value ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newFromStr( rtl_String ** newStr, const sal_Char * value ) SAL_THROW_EXTERN_C(); /** Allocate a new string that contains a copy of a character array. @@ -847,7 +884,7 @@ void SAL_CALL rtl_string_newFromStr( rtl_String ** newStr, const sal_Char * valu @param len the length of the character array. */ -void SAL_CALL rtl_string_newFromStr_WithLength( rtl_String ** newStr, const sal_Char * value, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newFromStr_WithLength( rtl_String ** newStr, const sal_Char * value, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Assign a new value to a string. @@ -861,7 +898,7 @@ void SAL_CALL rtl_string_newFromStr_WithLength( rtl_String ** newStr, const sal_ @param rightValue a valid string. */ -void SAL_CALL rtl_string_assign( rtl_String ** str, rtl_String * rightValue ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_assign( rtl_String ** str, rtl_String * rightValue ) SAL_THROW_EXTERN_C(); /** Return the length of a string. @@ -873,7 +910,7 @@ void SAL_CALL rtl_string_assign( rtl_String ** str, rtl_String * rightValue ) SA @return the length of the string. */ -sal_Int32 SAL_CALL rtl_string_getLength( const rtl_String * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_string_getLength( const rtl_String * str ) SAL_THROW_EXTERN_C(); /** Return a pointer to the underlying character array of a string. @@ -883,7 +920,7 @@ sal_Int32 SAL_CALL rtl_string_getLength( const rtl_String * str ) SAL_THROW_EXTE @return a pointer to the null-terminated character array. */ -sal_Char * SAL_CALL rtl_string_getStr( rtl_String * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Char * SAL_CALL rtl_string_getStr( rtl_String * str ) SAL_THROW_EXTERN_C(); /** Create a new string that is the concatenation of two other strings. @@ -902,7 +939,7 @@ sal_Char * SAL_CALL rtl_string_getStr( rtl_String * str ) SAL_THROW_EXTERN_C(); @param right a valid string. */ -void SAL_CALL rtl_string_newConcat( rtl_String ** newStr, rtl_String * left, rtl_String * right ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newConcat( rtl_String ** newStr, rtl_String * left, rtl_String * right ) SAL_THROW_EXTERN_C(); /** Create a new string by replacing a substring of another string. @@ -933,7 +970,8 @@ void SAL_CALL rtl_string_newConcat( rtl_String ** newStr, rtl_String * left, rtl @param subStr either null or a valid string to be inserted. */ -void SAL_CALL rtl_string_newReplaceStrAt( rtl_String ** newStr, rtl_String * str, sal_Int32 idx, sal_Int32 count, rtl_String * subStr ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newReplaceStrAt( + rtl_String ** newStr, rtl_String * str, sal_Int32 idx, sal_Int32 count, rtl_String * subStr ) SAL_THROW_EXTERN_C(); /** Create a new string by replacing all occurrences of a single character within another string. @@ -959,7 +997,8 @@ void SAL_CALL rtl_string_newReplaceStrAt( rtl_String ** newStr, rtl_String * str @param newChar the new character. */ -void SAL_CALL rtl_string_newReplace( rtl_String ** newStr, rtl_String * str, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newReplace( + rtl_String ** newStr, rtl_String * str, sal_Char oldChar, sal_Char newChar ) SAL_THROW_EXTERN_C(); /** Create a new string by converting all ASCII uppercase letters to lowercase within another string. @@ -980,7 +1019,8 @@ void SAL_CALL rtl_string_newReplace( rtl_String ** newStr, rtl_String * str, sal @param str a valid string. */ -void SAL_CALL rtl_string_newToAsciiLowerCase( rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newToAsciiLowerCase( + rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C(); /** Create a new string by converting all ASCII lowercase letters to uppercase within another string. @@ -1001,7 +1041,8 @@ void SAL_CALL rtl_string_newToAsciiLowerCase( rtl_String ** newStr, rtl_String * @param str a valid string. */ -void SAL_CALL rtl_string_newToAsciiUpperCase( rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newToAsciiUpperCase( + rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C(); /** Create a new string by removing white space from both ends of another string. @@ -1022,7 +1063,8 @@ void SAL_CALL rtl_string_newToAsciiUpperCase( rtl_String ** newStr, rtl_String * @param str a valid string. */ -void SAL_CALL rtl_string_newTrim( rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string_newTrim( + rtl_String ** newStr, rtl_String * str ) SAL_THROW_EXTERN_C(); /** Create a new string by extracting a single token from another string. @@ -1068,7 +1110,8 @@ void SAL_CALL rtl_string_newTrim( rtl_String ** newStr, rtl_String * str ) SAL_T @return the index of the next token, or -1 if no more tokens follow. */ -sal_Int32 SAL_CALL rtl_string_getToken( rtl_String ** newStr , rtl_String * str, sal_Int32 token, sal_Char cTok, sal_Int32 idx ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_string_getToken( + rtl_String ** newStr , rtl_String * str, sal_Int32 token, sal_Char cTok, sal_Int32 idx ) SAL_THROW_EXTERN_C(); /* ======================================================================= */ @@ -1146,7 +1189,8 @@ sal_Int32 SAL_CALL rtl_string_getToken( rtl_String ** newStr , rtl_String * str, for more details. */ -void SAL_CALL rtl_uString2String( rtl_String ** newStr, const sal_Unicode * str, sal_Int32 len, rtl_TextEncoding encoding, sal_uInt32 convertFlags ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString2String( + rtl_String ** newStr, const sal_Unicode * str, sal_Int32 len, rtl_TextEncoding encoding, sal_uInt32 convertFlags ) SAL_THROW_EXTERN_C(); /** Converts a Unicode string to a byte string, signalling failure. @@ -1178,7 +1222,8 @@ void SAL_CALL rtl_uString2String( rtl_String ** newStr, const sal_Unicode * str, @return True if the conversion succeeded, false otherwise. */ -sal_Bool SAL_CALL rtl_convertUStringToString(rtl_String ** pTarget, +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_convertUStringToString( + rtl_String ** pTarget, sal_Unicode const * pSource, sal_Int32 nLength, rtl_TextEncoding nEncoding, diff --git a/sal/inc/rtl/tencinfo.h b/sal/inc/rtl/tencinfo.h index cc70d30423ed..304147f336db 100644 --- a/sal/inc/rtl/tencinfo.h +++ b/sal/inc/rtl/tencinfo.h @@ -152,7 +152,7 @@ typedef struct _rtl_TextEncodingInfo True if the given encoding uses single octets as basic units of information, false otherwise. */ -sal_Bool SAL_CALL rtl_isOctetTextEncoding(rtl_TextEncoding nEncoding); +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_isOctetTextEncoding(rtl_TextEncoding nEncoding); /** Return information about a text encoding. @@ -167,7 +167,8 @@ sal_Bool SAL_CALL rtl_isOctetTextEncoding(rtl_TextEncoding nEncoding); True if information about the given encoding is available, false otherwise. */ -sal_Bool SAL_CALL rtl_getTextEncodingInfo( rtl_TextEncoding eTextEncoding, rtl_TextEncodingInfo* pEncInfo ); +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_getTextEncodingInfo( + rtl_TextEncoding eTextEncoding, rtl_TextEncodingInfo* pEncInfo ); /** Map from a numeric Windows charset to a text encoding. @@ -178,7 +179,8 @@ sal_Bool SAL_CALL rtl_getTextEncodingInfo( rtl_TextEncoding eTextEncoding, rtl_T The corresponding rtl_TextEncoding value, or RTL_TEXTENCODING_DONTKNOW if no mapping is applicable. */ -rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromWindowsCharset( sal_uInt8 nWinCharset ); +SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromWindowsCharset( + sal_uInt8 nWinCharset ); /** Map from a MIME charset to a text encoding. @@ -189,7 +191,8 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromWindowsCharset( sal_uInt8 nWinC The corresponding rtl_TextEncoding value, or RTL_TEXTENCODING_DONTKNOW if no mapping is applicable. */ -rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromMimeCharset( const sal_Char* pMimeCharset ); +SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromMimeCharset( + const sal_Char* pMimeCharset ); /** Map from a Unix charset to a text encoding. @@ -200,7 +203,8 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromMimeCharset( const sal_Char* pM The corresponding rtl_TextEncoding value, or RTL_TEXTENCODING_DONTKNOW if no mapping is applicable. */ -rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const sal_Char* pUnixCharset ); +SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( + const sal_Char* pUnixCharset ); /** Map from a text encoding to the best matching numeric Windows charset. @@ -210,7 +214,8 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const sal_Char* pU @return The best matching numeric Windows charset, or 1 if none matches. */ -sal_uInt8 SAL_CALL rtl_getBestWindowsCharsetFromTextEncoding( rtl_TextEncoding eTextEncoding ); +SAL_DLLPUBLIC sal_uInt8 SAL_CALL rtl_getBestWindowsCharsetFromTextEncoding( + rtl_TextEncoding eTextEncoding ); /** Map from a text encoding to a corresponding MIME charset name, if available (see ). @@ -222,8 +227,8 @@ sal_uInt8 SAL_CALL rtl_getBestWindowsCharsetFromTextEncoding( rtl_TextEnco The (preferred) MIME charset name corresponding to the given encoding, or NULL if none is available. */ -char const * SAL_CALL rtl_getMimeCharsetFromTextEncoding(rtl_TextEncoding - nEncoding); +SAL_DLLPUBLIC char const * SAL_CALL rtl_getMimeCharsetFromTextEncoding( + rtl_TextEncoding nEncoding ); /** Map from a text encoding to the best matching MIME charset. @@ -233,7 +238,8 @@ char const * SAL_CALL rtl_getMimeCharsetFromTextEncoding(rtl_TextEncoding @return The best matching MIME charset string, or null if none matches. */ -const sal_Char* SAL_CALL rtl_getBestMimeCharsetFromTextEncoding( rtl_TextEncoding eTextEncoding ); +SAL_DLLPUBLIC const sal_Char* SAL_CALL rtl_getBestMimeCharsetFromTextEncoding( + rtl_TextEncoding eTextEncoding ); /** Map from a text encoding to the best matching Unix charset. @@ -243,7 +249,8 @@ const sal_Char* SAL_CALL rtl_getBestMimeCharsetFromTextEncoding( rtl_TextEncodin @return The best matching Unix charset string, or null if none matches. */ -const sal_Char* SAL_CALL rtl_getBestUnixCharsetFromTextEncoding( rtl_TextEncoding eTextEncoding ); +SAL_DLLPUBLIC const sal_Char* SAL_CALL rtl_getBestUnixCharsetFromTextEncoding( + rtl_TextEncoding eTextEncoding ); /** Map from a Windows code page to a text encoding. @@ -255,7 +262,7 @@ const sal_Char* SAL_CALL rtl_getBestUnixCharsetFromTextEncoding( rtl_TextEncodin encoding, see rtl_isOctetTextEncoding), or RTL_TEXTENCODING_DONTKNOW if no mapping is applicable. */ -rtl_TextEncoding SAL_CALL +SAL_DLLPUBLIC rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromWindowsCodePage(sal_uInt32 nCodePage); /** Map from a text encoding to a Windows code page. @@ -267,7 +274,7 @@ rtl_getTextEncodingFromWindowsCodePage(sal_uInt32 nCodePage); The corresponding Windows code page number, or 0 if no mapping is applicable. */ -sal_uInt32 SAL_CALL +SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_getWindowsCodePageFromTextEncoding(rtl_TextEncoding nEncoding); #ifdef __cplusplus diff --git a/sal/inc/rtl/textcvt.h b/sal/inc/rtl/textcvt.h index 8968c06f17b5..9ca08db12eea 100644 --- a/sal/inc/rtl/textcvt.h +++ b/sal/inc/rtl/textcvt.h @@ -51,23 +51,23 @@ typedef void* rtl_TextToUnicodeContext; /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -rtl_TextToUnicodeConverter SAL_CALL rtl_createTextToUnicodeConverter( rtl_TextEncoding eTextEncoding ); +SAL_DLLPUBLIC rtl_TextToUnicodeConverter SAL_CALL rtl_createTextToUnicodeConverter( rtl_TextEncoding eTextEncoding ); /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -void SAL_CALL rtl_destroyTextToUnicodeConverter( rtl_TextToUnicodeConverter hConverter ); +SAL_DLLPUBLIC void SAL_CALL rtl_destroyTextToUnicodeConverter( rtl_TextToUnicodeConverter hConverter ); /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -rtl_TextToUnicodeContext SAL_CALL rtl_createTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter ); +SAL_DLLPUBLIC rtl_TextToUnicodeContext SAL_CALL rtl_createTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter ); /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -void SAL_CALL rtl_destroyTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext ); +SAL_DLLPUBLIC void SAL_CALL rtl_destroyTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext ); /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -void SAL_CALL rtl_resetTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext ); +SAL_DLLPUBLIC void SAL_CALL rtl_resetTextToUnicodeContext( rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext ); #define RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_ERROR ((sal_uInt32)0x0001) #define RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_IGNORE ((sal_uInt32)0x0002) @@ -97,7 +97,8 @@ void SAL_CALL rtl_resetTextToUnicodeContext( rtl_TextToUni /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -sal_Size SAL_CALL rtl_convertTextToUnicode( rtl_TextToUnicodeConverter hConverter, +SAL_DLLPUBLIC sal_Size SAL_CALL rtl_convertTextToUnicode( + rtl_TextToUnicodeConverter hConverter, rtl_TextToUnicodeContext hContext, const sal_Char* pSrcBuf, sal_Size nSrcBytes, sal_Unicode* pDestBuf, sal_Size nDestChars, @@ -114,23 +115,23 @@ typedef void* rtl_UnicodeToTextContext; /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -rtl_UnicodeToTextConverter SAL_CALL rtl_createUnicodeToTextConverter( rtl_TextEncoding eTextEncoding ); +SAL_DLLPUBLIC rtl_UnicodeToTextConverter SAL_CALL rtl_createUnicodeToTextConverter( rtl_TextEncoding eTextEncoding ); /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -void SAL_CALL rtl_destroyUnicodeToTextConverter( rtl_UnicodeToTextConverter hConverter ); +SAL_DLLPUBLIC void SAL_CALL rtl_destroyUnicodeToTextConverter( rtl_UnicodeToTextConverter hConverter ); /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -rtl_UnicodeToTextContext SAL_CALL rtl_createUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter ); +SAL_DLLPUBLIC rtl_UnicodeToTextContext SAL_CALL rtl_createUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter ); /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -void SAL_CALL rtl_destroyUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext ); +SAL_DLLPUBLIC void SAL_CALL rtl_destroyUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext ); /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -void SAL_CALL rtl_resetUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext ); +SAL_DLLPUBLIC void SAL_CALL rtl_resetUnicodeToTextContext( rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext ); #define RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR ((sal_uInt32)0x0001) #define RTL_UNICODETOTEXT_FLAGS_UNDEFINED_IGNORE ((sal_uInt32)0x0002) @@ -167,7 +168,8 @@ void SAL_CALL rtl_resetUnicodeToTextContext( rtl_UnicodeTo /** see http://udk.openoffice.org/cpp/man/spec/textconversion.html */ -sal_Size SAL_CALL rtl_convertUnicodeToText( rtl_UnicodeToTextConverter hConverter, +SAL_DLLPUBLIC sal_Size SAL_CALL rtl_convertUnicodeToText( + rtl_UnicodeToTextConverter hConverter, rtl_UnicodeToTextContext hContext, const sal_Unicode* pSrcBuf, sal_Size nSrcChars, sal_Char* pDestBuf, sal_Size nDestBytes, diff --git a/sal/inc/rtl/unload.h b/sal/inc/rtl/unload.h index d67afb1ee961..5e70690342b5 100644 --- a/sal/inc/rtl/unload.h +++ b/sal/inc/rtl/unload.h @@ -164,7 +164,7 @@ have to bother about registering. @param module a module handle as is obtained by osl_loadModule @return sal_True - the module could be registered for unloading, sal_False otherwise */ -sal_Bool SAL_CALL rtl_registerModuleForUnloading( oslModule module); +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_registerModuleForUnloading( oslModule module); /** The function revokes the registration of a module. By calling the function for @@ -177,7 +177,7 @@ there is no need to call this function unless one means to prevent the unloading @param module a module handle as is obtained by osl_loadModule */ -void SAL_CALL rtl_unregisterModuleForUnloading( oslModule module); +SAL_DLLPUBLIC void SAL_CALL rtl_unregisterModuleForUnloading( oslModule module); /** This function sets off the unloading mechanism. At first it notifies the unloading listeners in order to give them a chance to do cleanup and get @@ -203,7 +203,7 @@ registered listeners and release the references to factories on notification. @param libUnused span of time that a module must be unused to be unloaded. the argument is optional. */ -void SAL_CALL rtl_unloadUnusedModules( TimeValue* libUnused); +SAL_DLLPUBLIC void SAL_CALL rtl_unloadUnusedModules( TimeValue* libUnused); /** rtl_addUnloadingListener takes an argument of this type. @@ -225,7 +225,7 @@ as it has been registered. @param this - a value to distinguish different listener instances @return identifier which is used in rtl_removeUnloadingListener */ -sal_Int32 SAL_CALL rtl_addUnloadingListener( rtl_unloadingListenerFunc callback, void* _this); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_addUnloadingListener( rtl_unloadingListenerFunc callback, void* _this); /** Listeners (the callback functions) must be unregistered before the listener code @@ -235,7 +235,7 @@ registered when component_canUnload returns sal_True. @param cookie is an identifier as returned by rtl_addUnloadingListener function. */ -void SAL_CALL rtl_removeUnloadingListener( sal_Int32 cookie ); +SAL_DLLPUBLIC void SAL_CALL rtl_removeUnloadingListener( sal_Int32 cookie ); /** @@ -295,17 +295,17 @@ typedef struct _rtl_StandardModuleCount /** Default implementation for rtl_ModuleCount.acquire. Use this function along with rtl_StandardModuleCount. */ -void rtl_moduleCount_acquire(rtl_ModuleCount * that ); +SAL_DLLPUBLIC void rtl_moduleCount_acquire(rtl_ModuleCount * that ); /** Default implementation for rtl_ModuleCount.release. Use this function along with rtl_StandardModuleCount. */ -void rtl_moduleCount_release( rtl_ModuleCount * that ); +SAL_DLLPUBLIC void rtl_moduleCount_release( rtl_ModuleCount * that ); /** Default implementation for component_canUnload. Use this function along with rtl_StandardModuleCount. */ -sal_Bool rtl_moduleCount_canUnload( rtl_StandardModuleCount * that, TimeValue* libUnused); +SAL_DLLPUBLIC sal_Bool rtl_moduleCount_canUnload( rtl_StandardModuleCount * that, TimeValue* libUnused); #ifdef __cplusplus diff --git a/sal/inc/rtl/uri.h b/sal/inc/rtl/uri.h index 16c7ed592359..d0f5e0009971 100644 --- a/sal/inc/rtl/uri.h +++ b/sal/inc/rtl/uri.h @@ -220,7 +220,7 @@ rtl_UriDecodeMechanism; @return An array of 128 booleans, to be used in calls to rtl_uriEncode(). */ -sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass) +SAL_DLLPUBLIC sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass) SAL_THROW_EXTERN_C(); /** Encode a text as (part of) a URI. @@ -257,7 +257,8 @@ sal_Bool const * SAL_CALL rtl_getUriCharClass(rtl_UriCharClass eCharClass) converted to eCharset because it contains unmappable characters (which implies that pText is not empty), then an empty string is returned. */ -void SAL_CALL rtl_uriEncode(rtl_uString * pText, +SAL_DLLPUBLIC void SAL_CALL rtl_uriEncode( + rtl_uString * pText, sal_Bool const * pCharClass, rtl_UriEncodeMechanism eMechanism, rtl_TextEncoding eCharset, @@ -294,7 +295,8 @@ void SAL_CALL rtl_uriEncode(rtl_uString * pText, characters (which implies that pText is not empty), then an empty string is returned. */ -void SAL_CALL rtl_uriDecode(rtl_uString * pText, +SAL_DLLPUBLIC void SAL_CALL rtl_uriDecode( + rtl_uString * pText, rtl_UriDecodeMechanism eMechanism, rtl_TextEncoding eCharset, rtl_uString ** pResult) @@ -342,7 +344,8 @@ void SAL_CALL rtl_uriDecode(rtl_uString * pText, @return True if no exception is signalled, otherwise false. */ -sal_Bool SAL_CALL rtl_uriConvertRelToAbs(rtl_uString * pBaseUriRef, +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_uriConvertRelToAbs( + rtl_uString * pBaseUriRef, rtl_uString * pRelUriRef, rtl_uString ** pResult, rtl_uString ** pException) diff --git a/sal/inc/rtl/ustrbuf.h b/sal/inc/rtl/ustrbuf.h index 8ea5c316e80e..bc73f2a1cd18 100644 --- a/sal/inc/rtl/ustrbuf.h +++ b/sal/inc/rtl/ustrbuf.h @@ -47,7 +47,8 @@ extern "C" { @param value the initial value of the string. @param count the length of value. */ -void SAL_CALL rtl_uStringbuffer_newFromStr_WithLength( rtl_uString ** newStr, +SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_newFromStr_WithLength( + rtl_uString ** newStr, const sal_Unicode * value, sal_Int32 count ); @@ -66,7 +67,8 @@ void SAL_CALL rtl_uStringbuffer_newFromStr_WithLength( rtl_uString ** newStr, @param oldStr the initial value of the string. @return the new capacity of the string buffer */ -sal_Int32 SAL_CALL rtl_uStringbuffer_newFromStringBuffer( rtl_uString ** newStr, +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_uStringbuffer_newFromStringBuffer( + rtl_uString ** newStr, sal_Int32 capacity, rtl_uString * olsStr ); @@ -87,7 +89,8 @@ sal_Int32 SAL_CALL rtl_uStringbuffer_newFromStringBuffer( rtl_uString ** newStr, @param capacity in: old capicity, out: new capacity. @param minimumCapacity the minimum desired capacity. */ -void SAL_CALL rtl_uStringbuffer_ensureCapacity( /*inout*/rtl_uString ** This, +SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_ensureCapacity( + /*inout*/rtl_uString ** This, /*inout*/sal_Int32* capacity, sal_Int32 minimumCapacity); @@ -106,7 +109,8 @@ void SAL_CALL rtl_uStringbuffer_ensureCapacity( /*inout*/rtl_uString ** This, @param str a character array. @param len the number of characters to append. */ -void SAL_CALL rtl_uStringbuffer_insert( /*inout*/rtl_uString ** This, +SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insert( + /*inout*/rtl_uString ** This, /*inout*/sal_Int32 * capacity, sal_Int32 offset, const sal_Unicode * str, @@ -129,7 +133,7 @@ void SAL_CALL rtl_uStringbuffer_insert( /*inout*/rtl_uString ** This, 00x10FFFF, but excluding 0xD8000xDFFF) */ -void SAL_CALL rtl_uStringbuffer_insertUtf32( +SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insertUtf32( rtl_uString ** pThis, sal_Int32 * capacity, sal_Int32 offset, sal_uInt32 c) SAL_THROW_EXTERN_C(); @@ -153,7 +157,8 @@ void SAL_CALL rtl_uStringbuffer_insertUtf32( @param str a character array. @param len the number of characters to append. */ -void SAL_CALL rtl_uStringbuffer_insert_ascii( /*inout*/rtl_uString ** This, +SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_insert_ascii( + /*inout*/rtl_uString ** This, /*inout*/sal_Int32 * capacity, sal_Int32 offset, const sal_Char * str, @@ -170,7 +175,8 @@ void SAL_CALL rtl_uStringbuffer_insert_ascii( /*inout*/rtl_uString ** This, @param start The beginning index, inclusive @param len The substring length */ -void SAL_CALL rtl_uStringbuffer_remove( /*inout*/rtl_uString ** This, +SAL_DLLPUBLIC void SAL_CALL rtl_uStringbuffer_remove( + /*inout*/rtl_uString ** This, sal_Int32 start, sal_Int32 len ); diff --git a/sal/inc/rtl/ustring.h b/sal/inc/rtl/ustring.h index 062070dadffc..c77b343d1d23 100644 --- a/sal/inc/rtl/ustring.h +++ b/sal/inc/rtl/ustring.h @@ -52,7 +52,8 @@ extern "C" { the length of the sequence of characters represented by this string, excluding the terminating NUL character. */ -sal_Int32 SAL_CALL rtl_ustr_getLength( const sal_Unicode * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_getLength( + const sal_Unicode * str ) SAL_THROW_EXTERN_C(); /** Compare two strings. @@ -72,7 +73,8 @@ sal_Int32 SAL_CALL rtl_ustr_getLength( const sal_Unicode * str ) SAL_THROW_EXTER less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_compare( const sal_Unicode * first, const sal_Unicode * second ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_compare( + const sal_Unicode * first, const sal_Unicode * second ) SAL_THROW_EXTERN_C(); /** Compare two strings. @@ -99,7 +101,8 @@ sal_Int32 SAL_CALL rtl_ustr_compare( const sal_Unicode * first, const sal_Unicod less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_compare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_compare_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); /** Compare two strings with a maximum count of characters. @@ -130,7 +133,8 @@ sal_Int32 SAL_CALL rtl_ustr_compare_WithLength( const sal_Unicode * first, sal_I is less than the second substring, and a value greater than 0 if the first substring is greater than the second substring. */ -sal_Int32 SAL_CALL rtl_ustr_shortenedCompare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_shortenedCompare_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); /** Compare two strings from back to front. @@ -157,7 +161,8 @@ sal_Int32 SAL_CALL rtl_ustr_shortenedCompare_WithLength( const sal_Unicode * fir compares less than the second string, and a value greater than 0 if the first string compares greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_reverseCompare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_reverseCompare_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); /** Compare two strings from back to front for equality. @@ -180,7 +185,8 @@ sal_Int32 SAL_CALL rtl_ustr_reverseCompare_WithLength( const sal_Unicode * first true if both strings are equal, false if they are not equal. */ -sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength( const sal_Unicode * first, const sal_Char * second, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength( + const sal_Unicode * first, const sal_Char * second, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Compare two strings, ignoring the case of ASCII characters. @@ -201,7 +207,8 @@ sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength( const sal_Unicode * less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase( const sal_Unicode * first, const sal_Unicode * second ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase( + const sal_Unicode * first, const sal_Unicode * second ) SAL_THROW_EXTERN_C(); /** Compare two strings, ignoring the case of ASCII characters. @@ -230,7 +237,8 @@ sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase( const sal_Unicode * first, c less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); /** Compare two strings with a maximum count of characters, ignoring the case of ASCII characters. @@ -264,7 +272,8 @@ sal_Int32 SAL_CALL rtl_ustr_compareIgnoreAsciiCase_WithLength( const sal_Unicode is less than the second substring, and a value greater than 0 if the first substring is greater than the second substring. */ -sal_Int32 SAL_CALL rtl_ustr_shortenedCompareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_shortenedCompareIgnoreAsciiCase_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Unicode * second, sal_Int32 secondLen, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); /** Compare two strings. @@ -289,7 +298,8 @@ sal_Int32 SAL_CALL rtl_ustr_shortenedCompareIgnoreAsciiCase_WithLength( const sa is less than the second substring, and a value greater than 0 if the first substring is greater than the second substring. */ -sal_Int32 SAL_CALL rtl_ustr_ascii_compare( const sal_Unicode * first, const sal_Char * second ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compare( + const sal_Unicode * first, const sal_Char * second ) SAL_THROW_EXTERN_C(); /** Compare two strings. @@ -317,7 +327,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compare( const sal_Unicode * first, const sal_ is less than the second substring, and a value greater than 0 if the first substring is greater than the second substring. */ -sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C(); /** Compare two strings with a maximum count of characters. @@ -349,7 +360,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compare_WithLength( const sal_Unicode * first, is less than the second substring, and a value greater than 0 if the first substring is greater than the second substring. */ -sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompare_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); /** Compare two strings from back to front. @@ -380,7 +392,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompare_WithLength( const sal_Unicode compares less than the second string, and a value greater than 0 if the first string compares greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_asciil_reverseCompare_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_asciil_reverseCompare_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 secondLen ) SAL_THROW_EXTERN_C(); /** Compare two strings, ignoring the case of ASCII characters. @@ -406,7 +419,8 @@ sal_Int32 SAL_CALL rtl_ustr_asciil_reverseCompare_WithLength( const sal_Unicode less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase( const sal_Unicode * first, const sal_Char * second ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase( + const sal_Unicode * first, const sal_Char * second ) SAL_THROW_EXTERN_C(); /** Compare two strings, ignoring the case of ASCII characters. @@ -436,7 +450,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase( const sal_Unicode * fi less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C(); /** Compare two strings, ignoring the case of ASCII characters. @@ -469,7 +484,7 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( const sal_U less than the second string, and a value greater than 0 if the first string is greater than the second string. */ -sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths( +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths( sal_Unicode const * first, sal_Int32 firstLen, char const * second, sal_Int32 secondLen) SAL_THROW_EXTERN_C(); @@ -506,7 +521,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths( is less than the second substring, and a value greater than 0 if the first substring is greater than the second substring. */ -sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( + const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second, sal_Int32 shortenedLen ) SAL_THROW_EXTERN_C(); /** Return a hash code for a string. @@ -520,7 +536,8 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( co @return a hash code for the given string. */ -sal_Int32 SAL_CALL rtl_ustr_hashCode( const sal_Unicode * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_hashCode( + const sal_Unicode * str ) SAL_THROW_EXTERN_C(); /** Return a hash code for a string. @@ -537,7 +554,8 @@ sal_Int32 SAL_CALL rtl_ustr_hashCode( const sal_Unicode * str ) SAL_THROW_EXTERN @return a hash code for the given string. */ -sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength( const sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength( + const sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of a character within a string. @@ -553,7 +571,8 @@ sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength( const sal_Unicode * str, sal_In the index (starting at 0) of the first occurrence of the character in the string, or -1 if the character does not occur. */ -sal_Int32 SAL_CALL rtl_ustr_indexOfChar( const sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfChar( + const sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of a character within a string. @@ -571,7 +590,8 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfChar( const sal_Unicode * str, sal_Unicode ch the index (starting at 0) of the first occurrence of the character in the string, or -1 if the character does not occur. */ -sal_Int32 SAL_CALL rtl_ustr_indexOfChar_WithLength( const sal_Unicode * str, sal_Int32 len, sal_Unicode ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfChar_WithLength( + const sal_Unicode * str, sal_Int32 len, sal_Unicode ch ) SAL_THROW_EXTERN_C(); /** Search for the last occurrence of a character within a string. @@ -588,7 +608,8 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfChar_WithLength( const sal_Unicode * str, sal string, or -1 if the character does not occur. The returned value is always smaller than the string length. */ -sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar( const sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar( + const sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C(); /** Search for the last occurrence of a character within a string. @@ -607,7 +628,8 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar( const sal_Unicode * str, sal_Unicod string, or -1 if the character does not occur. The returned value is always smaller than the string length. */ -sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar_WithLength( const sal_Unicode * str, sal_Int32 len, sal_Unicode ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar_WithLength( + const sal_Unicode * str, sal_Int32 len, sal_Unicode ch ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of a substring within a string. @@ -624,7 +646,8 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar_WithLength( const sal_Unicode * str, the index (starting at 0) of the first character of the first occurrence of the substring within the string, or -1 if the substring does not occur. */ -sal_Int32 SAL_CALL rtl_ustr_indexOfStr( const sal_Unicode * str, const sal_Unicode * subStr ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfStr( + const sal_Unicode * str, const sal_Unicode * subStr ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of a substring within a string. @@ -648,7 +671,8 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfStr( const sal_Unicode * str, const sal_Unico the index (starting at 0) of the first character of the first occurrence of the substring within the string, or -1 if the substring does not occur. */ -sal_Int32 SAL_CALL rtl_ustr_indexOfStr_WithLength( const sal_Unicode * str, sal_Int32 len, const sal_Unicode * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfStr_WithLength( + const sal_Unicode * str, sal_Int32 len, const sal_Unicode * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C(); /** Search for the first occurrence of an ASCII substring within a string. @@ -674,7 +698,7 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfStr_WithLength( const sal_Unicode * str, sal_ @since UDK 3.2.7 */ -sal_Int32 SAL_CALL rtl_ustr_indexOfAscii_WithLength( +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_indexOfAscii_WithLength( sal_Unicode const * str, sal_Int32 len, char const * subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C(); @@ -693,7 +717,8 @@ sal_Int32 SAL_CALL rtl_ustr_indexOfAscii_WithLength( the index (starting at 0) of the first character of the last occurrence of the substring within the string, or -1 if the substring does not occur. */ -sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr( const sal_Unicode * str, const sal_Unicode * subStr ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr( + const sal_Unicode * str, const sal_Unicode * subStr ) SAL_THROW_EXTERN_C(); /** Search for the last occurrence of a substring within a string. @@ -717,7 +742,8 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr( const sal_Unicode * str, const sal_U the index (starting at 0) of the first character of the first occurrence of the substring within the string, or -1 if the substring does not occur. */ -sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr_WithLength( const sal_Unicode * str, sal_Int32 len, const sal_Unicode * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr_WithLength( + const sal_Unicode * str, sal_Int32 len, const sal_Unicode * subStr, sal_Int32 subLen ) SAL_THROW_EXTERN_C(); /** Search for the last occurrence of an ASCII substring within a string. @@ -743,7 +769,7 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfStr_WithLength( const sal_Unicode * str, @since UDK 3.2.7 */ -sal_Int32 SAL_CALL rtl_ustr_lastIndexOfAscii_WithLength( +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_lastIndexOfAscii_WithLength( sal_Unicode const * str, sal_Int32 len, char const * subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C(); @@ -761,7 +787,8 @@ sal_Int32 SAL_CALL rtl_ustr_lastIndexOfAscii_WithLength( @param newChar the new character. */ -void SAL_CALL rtl_ustr_replaceChar( sal_Unicode * str, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_ustr_replaceChar( + sal_Unicode * str, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C(); /** Replace all occurrences of a single character within a string. @@ -780,7 +807,8 @@ void SAL_CALL rtl_ustr_replaceChar( sal_Unicode * str, sal_Unicode oldChar, sal_ @param newChar the new character. */ -void SAL_CALL rtl_ustr_replaceChar_WithLength( sal_Unicode * str, sal_Int32 len, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_ustr_replaceChar_WithLength( + sal_Unicode * str, sal_Int32 len, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C(); /** Convert all ASCII uppercase letters to lowercase within a string. @@ -791,7 +819,8 @@ void SAL_CALL rtl_ustr_replaceChar_WithLength( sal_Unicode * str, sal_Int32 len, @param str a null-terminated string. */ -void SAL_CALL rtl_ustr_toAsciiLowerCase( sal_Unicode * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_ustr_toAsciiLowerCase( + sal_Unicode * str ) SAL_THROW_EXTERN_C(); /** Convert all ASCII uppercase letters to lowercase within a string. @@ -805,7 +834,8 @@ void SAL_CALL rtl_ustr_toAsciiLowerCase( sal_Unicode * str ) SAL_THROW_EXTERN_C( @param len the length of the string. */ -void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength( + sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Convert all ASCII lowercase letters to uppercase within a string. @@ -816,7 +846,8 @@ void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength( sal_Unicode * str, sal_Int32 @param str a null-terminated string. */ -void SAL_CALL rtl_ustr_toAsciiUpperCase( sal_Unicode * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_ustr_toAsciiUpperCase( + sal_Unicode * str ) SAL_THROW_EXTERN_C(); /** Convert all ASCII lowercase letters to uppercase within a string. @@ -830,7 +861,8 @@ void SAL_CALL rtl_ustr_toAsciiUpperCase( sal_Unicode * str ) SAL_THROW_EXTERN_C( @param len the length of the string. */ -void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength( + sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Remove white space from both ends of a string. @@ -844,7 +876,8 @@ void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength( sal_Unicode * str, sal_Int32 @return the new length of the string. */ -sal_Int32 SAL_CALL rtl_ustr_trim( sal_Unicode * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_trim( + sal_Unicode * str ) SAL_THROW_EXTERN_C(); /** Remove white space from both ends of the string. @@ -862,7 +895,8 @@ sal_Int32 SAL_CALL rtl_ustr_trim( sal_Unicode * str ) SAL_THROW_EXTERN_C(); @return the new length of the string. */ -sal_Int32 SAL_CALL rtl_ustr_trim_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_trim_WithLength( + sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Create the string representation of a boolean. @@ -882,7 +916,8 @@ sal_Int32 SAL_CALL rtl_ustr_trim_WithLength( sal_Unicode * str, sal_Int32 len ) @return the length of the string. */ -sal_Int32 SAL_CALL rtl_ustr_valueOfBoolean( sal_Unicode * str, sal_Bool b ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfBoolean( + sal_Unicode * str, sal_Bool b ) SAL_THROW_EXTERN_C(); #define RTL_USTR_MAX_VALUEOFBOOLEAN RTL_STR_MAX_VALUEOFBOOLEAN /** Create the string representation of a character. @@ -898,7 +933,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfBoolean( sal_Unicode * str, sal_Bool b ) SAL_ @return the length of the string. */ -sal_Int32 SAL_CALL rtl_ustr_valueOfChar( sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfChar( + sal_Unicode * str, sal_Unicode ch ) SAL_THROW_EXTERN_C(); #define RTL_USTR_MAX_VALUEOFCHAR RTL_STR_MAX_VALUEOFCHAR /** Create the string representation of an integer. @@ -920,7 +956,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfChar( sal_Unicode * str, sal_Unicode ch ) SAL @return the length of the string. */ -sal_Int32 SAL_CALL rtl_ustr_valueOfInt32( sal_Unicode * str, sal_Int32 i, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfInt32( + sal_Unicode * str, sal_Int32 i, sal_Int16 radix ) SAL_THROW_EXTERN_C(); #define RTL_USTR_MIN_RADIX RTL_STR_MIN_RADIX #define RTL_USTR_MAX_RADIX RTL_STR_MAX_RADIX #define RTL_USTR_MAX_VALUEOFINT32 RTL_STR_MAX_VALUEOFINT32 @@ -944,7 +981,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfInt32( sal_Unicode * str, sal_Int32 i, sal_In @return the length of the string. */ -sal_Int32 SAL_CALL rtl_ustr_valueOfInt64( sal_Unicode * str, sal_Int64 l, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfInt64( + sal_Unicode * str, sal_Int64 l, sal_Int16 radix ) SAL_THROW_EXTERN_C(); #define RTL_USTR_MAX_VALUEOFINT64 RTL_STR_MAX_VALUEOFINT64 /** Create the string representation of a float. @@ -962,7 +1000,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfInt64( sal_Unicode * str, sal_Int64 l, sal_In @return the length of the string. */ -sal_Int32 SAL_CALL rtl_ustr_valueOfFloat( sal_Unicode * str, float f ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfFloat( + sal_Unicode * str, float f ) SAL_THROW_EXTERN_C(); #define RTL_USTR_MAX_VALUEOFFLOAT RTL_STR_MAX_VALUEOFFLOAT /** Create the string representation of a double. @@ -980,7 +1019,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfFloat( sal_Unicode * str, float f ) SAL_THROW @return the length of the string. */ -sal_Int32 SAL_CALL rtl_ustr_valueOfDouble( sal_Unicode * str, double d ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_valueOfDouble( + sal_Unicode * str, double d ) SAL_THROW_EXTERN_C(); #define RTL_USTR_MAX_VALUEOFDOUBLE RTL_STR_MAX_VALUEOFDOUBLE /** Interpret a string as a boolean. @@ -994,7 +1034,8 @@ sal_Int32 SAL_CALL rtl_ustr_valueOfDouble( sal_Unicode * str, double d ) SAL_THR @return true if the string is "1" or "true" in any ASCII case, false otherwise. */ -sal_Bool SAL_CALL rtl_ustr_toBoolean( const sal_Unicode * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_ustr_toBoolean( + const sal_Unicode * str ) SAL_THROW_EXTERN_C(); /** Interpret a string as an integer. @@ -1012,7 +1053,8 @@ sal_Bool SAL_CALL rtl_ustr_toBoolean( const sal_Unicode * str ) SAL_THROW_EXTERN the integer value represented by the string, or 0 if the string does not represent an integer. */ -sal_Int32 SAL_CALL rtl_ustr_toInt32( const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_toInt32( + const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); /** Interpret a string as a long integer. @@ -1030,7 +1072,8 @@ sal_Int32 SAL_CALL rtl_ustr_toInt32( const sal_Unicode * str, sal_Int16 radix ) the long integer value represented by the string, or 0 if the string does not represent a long integer. */ -sal_Int64 SAL_CALL rtl_ustr_toInt64( const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int64 SAL_CALL rtl_ustr_toInt64( + const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); /** Interpret a string as a float. @@ -1044,7 +1087,8 @@ sal_Int64 SAL_CALL rtl_ustr_toInt64( const sal_Unicode * str, sal_Int16 radix ) the float value represented by the string, or 0.0 if the string does not represent a float. */ -float SAL_CALL rtl_ustr_toFloat( const sal_Unicode * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC float SAL_CALL rtl_ustr_toFloat( + const sal_Unicode * str ) SAL_THROW_EXTERN_C(); /** Interpret a string as a double. @@ -1058,7 +1102,8 @@ float SAL_CALL rtl_ustr_toFloat( const sal_Unicode * str ) SAL_THROW_EXTERN_C(); the float value represented by the string, or 0.0 if the string does not represent a double. */ -double SAL_CALL rtl_ustr_toDouble( const sal_Unicode * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC double SAL_CALL rtl_ustr_toDouble( + const sal_Unicode * str ) SAL_THROW_EXTERN_C(); /* ======================================================================= */ @@ -1088,7 +1133,8 @@ typedef struct _rtl_uString @param str a string. */ -void SAL_CALL rtl_uString_acquire( rtl_uString * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_acquire( + rtl_uString * str ) SAL_THROW_EXTERN_C(); /** Decrement the reference count of a string. @@ -1097,7 +1143,8 @@ void SAL_CALL rtl_uString_acquire( rtl_uString * str ) SAL_THROW_EXTERN_C(); @param str a string. */ -void SAL_CALL rtl_uString_release( rtl_uString * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_release( + rtl_uString * str ) SAL_THROW_EXTERN_C(); /** Allocate a new string containing no characters. @@ -1105,7 +1152,8 @@ void SAL_CALL rtl_uString_release( rtl_uString * str ) SAL_THROW_EXTERN_C(); pointer to the new string. The pointed-to data must be null or a valid string. */ -void SAL_CALL rtl_uString_new( rtl_uString ** newStr ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_new( + rtl_uString ** newStr ) SAL_THROW_EXTERN_C(); /** Allocate a new string containing space for a given number of characters. @@ -1120,7 +1168,8 @@ void SAL_CALL rtl_uString_new( rtl_uString ** newStr ) SAL_THROW_EXTERN_C(); @param len the number of characters. */ -void SAL_CALL rtl_uString_new_WithLength( rtl_uString ** newStr, sal_Int32 nLen ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_new_WithLength( + rtl_uString ** newStr, sal_Int32 nLen ) SAL_THROW_EXTERN_C(); /** Allocate a new string that contains a copy of another string. @@ -1135,7 +1184,8 @@ void SAL_CALL rtl_uString_new_WithLength( rtl_uString ** newStr, sal_Int32 nLen @param value a valid string. */ -void SAL_CALL rtl_uString_newFromString( rtl_uString ** newStr, const rtl_uString * value ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromString( + rtl_uString ** newStr, const rtl_uString * value ) SAL_THROW_EXTERN_C(); /** Allocate a new string that contains a copy of a character array. @@ -1150,7 +1200,8 @@ void SAL_CALL rtl_uString_newFromString( rtl_uString ** newStr, const rtl_uStrin @param value a null-terminated character array. */ -void SAL_CALL rtl_uString_newFromStr( rtl_uString ** newStr, const sal_Unicode * value ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromStr( + rtl_uString ** newStr, const sal_Unicode * value ) SAL_THROW_EXTERN_C(); /** Allocate a new string that contains a copy of a character array. @@ -1169,7 +1220,8 @@ void SAL_CALL rtl_uString_newFromStr( rtl_uString ** newStr, const sal_Unicode * @param len the length of the character array. */ -void SAL_CALL rtl_uString_newFromStr_WithLength( rtl_uString ** newStr, const sal_Unicode * value, sal_Int32 len ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromStr_WithLength( + rtl_uString ** newStr, const sal_Unicode * value, sal_Int32 len ) SAL_THROW_EXTERN_C(); /** Allocate a new string that contains a copy of a character array. @@ -1188,7 +1240,8 @@ void SAL_CALL rtl_uString_newFromStr_WithLength( rtl_uString ** newStr, const sa @param value a null-terminated ASCII character array. */ -void SAL_CALL rtl_uString_newFromAscii( rtl_uString ** newStr, const sal_Char * value ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromAscii( + rtl_uString ** newStr, const sal_Char * value ) SAL_THROW_EXTERN_C(); /** Allocate a new string from an array of Unicode code points. @@ -1209,7 +1262,7 @@ void SAL_CALL rtl_uString_newFromAscii( rtl_uString ** newStr, const sal_Char * @since UDK 3.2.7 */ -void SAL_CALL rtl_uString_newFromCodePoints( +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newFromCodePoints( rtl_uString ** newString, sal_uInt32 const * codePoints, sal_Int32 codePointCount) SAL_THROW_EXTERN_C(); @@ -1225,7 +1278,8 @@ void SAL_CALL rtl_uString_newFromCodePoints( @param rightValue a valid string. */ -void SAL_CALL rtl_uString_assign( rtl_uString ** str, rtl_uString * rightValue ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_assign( + rtl_uString ** str, rtl_uString * rightValue ) SAL_THROW_EXTERN_C(); /** Return the length of a string. @@ -1237,7 +1291,8 @@ void SAL_CALL rtl_uString_assign( rtl_uString ** str, rtl_uString * rightValue ) @return the length of the string. */ -sal_Int32 SAL_CALL rtl_uString_getLength( const rtl_uString * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_uString_getLength( + const rtl_uString * str ) SAL_THROW_EXTERN_C(); /** Return a pointer to the underlying character array of a string. @@ -1247,7 +1302,8 @@ sal_Int32 SAL_CALL rtl_uString_getLength( const rtl_uString * str ) SAL_THROW_EX @return a pointer to the null-terminated character array. */ -sal_Unicode * SAL_CALL rtl_uString_getStr( rtl_uString * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Unicode * SAL_CALL rtl_uString_getStr( + rtl_uString * str ) SAL_THROW_EXTERN_C(); /** Create a new string that is the concatenation of two other strings. @@ -1266,7 +1322,8 @@ sal_Unicode * SAL_CALL rtl_uString_getStr( rtl_uString * str ) SAL_THROW_EXTERN_ @param right a valid string. */ -void SAL_CALL rtl_uString_newConcat( rtl_uString ** newStr, rtl_uString * left, rtl_uString * right ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newConcat( + rtl_uString ** newStr, rtl_uString * left, rtl_uString * right ) SAL_THROW_EXTERN_C(); /** Create a new string by replacing a substring of another string. @@ -1297,7 +1354,8 @@ void SAL_CALL rtl_uString_newConcat( rtl_uString ** newStr, rtl_uString * left, @param subStr either null or a valid string to be inserted. */ -void SAL_CALL rtl_uString_newReplaceStrAt( rtl_uString ** newStr, rtl_uString * str, sal_Int32 idx, sal_Int32 count, rtl_uString * subStr ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newReplaceStrAt( + rtl_uString ** newStr, rtl_uString * str, sal_Int32 idx, sal_Int32 count, rtl_uString * subStr ) SAL_THROW_EXTERN_C(); /** Create a new string by replacing all occurrences of a single character within another string. @@ -1323,7 +1381,8 @@ void SAL_CALL rtl_uString_newReplaceStrAt( rtl_uString ** newStr, rtl_uString * @param newChar the new character. */ -void SAL_CALL rtl_uString_newReplace( rtl_uString ** newStr, rtl_uString * str, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newReplace( + rtl_uString ** newStr, rtl_uString * str, sal_Unicode oldChar, sal_Unicode newChar ) SAL_THROW_EXTERN_C(); /** Create a new string by converting all ASCII uppercase letters to lowercase within another string. @@ -1344,7 +1403,8 @@ void SAL_CALL rtl_uString_newReplace( rtl_uString ** newStr, rtl_uString * str, @param str a valid string. */ -void SAL_CALL rtl_uString_newToAsciiLowerCase( rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newToAsciiLowerCase( + rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C(); /** Create a new string by converting all ASCII lowercase letters to uppercase within another string. @@ -1365,7 +1425,8 @@ void SAL_CALL rtl_uString_newToAsciiLowerCase( rtl_uString ** newStr, rtl_uStrin @param str a valid string. */ -void SAL_CALL rtl_uString_newToAsciiUpperCase( rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newToAsciiUpperCase( + rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C(); /** Create a new string by removing white space from both ends of another string. @@ -1386,7 +1447,8 @@ void SAL_CALL rtl_uString_newToAsciiUpperCase( rtl_uString ** newStr, rtl_uStrin @param str a valid string. */ -void SAL_CALL rtl_uString_newTrim( rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_newTrim( + rtl_uString ** newStr, rtl_uString * str ) SAL_THROW_EXTERN_C(); /** Create a new string by extracting a single token from another string. @@ -1432,7 +1494,8 @@ void SAL_CALL rtl_uString_newTrim( rtl_uString ** newStr, rtl_uString * str ) SA @return the index of the next token, or -1 if no more tokens follow. */ -sal_Int32 SAL_CALL rtl_uString_getToken( rtl_uString ** newStr , rtl_uString * str, sal_Int32 token, sal_Unicode cTok, sal_Int32 idx ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_uString_getToken( + rtl_uString ** newStr , rtl_uString * str, sal_Int32 token, sal_Unicode cTok, sal_Int32 idx ) SAL_THROW_EXTERN_C(); /* ======================================================================= */ @@ -1492,7 +1555,8 @@ sal_Int32 SAL_CALL rtl_uString_getToken( rtl_uString ** newStr , rtl_uString * s for more details. */ -void SAL_CALL rtl_string2UString( rtl_uString ** newStr, const sal_Char * str, sal_Int32 len, rtl_TextEncoding encoding, sal_uInt32 convertFlags ) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_string2UString( + rtl_uString ** newStr, const sal_Char * str, sal_Int32 len, rtl_TextEncoding encoding, sal_uInt32 convertFlags ) SAL_THROW_EXTERN_C(); /* ======================================================================= */ /* Interning methods */ @@ -1516,8 +1580,8 @@ void SAL_CALL rtl_string2UString( rtl_uString ** newStr, const sal_Char * str, s @since UDK 3.2.7 */ -void SAL_CALL rtl_uString_intern( rtl_uString ** newStr, - rtl_uString * str) SAL_THROW_EXTERN_C(); +SAL_DLLPUBLIC void SAL_CALL rtl_uString_intern( + rtl_uString ** newStr, rtl_uString * str) SAL_THROW_EXTERN_C(); /** Return a canonical representation for a string. @@ -1554,7 +1618,8 @@ void SAL_CALL rtl_uString_intern( rtl_uString ** newStr, @since UDK 3.2.7 */ -void SAL_CALL rtl_uString_internConvert( rtl_uString ** newStr, +SAL_DLLPUBLIC void SAL_CALL rtl_uString_internConvert( + rtl_uString ** newStr, const sal_Char * str, sal_Int32 len, rtl_TextEncoding encoding, @@ -1613,7 +1678,7 @@ void SAL_CALL rtl_uString_internConvert( rtl_uString ** newStr, @since UDK 3.2.7 */ -sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints( +SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints( rtl_uString const * string, sal_Int32 * indexUtf16, sal_Int32 incrementCodePoints); @@ -1650,7 +1715,7 @@ sal_uInt32 SAL_CALL rtl_uString_iterateCodePoints( @since UDK 3.2.9 */ -sal_Bool SAL_CALL rtl_convertStringToUString( +SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_convertStringToUString( rtl_uString ** target, char const * source, sal_Int32 length, rtl_TextEncoding encoding, sal_uInt32 flags) SAL_THROW_EXTERN_C(); diff --git a/sal/inc/rtl/uuid.h b/sal/inc/rtl/uuid.h index ed0180a88985..0c78e6833d07 100644 --- a/sal/inc/rtl/uuid.h +++ b/sal/inc/rtl/uuid.h @@ -65,7 +65,8 @@ extern "C" { @param bUseEthernetAddress ignored (was used when this function returned Version 1 instead of Version 4 UUIDs). */ -void SAL_CALL rtl_createUuid( sal_uInt8 *pTargetUUID , +SAL_DLLPUBLIC void SAL_CALL rtl_createUuid( + sal_uInt8 *pTargetUUID, const sal_uInt8 *pPredecessorUUID, sal_Bool bUseEthernetAddress ); @@ -84,7 +85,8 @@ void SAL_CALL rtl_createUuid( sal_uInt8 *pTargetUUID , */ -sal_Int32 SAL_CALL rtl_compareUuid( const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 ); +SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareUuid( + const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 ); /** Creates named UUIDs. @@ -121,7 +123,7 @@ sal_Int32 SAL_CALL rtl_compareUuid( const sal_uInt8 *pUUID1 , const sal_uInt8 *p @param pName the name */ -void SAL_CALL rtl_createNamedUuid( +SAL_DLLPUBLIC void SAL_CALL rtl_createNamedUuid( sal_uInt8 *pTargetUUID, const sal_uInt8 *pNameSpaceUUID, const rtl_String *pName -- cgit v1.2.3