summaryrefslogtreecommitdiff
path: root/i18npool/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:56:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:19 +0100
commit18f40d26ec03dbd23f254c2cfe95e4783fd33449 (patch)
tree7a8099ed9f7096eb323b56daab52fff03501294e /i18npool/source
parent25df36cf04b6ad94da09725a0bfe012b404b7de2 (diff)
New loplugin:dynexcspec: Add @throws documentation, i18npool
Change-Id: Ie1304a081a8c26cb3204ca7fb3edfa7e2dfae386
Diffstat (limited to 'i18npool/source')
-rw-r--r--i18npool/source/calendar/calendar_gregorian.cxx1
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx3
-rw-r--r--i18npool/source/nativenumber/nativenumbersupplier.cxx3
-rw-r--r--i18npool/source/search/textsearch.hxx9
-rw-r--r--i18npool/source/transliteration/transliteration_body.cxx1
5 files changed, 17 insertions, 0 deletions
diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx
index e70666ea5483..d7c6bad1d7be 100644
--- a/i18npool/source/calendar/calendar_gregorian.cxx
+++ b/i18npool/source/calendar/calendar_gregorian.cxx
@@ -397,6 +397,7 @@ void Calendar_gregorian::mapToGregorian() throw(RuntimeException)
}
}
+/// @throws RuntimeException
static UCalendarDateFields fieldNameConverter(sal_Int16 fieldIndex) throw(RuntimeException)
{
UCalendarDateFields f;
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index f44e408bfebe..208358cba71b 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -388,6 +388,9 @@ void lcl_formatChars3( const sal_Unicode table_capital[], const sal_Unicode tabl
/** Returns number's representation in persian words up to 999999999999
respectively limited by sal_Int32 >=0.
The caller assures that nNumber is not negative.
+
+ @throws IllegalArgumentException
+ @throws RuntimeException
*/
static
void lcl_formatPersianWord( sal_Int32 nNumber, OUString& rsResult )
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index 35a3b2e9e88d..c1e4c14d9561 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -61,6 +61,7 @@ OUString SAL_CALL getHebrewNativeNumberString(const OUString& aNumberString, boo
OUString SAL_CALL getCyrillicNativeNumberString(const OUString& aNumberString);
+/// @throws RuntimeException
OUString SAL_CALL AsciiToNativeChar( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& offset, bool useOffset, sal_Int16 number ) throw(RuntimeException)
{
@@ -161,6 +162,7 @@ bool SAL_CALL AsciiToNative_numberMaker(const sal_Unicode *str, sal_Int32 begin,
}
}
+/// @throws RuntimeException
OUString SAL_CALL AsciiToNative( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& offset, bool useOffset, const Number* number ) throw(RuntimeException)
{
@@ -297,6 +299,7 @@ static void SAL_CALL NativeToAscii_numberMaker(sal_Int16 max, sal_Int16 prev, co
}
}
+/// @throws RuntimeException
static OUString SAL_CALL NativeToAscii(const OUString& inStr,
sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset, bool useOffset ) throw(RuntimeException)
{
diff --git a/i18npool/source/search/textsearch.hxx b/i18npool/source/search/textsearch.hxx
index 5ed122b73dd5..cd8712b18a91 100644
--- a/i18npool/source/search/textsearch.hxx
+++ b/i18npool/source/search/textsearch.hxx
@@ -72,10 +72,12 @@ class TextSearch: public cppu::WeakImplHelper
void MakeBackwardTab();
void MakeBackwardTab2();
sal_Int32 GetDiff( const sal_Unicode ) const;
+ /// @throws css::uno::RuntimeException
css::util::SearchResult SAL_CALL
NSrchFrwrd( const OUString& searchStr,
sal_Int32 startPos, sal_Int32 endPos )
throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::util::SearchResult SAL_CALL
NSrchBkwrd( const OUString& searchStr,
sal_Int32 startPos, sal_Int32 endPos )
@@ -83,10 +85,12 @@ class TextSearch: public cppu::WeakImplHelper
// Members and methods for the regular expression search
RegexMatcher* pRegexMatcher;
+ /// @throws css::uno::RuntimeException
css::util::SearchResult SAL_CALL
RESrchFrwrd( const OUString& searchStr,
sal_Int32 startPos, sal_Int32 endPos )
throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::util::SearchResult SAL_CALL
RESrchBkwrd( const OUString& searchStr,
sal_Int32 startPos, sal_Int32 endPos )
@@ -97,10 +101,12 @@ class TextSearch: public cppu::WeakImplHelper
int nLimit;
WLevDistance* pWLD;
css::uno::Reference < css::i18n::XBreakIterator > xBreak;
+ /// @throws css::uno::RuntimeException
css::util::SearchResult SAL_CALL
ApproxSrchFrwrd( const OUString& searchStr,
sal_Int32 startPos, sal_Int32 endPos )
throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::util::SearchResult SAL_CALL
ApproxSrchBkwrd( const OUString& searchStr,
sal_Int32 startPos, sal_Int32 endPos )
@@ -111,10 +117,12 @@ class TextSearch: public cppu::WeakImplHelper
OUString maWildcardReversePattern2;
sal_uInt32 mcWildcardEscapeChar;
bool mbWildcardAllowSubstring;
+ /// @throws css::uno::RuntimeException
css::util::SearchResult SAL_CALL
WildcardSrchFrwrd( const OUString& searchStr,
sal_Int32 startPos, sal_Int32 endPos )
throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::util::SearchResult SAL_CALL
WildcardSrchBkwrd( const OUString& searchStr,
sal_Int32 startPos, sal_Int32 endPos )
@@ -123,6 +131,7 @@ class TextSearch: public cppu::WeakImplHelper
bool IsDelimiter( const OUString& rStr, sal_Int32 nPos ) const;
bool checkCTLStart, checkCTLEnd;
+ /// @throws css::uno::RuntimeException
bool SAL_CALL isCellStart(const OUString& searchStr, sal_Int32 nPos)
throw(css::uno::RuntimeException);
diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx
index 0e2d4c5c84d5..b83539de36d9 100644
--- a/i18npool/source/transliteration/transliteration_body.cxx
+++ b/i18npool/source/transliteration/transliteration_body.cxx
@@ -258,6 +258,7 @@ Transliteration_titlecase::Transliteration_titlecase()
implementationName = "com.sun.star.i18n.Transliteration.Transliteration_titlecase";
}
+/// @throws RuntimeException
static OUString transliterate_titlecase_Impl(
const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
const Locale &rLocale,