/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
/** set a new language and load the corresponding transliteration module if
needed for the mode set with nType in the ctor */ void loadModuleIfNeeded( LanguageType nLang );
/** Load the transliteration module specified by rModuleName, which has to be the UNO service implementation name that is expanded to the full UNO service implementation name, for example, "NumToCharKanjiShort_ja_JP" expands to "com.sun.star.i18n.Transliteration.NumToCharKanjiShort_ja_JP". @ATTENTION! This method ignores the mode type set with the constructor and interferes with the loadModuleIfNeeded() method and the transliterate() method that gets a LanguageType passed as parameter. Using one of those may load a different module and overwrite this setting. Only the transliterate() method that takes no LanguageType parameter may be used
for a specific module loaded with this method. */ void loadModuleByImplName( const OUString& rModuleName, LanguageType nLang );
/** This transliteration method corresponds with the loadModuleByImplName() method. It relies on a module being loaded and does not try load one. If for any reason the string can't be transliterated the original
string is returned. */
OUString transliterate( const OUString& rStr,
sal_Int32 nStart, sal_Int32 nLen ) const;
/** If two strings are equal per this transliteration. Returns the number of matched code points in any case, even if strings are not equal, for example: equals( "a", 0, 1, nMatch1, "aaa", 0, 3, nMatch2 ) returns false and nMatch:=1 and nMatch2:=1 equals( "aab", 0, 3, nMatch1, "aaa", 0, 3, nMatch2 ) returns false and nMatch:=2 and nMatch2:=2
*/ bool equals( const OUString& rStr1, sal_Int32 nPos1, sal_Int32 nCount1, sal_Int32& nMatch1, const OUString& rStr2, sal_Int32 nPos2, sal_Int32 nCount2, sal_Int32& nMatch2 ) const;
/** If two strings are really equal as per this translation, and not just one string is matching the start of the other. Use this method instead of compareString()==0 because it is much faster.
*/ bool isEqual( const OUString& rStr1, const OUString& rStr2 ) const;
/** If string rStr1 matches the start of string rStr2, i.e. "a" in "aaa"
*/ bool isMatch( const OUString& rStr1, const OUString& rStr2 ) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.