LibreOffice Module linguistic (master) 1
Namespaces | Functions | Variables
misc.cxx File Reference
#include <memory>
#include <optional>
#include <sal/log.hxx>
#include <svl/lngmisc.hxx>
#include <ucbhelper/content.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XFastPropertySet.hpp>
#include <com/sun/star/beans/PropertyValues.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/linguistic2/DictionaryType.hpp>
#include <com/sun/star/linguistic2/DictionaryList.hpp>
#include <com/sun/star/linguistic2/LinguProperties.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Reference.h>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <unotools/charclass.hxx>
#include <unotools/linguprops.hxx>
#include <unotools/localedatawrapper.hxx>
#include <svtools/strings.hrc>
#include <unotools/resmgr.hxx>
#include <linguistic/misc.hxx>
#include <linguistic/hyphdta.hxx>
Include dependency graph for misc.cxx:

Go to the source code of this file.

Namespaces

namespace  linguistic
 

Functions

osl::Mutex & linguistic::GetLinguMutex ()
 ! multi-thread safe mutex for all platforms !! More...
 
const LocaleDataWrapperlinguistic::GetLocaleDataWrapper (LanguageType nLang)
 
LanguageType linguistic::LinguLocaleToLanguage (const css::lang::Locale &rLocale)
 Convert Locale to LanguageType for legacy handling. More...
 
css::lang::Locale linguistic::LinguLanguageToLocale (LanguageType nLanguage)
 Convert LanguageType to Locale for legacy handling. More...
 
bool linguistic::LinguIsUnspecified (LanguageType nLanguage)
 Checks if a LanguageType is one of the values that denote absence of language or undetermined language or multiple languages, in short all values used in linguistic context that do not denote a specific language. More...
 
bool linguistic::LinguIsUnspecified (std::u16string_view rBcp47)
 The same as LinguIsUnspecified(LanguageType) but taking a BCP 47 language tag string instead. More...
 
static sal_Int32 linguistic::Minimum (sal_Int32 n1, sal_Int32 n2, sal_Int32 n3)
 
sal_Int32 linguistic::LevDistance (std::u16string_view rTxt1, std::u16string_view rTxt2)
 
bool linguistic::IsUseDicList (const PropertyValues &rProperties, const uno::Reference< XPropertySet > &rxProp)
 
bool linguistic::IsIgnoreControlChars (const PropertyValues &rProperties, const uno::Reference< XPropertySet > &rxProp)
 
static bool linguistic::lcl_HasHyphInfo (const uno::Reference< XDictionaryEntry > &xEntry)
 
uno::Reference< XDictionaryEntry > linguistic::SearchDicList (const uno::Reference< XSearchableDictionaryList > &xDicList, const OUString &rWord, LanguageType nLanguage, bool bSearchPosDics, bool bSearchSpellEntry)
 
bool linguistic::SaveDictionaries (const uno::Reference< XSearchableDictionaryList > &xDicList)
 
DictionaryError linguistic::AddEntryToDic (uno::Reference< XDictionary > const &rxDic, const OUString &rWord, bool bIsNeg, const OUString &rRplcTxt, bool bStripDot)
 
std::vector< LanguageTypelinguistic::LocaleSeqToLangVec (uno::Sequence< Locale > const &rLocaleSeq)
 
uno::Sequence< sal_Int16 > linguistic::LocaleSeqToLangSeq (uno::Sequence< Locale > const &rLocaleSeq)
 
bool linguistic::IsReadOnly (const OUString &rURL, bool *pbExist)
 
static bool linguistic::GetAltSpelling (sal_Int16 &rnChgPos, sal_Int16 &rnChgLen, OUString &rRplc, uno::Reference< XHyphenatedWord > const &rxHyphWord)
 
static sal_Int16 linguistic::GetOrigWordPos (std::u16string_view rOrigWord, sal_Int16 nPos)
 
sal_Int32 linguistic::GetPosInWordToCheck (std::u16string_view rTxt, sal_Int32 nPos)
 
uno::Reference< XHyphenatedWord > linguistic::RebuildHyphensAndControlChars (const OUString &rOrigWord, uno::Reference< XHyphenatedWord > const &rxHyphWord)
 
bool linguistic::IsUpper (const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, LanguageType nLanguage)
 
CapType linguistic::capitalType (const OUString &aTerm, CharClass const *pCC)
 
bool linguistic::HasDigits (const OUString &rText)
 
bool linguistic::IsNumeric (std::u16string_view rText)
 
uno::Reference< XLinguProperties > linguistic::GetLinguProperties ()
 
uno::Reference< XSearchableDictionaryList > linguistic::GetDictionaryList ()
 
uno::Reference< XDictionary > linguistic::GetIgnoreAllList ()
 

Variables

const sal_uInt32 linguistic::the_aDigitZeroes []
 

Variable Documentation

◆ n1

int n1
private

Definition at line 118 of file misc.cxx.

Referenced by linguistic::Minimum().

◆ n2

int n2
private

Definition at line 118 of file misc.cxx.

Referenced by linguistic::Minimum().

◆ pData

std::unique_ptr<sal_Int32[]> pData
private

Definition at line 117 of file misc.cxx.