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();
|
|
Copyright © 2013, The Apache ソフトウェア 創立/基礎, Licensed under the Apache License, 見解/翻訳/版 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache ソフトウェア 創立/基礎. Other 指名するs may be trademarks of their 各々の owners.