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

翻訳前ページへ


Interface XCharacterClassification
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

interface XCharacterClassification
Description
Character 分類 (upper, lower, digit, letter, number, ...) and generic Unicode enabled parser.
Developers Guide
OfficeDev - 器具/実施するing a New 地元の - XCharacterClassification
OfficeDev - Overview and Using the API - XCharacterClassification

Methods' 要約
toUpper 変える lower 事例/患者 alpha to upper 事例/患者 alpha, starting at position nPos for nCount code points.  
toLower 変える upper 事例/患者 alpha to lower 事例/患者 alpha, starting at position nPos for nCount code points.  
toTitle 変える to 肩書を与える 事例/患者, starting at position nPos for nCount code points.  
getType Get UnicodeType of character at position nPos
getCharacterDirection Get DirectionProperty of character at position nPos.  
getScript Get UnicodeScript of character at position nPos
getCharacterType Get KCharacterType of character at position nPos
getStringType Get 蓄積するd KCharacterTypes of string starting at position nPos of length nCount code points.  
parseAnyToken Parse a string for a 記念品 starting at position nPos.  
parsePredefinedToken Parse a string for a 記念品 of type nTokenType starting at position nPos.  
Methods' 詳細(に述べる)s
toUpper
string
toUpper( [in] string  aText,
[in] long  nPos,
[in] long  nCount,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
変える lower 事例/患者 alpha to upper 事例/患者 alpha, starting at position nPos for nCount code points.
toLower
string
toLower( [in] string  aText,
[in] long  nPos,
[in] long  nCount,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
変える upper 事例/患者 alpha to lower 事例/患者 alpha, starting at position nPos for nCount code points.
toTitle
string
toTitle( [in] string  aText,
[in] long  nPos,
[in] long  nCount,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
変える to 肩書を与える 事例/患者, starting at position nPos for nCount code points.
getType
short
getType( [in] string  aText,
[in] long  nPos );

Description
Get UnicodeType of character at position nPos.
getCharacterDirection
short
getCharacterDirection( [in] string  aText,
[in] long  nPos );

Description
Get DirectionProperty of character at position nPos.
getScript
short
getScript( [in] string  aText,
[in] long  nPos );

Description
Get UnicodeScript of character at position nPos.
getCharacterType
long
getCharacterType( [in] string  aText,
[in] long  nPos,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
Get KCharacterType of character at position nPos.
getStringType
long
getStringType( [in] string  aText,
[in] long  nPos,
[in] long  nCount,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale );

Description
Get 蓄積するd KCharacterTypes of string starting at position nPos of length nCount code points.
Returns
A number with appropriate 旗s 始める,決める to 示す what type of characters the string 含む/封じ込めるs, each 旗 value 存在 one of KCharacterType values.
parseAnyToken
ParseResult
parseAnyToken( [in] string  aText,
[in] long  nPos,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale,
[in] long  nStartCharFlags,
[in] string  aUserDefinedCharactersStart,
[in] long  nContCharFlags,
[in] string  aUserDefinedCharactersCont );

Description
Parse a string for a 記念品 starting at position nPos.

A 指名する or identifier must match the KParseTokens 基準 passed in nStartCharFlags and nContCharFlags and may additionally 含む/封じ込める characters of aUserDefinedCharactersStart and/or aUserDefinedCharactersCont.

Returns
A filled ParseResult structure. If no unambigous 記念品 could be parsed, ParseResult::TokenType will be 始める,決める to 0 (無), other fields will 含む/封じ込める the values parsed so far.

If a 記念品 may 代表する either a numeric value or a 指名する によれば the passed Start/Cont-旗s/Chars, both KParseType::ASC_NUM (or KParseType::UNI_NUM) and KParseType::IDENTNAME are 始める,決める in ParseResult::TokenType.

Parameter aText
Text to be parsed.
Parameter nPos
Position where parsing starts.
Parameter aLocale
The 地元の, for example, for decimal and group separator or character type 決意.
Parameter nStartCharFlags
A 始める,決める of KParseTokens constants 決定するing the 許すd characters a 指名する or identifier may start with.
Parameter aUserDefinedCharactersStart
A 始める,決める of additionally 許すd characters a 指名する or identifier may start with.
Parameter nContCharFlags
A 始める,決める of KParseTokens constants 決定するing the 許すd characters a 指名する or identifier may continue with.
Parameter aUserDefinedCharactersCont
A 始める,決める of additionally 許すd characters a 指名する or identifier may continue with.
Example
:C++
 using namespace ::com::sun::星/主役にする::i18n;
 // First character of an identifier may be any alphabetic or 強調する.
 sal_Int32 nStartFlags = KParseTokens::ANY_ALPHA | KParseTokens::ASC_UNDERSCORE;
 // Continuing characters may be any alphanumeric or 強調する or dot.
 sal_Int32 nContFlags = KParseTokens::ANY_ALNUM | KParseTokens::ASC_UNDERSCORE | KParseTokens::ASC_DOT;
 // No その上の characters assumed to be 含む/封じ込めるd in an identifier
 String aEmptyString;
 // Parse any 記念品.
 ParseResult rRes = xCC->parseAnyToken( aText, nPos, aLocale,
 nStartFlags, aEmptyString, nContFlags, aEmptyString );
 // Get parsed 記念品.
 if ( rRes.TokenType & (KParseType::ASC_NUMBER | KParseType::UNI_NUMBER) )
 fValue = rRes.Value;
 if ( rRes.TokenType & KParseType::IDENTNAME )
 aName = aText.Copy( nPos, rRes.EndPos - nPos );
 else if ( rRes.TokenType & KParseType::SINGLE_QUOTE_NAME )
 aName = rRes.DequotedNameOrString;
 else if ( rRes.TokenType & KParseType::DOUBLE_QUOTE_STRING )
 aString = rRes.DequotedNameOrString;
 else if ( rRes.TokenType & KParseType::BOOLEAN )
 aSymbol = aText.Copy( nPos, rRes.EndPos - nPos );
 else if ( rRes.TokenType & KParseType::ONE_SINGLE_CHAR )
 aSymbol = aText.Copy( nPos, rRes.EndPos - nPos );
 
parsePredefinedToken
ParseResult
parsePredefinedToken( [in] long  nTokenType,
[in] string  aText,
[in] long  nPos,
[in] ::com::sun::星/主役にする::lang::地元の  aLocale,
[in] long  nStartCharFlags,
[in] string  aUserDefinedCharactersStart,
[in] long  nContCharFlags,
[in] string  aUserDefinedCharactersCont );

Description
Parse a string for a 記念品 of type nTokenType starting at position nPos.

Other parameters are the same as in parseAnyToken. If the actual 記念品 does not match the passed nTokenType a ParseResult::TokenType 始める,決める to 0 (無) is returned.

Parameter nTokenType
One or more of the KParseType constants.
Example
:C++
 // 決定する if a given 指名する is a valid 指名する (not 引用するd) and 含む/封じ込めるs
 // only 許すd characters.
 using namespace ::com::sun::星/主役にする::i18n;
 // First character of an identifier may be any alphanumeric or 強調する.
 sal_Int32 nStartFlags = KParseTokens::ANY_ALNUM | KParseTokens::ASC_UNDERSCORE;
 // No その上の characters assumed to be 含む/封じ込めるd in an identifier start.
 String aEmptyString;
 // Continuing characters may be any alphanumeric or 強調する.
 sal_Int32 nContFlags = nStartFlags;
 // Additionally, continuing characters may 含む/封じ込める a blank.
 String aContChars( RTL_CONSTASCII_USTRINGPARAM(" ") );
 // Parse predefined (must be an IDENTNAME) 記念品.
 ParseResult rRes = xCC->parsePredefinedToken( KParseType::IDENTNAME, rName, 0, aLocale,
 nStartFlags, aEmptyString, nContFlags, aContChars );
 // 実験(する) if it is an identifier 指名する and if it only is one
 // and no more else is に引き続いて it.
 bValid = (rRes.TokenType & KParseType::IDENTNAME) && rRes.EndPos == rName.Len();
 
最高の,を越す 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.