LibreOffice Module linguistic (master) 1
Macros | Functions | Variables
hhconvdic.cxx File Reference
#include <unicode/uscript.h>
#include <i18nlangtag/lang.h>
#include <osl/mutex.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/linguistic2/ConversionDictionaryType.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include "hhconvdic.hxx"
#include <linguistic/misc.hxx>
#include <com/sun/star/i18n/UnicodeScript.hpp>
Include dependency graph for hhconvdic.cxx:

Go to the source code of this file.

Macros

#define SCRIPT_OTHERS   0
 
#define SCRIPT_HANJA   1
 
#define SCRIPT_HANGUL   2
 

Functions

static sal_Int16 checkScriptType (sal_Unicode c)
 
static bool TextIsAllScriptType (std::u16string_view rTxt, sal_Int16 nScriptType)
 

Variables

constexpr OUStringLiteral SN_HH_CONV_DICTIONARY = u"com.sun.star.linguistic2.HangulHanjaConversionDictionary"
 

Macro Definition Documentation

◆ SCRIPT_HANGUL

#define SCRIPT_HANGUL   2

Definition at line 49 of file hhconvdic.cxx.

◆ SCRIPT_HANJA

#define SCRIPT_HANJA   1

Definition at line 48 of file hhconvdic.cxx.

◆ SCRIPT_OTHERS

#define SCRIPT_OTHERS   0

Definition at line 47 of file hhconvdic.cxx.

Function Documentation

◆ checkScriptType()

static sal_Int16 checkScriptType ( sal_Unicode  c)
static
Exceptions
RuntimeException

Definition at line 53 of file hhconvdic.cxx.

References SCRIPT_HANGUL, SCRIPT_HANJA, and SCRIPT_OTHERS.

Referenced by TextIsAllScriptType().

◆ TextIsAllScriptType()

static bool TextIsAllScriptType ( std::u16string_view  rTxt,
sal_Int16  nScriptType 
)
static

Definition at line 66 of file hhconvdic.cxx.

References checkScriptType(), and i.

Referenced by HHConvDic::addEntry().

Variable Documentation

◆ SN_HH_CONV_DICTIONARY

constexpr OUStringLiteral SN_HH_CONV_DICTIONARY = u"com.sun.star.linguistic2.HangulHanjaConversionDictionary"
constexpr

Definition at line 40 of file hhconvdic.cxx.

Referenced by HHConvDic::getSupportedServiceNames().