LibreOffice Module i18npool (master)  1
transliteration_body.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_I18NPOOL_INC_TRANSLITERATION_BODY_HXX
20 #define INCLUDED_I18NPOOL_INC_TRANSLITERATION_BODY_HXX
21 
23 #include <i18nutil/casefolding.hxx>
24 
25 namespace i18npool {
26 
28 {
29 public:
31 
32  // Methods which are shared.
33  sal_Int16 SAL_CALL getType() override;
34 
35  OUString transliterateImpl(const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
36  css::uno::Sequence< sal_Int32 >* pOffset) override;
37 
38  OUString SAL_CALL
39  transliterateChar2String( sal_Unicode inChar) override;
40 
41  virtual sal_Unicode SAL_CALL
42  transliterateChar2Char( sal_Unicode inChar) override;
43 
44  OUString foldingImpl(const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
45  css::uno::Sequence< sal_Int32 >* pOffset) override;
46 
47  sal_Bool SAL_CALL equals(
48  const OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
49  const OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 ) override;
50 
51  css::uno::Sequence< OUString > SAL_CALL transliterateRange( const OUString& str1,
52  const OUString& str2 ) override;
53 
54 protected:
56 };
57 
59 {
60 public:
62 };
63 
65 {
66 public:
68 };
69 
71 {
72 public:
74  void setMappingType(const MappingType rMappingType, const css::lang::Locale& rLocale );
75 };
76 
78 {
79 public:
81 };
82 
84 {
85 public:
87 
88  virtual OUString transliterateImpl( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
89  css::uno::Sequence< sal_Int32 >* pOffset ) override;
90 };
91 
93 {
94 public:
96 
97  virtual OUString transliterateImpl( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
98  css::uno::Sequence< sal_Int32 >* pOffset ) override;
99 };
100 
101 }
102 
103 #endif
104 
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Sequence< OUString > SAL_CALL transliterateRange(const OUString &str1, const OUString &str2) override
virtual OUString transliterateImpl(const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) override
MappingType
sal_uInt16 sal_Unicode
int nCount
void setMappingType(const MappingType rMappingType, const css::lang::Locale &rLocale)
unsigned char sal_Bool
OUString SAL_CALL transliterateChar2String(sal_Unicode inChar) override
OUString transliterateImpl(const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) override
Constant values shared between i18npool and, for example, the number formatter.
sal_Bool SAL_CALL equals(const OUString &str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32 &nMatch1, const OUString &str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32 &nMatch2) override
virtual OUString transliterateImpl(const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) override
sal_Int16 SAL_CALL getType() override
OUString foldingImpl(const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) override
virtual sal_Unicode SAL_CALL transliterateChar2Char(sal_Unicode inChar) override