summaryrefslogtreecommitdiff
path: root/unotools/source/i18n/charclass.cxx
diff options
context:
space:
mode:
authorMarcel Metz <mmetz@adrian-broher.net>2012-01-11 10:02:26 +0100
committerDavid Tardon <dtardon@redhat.com>2012-01-16 12:51:29 +0100
commit157d414977a6b80d2654767419fe2e406024ea04 (patch)
treea3af6d6af0aa082765c2635d75cba4079e287bed /unotools/source/i18n/charclass.cxx
parentaad000dcef7b5c9a6fe4bad6abd4245e357b850f (diff)
Replaced DBG_ERRORFILE with SAL_INFO.
Diffstat (limited to 'unotools/source/i18n/charclass.cxx')
-rw-r--r--unotools/source/i18n/charclass.cxx48
1 files changed, 18 insertions, 30 deletions
diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx
index c169a6614b6a..6795a2e8b32a 100644
--- a/unotools/source/i18n/charclass.cxx
+++ b/unotools/source/i18n/charclass.cxx
@@ -131,7 +131,7 @@ sal_Bool CharClass::isAlpha( const String& rStr, xub_StrLen nPos ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "isAlpha: Exception caught!" );
+ SAL_INFO( "unotools", "isAlpha: Exception caught!" );
return sal_False;
}
}
@@ -154,7 +154,7 @@ sal_Bool CharClass::isLetter( const String& rStr, xub_StrLen nPos ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "isLetter: Exception caught!" );
+ SAL_INFO( "unotools", "isLetter: Exception caught!" );
return sal_False;
}
}
@@ -171,7 +171,7 @@ sal_Bool CharClass::isLetter( const String& rStr ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "isLetter: Exception caught!" );
+ SAL_INFO( "unotools", "isLetter: Exception caught!" );
return sal_False;
}
}
@@ -193,7 +193,7 @@ sal_Bool CharClass::isDigit( const String& rStr, xub_StrLen nPos ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "isDigit: Exception caught!" );
+ SAL_INFO( "unotools", "isDigit: Exception caught!" );
return sal_False;
}
}
@@ -210,7 +210,7 @@ sal_Bool CharClass::isNumeric( const String& rStr ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "isNumeric: Exception caught!" );
+ SAL_INFO( "unotools", "isNumeric: Exception caught!" );
return sal_False;
}
}
@@ -232,7 +232,7 @@ sal_Bool CharClass::isAlphaNumeric( const String& rStr, xub_StrLen nPos ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "isAlphaNumeric: Exception caught!" );
+ SAL_INFO( "unotools", "isAlphaNumeric: Exception caught!" );
return sal_False;
}
}
@@ -254,7 +254,7 @@ sal_Bool CharClass::isLetterNumeric( const String& rStr, xub_StrLen nPos ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "isLetterNumeric: Exception caught!" );
+ SAL_INFO( "unotools", "isLetterNumeric: Exception caught!" );
return sal_False;
}
}
@@ -271,7 +271,7 @@ sal_Bool CharClass::isLetterNumeric( const String& rStr ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "isLetterNumeric: Exception caught!" );
+ SAL_INFO( "unotools", "isLetterNumeric: Exception caught!" );
return sal_False;
}
}
@@ -287,7 +287,7 @@ rtl::OUString CharClass::titlecase(const rtl::OUString& rStr, sal_Int32 nPos, sa
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "titlecase: Exception caught!" );
+ SAL_INFO( "unotools", "titlecase: Exception caught!" );
return rStr.copy( nPos, nCount );
}
}
@@ -303,7 +303,7 @@ rtl::OUString CharClass::titlecase(const rtl::OUString& rStr, sal_Int32 nPos, sa
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "uppercase: Exception caught!" );
+ SAL_INFO( "unotools", "uppercase: Exception caught!" );
return rStr.copy( nPos, nCount );
}
}
@@ -319,7 +319,7 @@ rtl::OUString CharClass::titlecase(const rtl::OUString& rStr, sal_Int32 nPos, sa
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "lowercase: Exception caught!" );
+ SAL_INFO( "unotools", "lowercase: Exception caught!" );
return rStr.copy( nPos, nCount );
}
}
@@ -335,7 +335,7 @@ sal_Int16 CharClass::getType( const String& rStr, xub_StrLen nPos ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "getType: Exception caught!" );
+ SAL_INFO( "unotools", "getType: Exception caught!" );
return 0;
}
}
@@ -352,7 +352,7 @@ sal_Int16 CharClass::getCharacterDirection( const String& rStr, xub_StrLen nPos
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "getCharacterDirection: Exception caught!" );
+ SAL_INFO( "unotools", "getCharacterDirection: Exception caught!" );
return 0;
}
}
@@ -369,7 +369,7 @@ sal_Int16 CharClass::getScript( const String& rStr, xub_StrLen nPos ) const
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "getScript: Exception caught!" );
+ SAL_INFO( "unotools", "getScript: Exception caught!" );
return 0;
}
}
@@ -386,7 +386,7 @@ sal_Int32 CharClass::getCharacterType( const String& rStr, xub_StrLen nPos ) con
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "getCharacterType: Exception caught!" );
+ SAL_INFO( "unotools", "getCharacterType: Exception caught!" );
return 0;
}
}
@@ -403,7 +403,7 @@ sal_Int32 CharClass::getStringType( const String& rStr, xub_StrLen nPos, xub_Str
}
catch ( const Exception& )
{
- DBG_ERRORFILE( "getStringType: Exception caught!" );
+ SAL_INFO( "unotools", "getStringType: Exception caught!" );
return 0;
}
}
@@ -428,13 +428,7 @@ sal_Int32 CharClass::getStringType( const String& rStr, xub_StrLen nPos, xub_Str
}
catch ( const Exception& e )
{
-#ifdef DBG_UTIL
- rtl::OStringBuffer aMsg("parseAnyToken: Exception caught\n");
- aMsg.append(rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8));
- DBG_ERRORFILE(aMsg.getStr());
-#else
- (void)e;
-#endif
+ SAL_INFO( "unotools.l18n", "parseAnyToken: Exception caught " << e.Message );
return ParseResult();
}
}
@@ -460,13 +454,7 @@ sal_Int32 CharClass::getStringType( const String& rStr, xub_StrLen nPos, xub_Str
}
catch ( const Exception& e )
{
-#ifdef DBG_UTIL
- rtl::OStringBuffer aMsg("parsePredefinedToken: Exception caught\n");
- aMsg.append(rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8));
- DBG_ERRORFILE(aMsg.getStr());
-#else
- (void)e;
-#endif
+ SAL_INFO( "unotools.l18n", "parsePredefinedToken: Exception caught " << e.Message );
return ParseResult();
}
}