CWS-TOOLING: integrate CWS os146
[LibreOffice.git] / i18npool / inc / transliteration_caseignore.hxx
blob493a01c46f182a8ad332bc83e1a101a5096071ad
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef TRANSLITERATION_CASE_IGNORE_H
28 #define TRANSLITERATION_CASE_IGNORE_H
30 #define TRANSLITERATION_UPPER_LOWER
31 #include "transliteration_body.hxx"
33 namespace com { namespace sun { namespace star { namespace i18n {
35 class Transliteration_caseignore: public Transliteration_body
37 public:
38 Transliteration_caseignore();
40 // Methods which are shared.
41 sal_Int16 SAL_CALL getType() throw(com::sun::star::uno::RuntimeException);
43 void SAL_CALL loadModule( TransliterationModules modName, const com::sun::star::lang::Locale& rLocale )
44 throw(com::sun::star::uno::RuntimeException);
46 com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL transliterateRange(
47 const rtl::OUString& str1, const rtl::OUString& str2 )
48 throw(com::sun::star::uno::RuntimeException);
50 sal_Bool SAL_CALL equals(
51 const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
52 const rtl::OUString& src2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2)
53 throw(com::sun::star::uno::RuntimeException);
55 sal_Int32 SAL_CALL compareSubstring(
56 const rtl::OUString& s1, sal_Int32 off1, sal_Int32 len1,
57 const rtl::OUString& s2, sal_Int32 off2, sal_Int32 len2)
58 throw(com::sun::star::uno::RuntimeException);
60 sal_Int32 SAL_CALL compareString(
61 const rtl::OUString& s1,
62 const rtl::OUString& s2)
63 throw(com::sun::star::uno::RuntimeException);
65 protected:
66 TransliterationModules moduleLoaded;
67 private:
68 sal_Int32 SAL_CALL compare(
69 const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
70 const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2)
71 throw(com::sun::star::uno::RuntimeException);
74 } } } }
76 #endif