summaryrefslogtreecommitdiff
path: root/i18npool/source/transliteration
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-01-11 11:29:14 +0100
committerThomas Lange [tl] <tl@openoffice.org>2010-01-11 11:29:14 +0100
commitb9af4e970fa589f901fb12366e6714054f77cdd2 (patch)
treed554bc1c5edd12a983c6f72031a684e9681868a0 /i18npool/source/transliteration
parentc21dd3db92837b4fb4360bc1f9abed6ba957ae6f (diff)
cws tl74: case error in include statement fixed
Diffstat (limited to 'i18npool/source/transliteration')
-rw-r--r--i18npool/source/transliteration/transliteration_body.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx
index 0426f89b604d..d041a1d8f915 100644
--- a/i18npool/source/transliteration/transliteration_body.cxx
+++ b/i18npool/source/transliteration/transliteration_body.cxx
@@ -39,7 +39,7 @@
#include <tools/debug.hxx>
-#include "CharacterClassificationImpl.hxx"
+#include "characterclassificationImpl.hxx"
#include "breakiteratorImpl.hxx"
#define TRANSLITERATION_ALL
@@ -333,18 +333,18 @@ Transliteration_titlecase::Transliteration_titlecase()
implementationName = "com.sun.star.i18n.Transliteration.Transliteration_titlecase";
}
-rtl::OUString SAL_CALL Transliteration_titlecase::transliterate(
+rtl::OUString SAL_CALL Transliteration_titlecase::transliterate(
const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& /*offset*/ )
throw(RuntimeException)
-{
- Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
- CharacterClassificationImpl aCharClassImpl( xMSF );
-
- // possible problem: the locale is not exactly specific for each word in the text...
- OUString aRes( aCharClassImpl.toTitle( inStr, startPos, nCount, aLocale ) );
- return aRes;
-}
+{
+ Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
+ CharacterClassificationImpl aCharClassImpl( xMSF );
+
+ // possible problem: the locale is not exactly specific for each word in the text...
+ OUString aRes( aCharClassImpl.toTitle( inStr, startPos, nCount, aLocale ) );
+ return aRes;
+}
Transliteration_sentencecase::Transliteration_sentencecase()
{
@@ -459,16 +459,16 @@ rtl::OUString SAL_CALL Transliteration_sentencecase::transliterate(
// beginOfSentence does not work as expected with '.'. See comment below.
// For the time being I will leave this code here as a from-scratch sample if the
// breakiterator works better at some point...
-rtl::OUString SAL_CALL Transliteration_sentencecase::transliterate(
+rtl::OUString SAL_CALL Transliteration_sentencecase::transliterate(
const OUString& inStr, sal_Int32 nStartPos, sal_Int32 nCount,
Sequence< sal_Int32 >& /*offset*/ )
throw(RuntimeException)
-{
+{
OUString aRes( inStr.copy( nStartPos, nCount ) );
if (nStartPos >= 0 && nStartPos < inStr.getLength() && nCount > 0)
{
- Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
+ Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
BreakIteratorImpl brk( xMSF );
sal_Int32 nSentenceStart = -1, nOldSentenceStart = -1;
@@ -476,8 +476,8 @@ rtl::OUString SAL_CALL Transliteration_sentencecase::transliterate(
while (nPos >= nStartPos && nPos != -1)
{
// possible problem: the locale is not exactly specific for each sentence in the text,
- // but it is the only one we have...
- nOldSentenceStart = nSentenceStart;
+ // but it is the only one we have...
+ nOldSentenceStart = nSentenceStart;
nSentenceStart = brk.beginOfSentence( inStr, nPos, aLocale );
// since the breakiterator completely ignores '.' characvters as end-of-sentence when
@@ -510,8 +510,8 @@ rtl::OUString SAL_CALL Transliteration_sentencecase::transliterate(
--nPos;
}
}
- return aRes;
-}
+ return aRes;
+}
#endif
} } } }