このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XTransliteration
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: i18n ::

interface XTransliteration
Description
Character 転換s like 事例/患者 倍のing or Hiragana to Katakana.

Transliteration is a character to character 転換 but it is not always a one to one mapping between characters. Transliteration modules are まず第一に/本来 used by collation, and search and 取って代わる modules to 成し遂げる approximate search. It can also be used to 判型 the numbers in different numbering systems.

ーするために select transliteration modules for different 目的s, they are 分類するd with せいにするs of TransliterationType.

For Western languages there would be three transliteration modules 利用できる to compare two mixed 事例/患者 strings: upper to lower, lower to upper, and ignore 事例/患者.

A typical calling sequence of transliteration is

  1. getAvailableModules()
  2. loadModulesByImplNames()
  3. equals()
or another one is
  1. loadModule()
  2. transliterate()

Developers Guide
OfficeDev - Overview and Using the API - XTransliteration

Methods' 要約
getName Unique ASCII 指名する to identify a module. This 指名する is used to get its localized 指名する for menus, dialogs etc. The 行為 is undefined for TransliterationType::CASCADE modules.  
getType Return the せいにする(s) associated with this transliterator 反対する, as defined in TransliterationType. The value is 決定するd by the transliteration modules. For example, for UPPERCASE_LOWERCASE, a ONE_TO_ONE is returned, for IGNORE_CASE, IGNORE is returned.  
loadModule 負担 instance of predefined module - old style method.  
loadModuleNew 負担 a sequence of instances of predefined modules - supersedes method XTransliteration::loadModule().  
loadModuleByImplName 負担 instance of UNO 登録(する)d module.  
loadModulesByImplNames 負担 a sequence of instances of transliteration modules. 生産(高) of one module is feeded as input to the next module in the sequence. The 反対する created by this call has TransliterationType CASCADE and IGNORE types.  
getAvailableModules 名簿(に載せる)/表(にあげる) the 利用できる transliteration modules for a given 地元の. It can be filtered based on its type.  
transliterate Transliterate a substring. This method can be called if the 反対する doesn't have TransliterationType IGNORE せいにする.  
倍のing [ DEPRECATED ]
 
equals Match two substrings and find if they are 同等(の) as per this transliteration.  
transliterateRange Transliterate one 始める,決める of characters to another.  
compareSubstring Compare 2 substrings as per this transliteration. It translates both substrings before comparing them.  
compareString Compare 2 strings as per this transliteration. It translates both strings before comparing them.  
Methods' 詳細(に述べる)s
getName
string
getName();

Description
Unique ASCII 指名する to identify a module. This 指名する is used to get its localized 指名する for menus, dialogs etc. The 行為 is undefined for TransliterationType::CASCADE modules.
getType
short
getType();

Description
Return the せいにする(s) associated with this transliterator 反対する, as defined in TransliterationType. The value is 決定するd by the transliteration modules. For example, for UPPERCASE_LOWERCASE, a ONE_TO_ONE is returned, for IGNORE_CASE, IGNORE is returned.
loadModule
無効の
loadModule( [in] TransliterationModules  eModType,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
負担 instance of predefined module - old style method.
loadModuleNew
無効の
loadModuleNew( [in] sequence< TransliterationModulesNew >  aModType,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
負担 a sequence of instances of predefined modules - supersedes method XTransliteration::loadModule().
loadModuleByImplName
無効の
loadModuleByImplName( [in] string  aImplName,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
負担 instance of UNO 登録(する)d module.

Each transliteration module is 登録(する)d under a different service 指名する. The 条約 for the service 指名する is com.sun.星/主役にする.i18n.Transliteration.l10n.{implName}. The {implName} is a unique 指名する used to identify a module. The implName is used to get a localized 指名する for the transliteration module. The implName is used in 地元の data to 名簿(に載せる)/表(にあげる) the 利用できる transliteration modules for the 地元の. There are some transliteration modules that are always 利用できる. The 指名するs of those modules are 名簿(に載せる)/表(にあげる)d as enum TransliterationModules 指名するs. For modules not 名簿(に載せる)/表(にあげる)d there it is possible to 負担 them 直接/まっすぐに by their implName.

Parameter aImplName
The module's {implName} under which it is 登録(する)d with com.sun.星/主役にする.i18n.Transliteration.l10n.{implName}.
loadModulesByImplNames
無効の
loadModulesByImplNames( [in] sequence< string >  aImplNameList,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
負担 a sequence of instances of transliteration modules. 生産(高) of one module is feeded as input to the next module in the sequence. The 反対する created by this call has TransliterationType CASCADE and IGNORE types.
Parameter aImplNameList
Only IGNORE type modules can be 明示するd.
getAvailableModules
sequence< string >
getAvailableModules( [in] ::com::sun::星/主役にする::lang::地元の  aLocale,
[in] short  nType );

Description
名簿(に載せる)/表(にあげる) the 利用できる transliteration modules for a given 地元の. It can be filtered based on its type.
Parameter nType
A bitmask field of values defined in TransliterationType
transliterate
string
transliterate( [in] string  aInStr,
[in] long  nStartPos,
[in] long  nCount,
[out] sequence< long >  rOffset );

Description
Transliterate a substring. This method can be called if the 反対する doesn't have TransliterationType IGNORE せいにする.
Parameter aStr
The input string.
Parameter nStartPos
Start position within aStr from where transliteration starts.
Parameter nCount
Number of codepoints to be transliterated.
Parameter rOffset
To find the grapheme of input string corresponding to the grapheme of 生産(高) string, rOffset 供給するs the 相殺する array whose 索引 is the 相殺する of 生産(高) string, the element 含む/封じ込めるing the position within the input string before transliteration.
倍のing
string
倍のing( [in] string  aInStr,
[in] long  nStartPos,
[in] long  nCount,
[out] sequence< long >  rOffset );

Usage 制限s
deprecated
Deprecation Info
For 内部の use, this method is supported to get the "transliteration", which equals() is based on.
equals
boolean
equals( [in] string  aStr1,
[in] long  nPos1,
[in] long  nCount1,
[out] long  rMatch1,
[in] string  aStr2,
[in] long  nPos2,
[in] long  nCount2,
[out] long  rMatch2 );

Description
Match two substrings and find if they are 同等(の) as per this transliteration.

This method can be called if the 反対する has TransliterationType IGNORE せいにする.

Returns the number of matched code points in any 事例/患者, even if strings are not equal, for example:
equals( "a", 0, 1, nMatch1, "aaa", 0, 3, nMatch2 )
returns 誤った and nMatch:=1 and nMatch2:=1
equals( "aab", 0, 3, nMatch1, "aaa", 0, 3, nMatch2 )
returns 誤った and nMatch:=2 and nMatch2:=2

Parameter aStr1
First string to match.
Parameter nPos1
Start position within aStr1.
Parameter nCount1
Number of code points to use of aStr1.
Parameter rMatch1
Returns number of matched code points in aStr1.
Parameter aStr2
Second string to match.
Parameter nPos2
Start position within aStr2.
Parameter nCount2
Number of code points to use of aStr2.
Parameter rMatch2
Returns number of matched code points in aStr2.
Returns
true if the substrings are equal per this transliteration
誤った else.
transliterateRange
sequence< string >
transliterateRange( [in] string  aStr1,
[in] string  aStr2 );

Description
Transliterate one 始める,決める of characters to another.

This method is ーするつもりであるd for getting corresponding 範囲s and can be called if the 反対する has TransliterationType IGNORE せいにする.

For example: generic CASE_IGNORE transliterateRange( "a", "i" ) returns {"A","I","a","i"}, transliterateRange( "a", "a" ) returns {"A","A","a","a"}.

Use this transliteration to create 正規の/正選手 expresssions like [a-i] --> [A-Ia-i].

Returns
String sequence 含む/封じ込めるing corresponding transliterated pairs of characters to 代表する a 範囲.
compareSubstring
long
compareSubstring( [in] string  aStr1,
[in] long  nOff1,
[in] long  nLen1,
[in] string  aStr2,
[in] long  nOff2,
[in] long  nLen2 );

Description
Compare 2 substrings as per this transliteration. It translates both substrings before comparing them.
Parameter aStr1
First string.
Parameter nOff1
相殺する (from 0) of the first substring.
Parameter nLen1
Length (from 相殺する) of the first substring.
Parameter aStr2
Second string.
Parameter nOff2
相殺する (from 0) of the second substring.
Parameter nLen2
Length (from 相殺する) of the second substring.
Returns
1 if the first substring is greater than the second substring
0 if the first substring is equal to the second substring
-1 if the first substring is いっそう少なく than the second substring
compareString
long
compareString( [in] string  aStr1,
[in] string  aStr2 );

Description
Compare 2 strings as per this transliteration. It translates both strings before comparing them.
Returns
1 if the first string is greater than the second string
0 if the first string is equal to the second string
-1 if the first string is いっそう少なく than the second string
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.