1*b1cdbd2cSJim Jagielski /************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski #ifndef _I18N_TRANSLITERATION_TRANSLITERATION_NUMERIC_H_ 24*b1cdbd2cSJim Jagielski #define _I18N_TRANSLITERATION_TRANSLITERATION_NUMERIC_H_ 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim Jagielski #include <transliteration_commonclass.hxx> 27*b1cdbd2cSJim Jagielski 28*b1cdbd2cSJim Jagielski namespace com { namespace sun { namespace star { namespace i18n { 29*b1cdbd2cSJim Jagielski 30*b1cdbd2cSJim Jagielski class transliteration_Numeric : public transliteration_commonclass { 31*b1cdbd2cSJim Jagielski public: 32*b1cdbd2cSJim Jagielski virtual ::rtl::OUString SAL_CALL 33*b1cdbd2cSJim Jagielski transliterate( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset ) 34*b1cdbd2cSJim Jagielski throw(::com::sun::star::uno::RuntimeException); 35*b1cdbd2cSJim Jagielski 36*b1cdbd2cSJim Jagielski virtual sal_Unicode SAL_CALL 37*b1cdbd2cSJim Jagielski transliterateChar2Char( sal_Unicode inChar) 38*b1cdbd2cSJim Jagielski throw(com::sun::star::i18n::MultipleCharsOutputException, 39*b1cdbd2cSJim Jagielski com::sun::star::uno::RuntimeException); 40*b1cdbd2cSJim Jagielski 41*b1cdbd2cSJim Jagielski // Methods which are shared. 42*b1cdbd2cSJim Jagielski virtual sal_Int16 SAL_CALL getType( ) throw(::com::sun::star::uno::RuntimeException); 43*b1cdbd2cSJim Jagielski 44*b1cdbd2cSJim Jagielski virtual ::rtl::OUString SAL_CALL 45*b1cdbd2cSJim Jagielski folding( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset ) 46*b1cdbd2cSJim Jagielski throw(::com::sun::star::uno::RuntimeException); 47*b1cdbd2cSJim Jagielski 48*b1cdbd2cSJim Jagielski virtual sal_Bool SAL_CALL 49*b1cdbd2cSJim Jagielski equals( const ::rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1, const ::rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 ) 50*b1cdbd2cSJim Jagielski throw(::com::sun::star::uno::RuntimeException); 51*b1cdbd2cSJim Jagielski 52*b1cdbd2cSJim Jagielski virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 53*b1cdbd2cSJim Jagielski transliterateRange( const ::rtl::OUString& str1, const ::rtl::OUString& str2 ) 54*b1cdbd2cSJim Jagielski throw(::com::sun::star::uno::RuntimeException); 55*b1cdbd2cSJim Jagielski protected: 56*b1cdbd2cSJim Jagielski sal_Int16 nNativeNumberMode; 57*b1cdbd2cSJim Jagielski sal_Int16 tableSize; 58*b1cdbd2cSJim Jagielski sal_Unicode* table; 59*b1cdbd2cSJim Jagielski sal_Bool recycleSymbol; 60*b1cdbd2cSJim Jagielski private: 61*b1cdbd2cSJim Jagielski rtl::OUString SAL_CALL 62*b1cdbd2cSJim Jagielski transliterateBullet( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, 63*b1cdbd2cSJim Jagielski com::sun::star::uno::Sequence< sal_Int32 >& offset ) 64*b1cdbd2cSJim Jagielski throw(com::sun::star::uno::RuntimeException); 65*b1cdbd2cSJim Jagielski }; 66*b1cdbd2cSJim Jagielski 67*b1cdbd2cSJim Jagielski } } } } 68*b1cdbd2cSJim Jagielski 69*b1cdbd2cSJim Jagielski #endif // _I18N_TRANSLITERATION_TRANSLITERATION_NUMERIC_H_ 70