|
LibreOffice
LibreOffice 25.2 SDK API Reference
|
Character classification (upper, lower, digit, letter, number, ...) and generic Unicode enabled parser. More...
import"XCharacterClassification.idl";
Public Member Functions | |
| string | toUpper ([in] string aText, [in] long nPos, [in] long nCount, [in] com::sun::star::lang::Locale aLocale) |
| Convert lower case alpha to upper case alpha, starting at position nPos for nCount code points. More... | |
| string | toLower ([in] string aText, [in] long nPos, [in] long nCount, [in] com::sun::star::lang::Locale aLocale) |
| Convert upper case alpha to lower case alpha, starting at position nPos for nCount code points. More... | |
| string | toTitle ([in] string aText, [in] long nPos, [in] long nCount, [in] com::sun::star::lang::Locale aLocale) |
| Convert to title case, starting at position nPos for nCount code points. More... | |
| short | getType ([in] string aText, [in] long nPos) |
| Get UnicodeType of character at position nPos. More... | |
| short | getCharacterDirection ([in] string aText, [in] long nPos) |
| Get DirectionProperty of character at position nPos. More... | |
| short | getScript ([in] string aText, [in] long nPos) |
| Get UnicodeScript of character at position nPos. More... | |
| long | getCharacterType ([in] string aText, [in] long nPos, [in] com::sun::star::lang::Locale aLocale) |
| Get KCharacterType of character at position nPos. More... | |
| long | getStringType ([in] string aText, [in] long nPos, [in] long nCount, [in] com::sun::star::lang::Locale aLocale) |
| Get accumulated KCharacterTypes of string starting at position nPos of length nCount code points. More... | |
| ParseResult | parseAnyToken ([in] string aText, [in] long nPos, [in] com::sun::star::lang::Locale aLocale, [in] long nStartCharFlags, [in] string aUserDefinedCharactersStart, [in] long nContCharFlags, [in] string aUserDefinedCharactersCont) |
| Parse a string for a token starting at position nPos. More... | |
| ParseResult | parsePredefinedToken ([in] long nTokenType, [in] string aText, [in] long nPos, [in] com::sun::star::lang::Locale aLocale, [in] long nStartCharFlags, [in] string aUserDefinedCharactersStart, [in] long nContCharFlags, [in] string aUserDefinedCharactersCont) |
| Parse a string for a token of type nTokenType starting at position nPos. More... | |
Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. More... | |
| void | acquire () |
| increases the reference counter by one. More... | |
| void | release () |
| decreases the reference counter by one. More... | |
Character classification (upper, lower, digit, letter, number, ...) and generic Unicode enabled parser.
| short getCharacterDirection | ( | [in] string | aText, |
| [in] long | nPos | ||
| ) |
Get DirectionProperty of character at position nPos.
| long getCharacterType | ( | [in] string | aText, |
| [in] long | nPos, | ||
| [in] com::sun::star::lang::Locale | aLocale | ||
| ) |
Get KCharacterType of character at position nPos.
| short getScript | ( | [in] string | aText, |
| [in] long | nPos | ||
| ) |
Get UnicodeScript of character at position nPos.
| long getStringType | ( | [in] string | aText, |
| [in] long | nPos, | ||
| [in] long | nCount, | ||
| [in] com::sun::star::lang::Locale | aLocale | ||
| ) |
Get accumulated KCharacterTypes of string starting at position nPos of length nCount code points.
| short getType | ( | [in] string | aText, |
| [in] long | nPos | ||
| ) |
Get UnicodeType of character at position nPos.
| ParseResult parseAnyToken | ( | [in] string | aText, |
| [in] long | nPos, | ||
| [in] com::sun::star::lang::Locale | aLocale, | ||
| [in] long | nStartCharFlags, | ||
| [in] string | aUserDefinedCharactersStart, | ||
| [in] long | nContCharFlags, | ||
| [in] string | aUserDefinedCharactersCont | ||
| ) |
Parse a string for a token starting at position nPos.
A name or identifier must match the KParseTokens criteria passed in nStartCharFlags and nContCharFlags and may additionally contain characters of aUserDefinedCharactersStart and/or aUserDefinedCharactersCont.
If a token may represent either a numeric value or a name according to the passed Start/Cont-Flags/Chars, both KParseType::ASC_NUM (or KParseType::UNI_NUM) and KParseType::IDENTNAME are set in ParseResult::TokenType.
| aText | Text to be parsed. |
| nPos | Position where parsing starts. |
| aLocale | The locale, for example, for decimal and group separator or character type determination. |
| nStartCharFlags | A set of KParseTokens constants determining the allowed characters a name or identifier may start with. |
| aUserDefinedCharactersStart | A set of additionally allowed characters a name or identifier may start with. |
| nContCharFlags | A set of KParseTokens constants determining the allowed characters a name or identifier may continue with. |
| aUserDefinedCharactersCont | A set of additionally allowed characters a name or identifier may continue with. |
| ParseResult parsePredefinedToken | ( | [in] long | nTokenType, |
| [in] string | aText, | ||
| [in] long | nPos, | ||
| [in] com::sun::star::lang::Locale | aLocale, | ||
| [in] long | nStartCharFlags, | ||
| [in] string | aUserDefinedCharactersStart, | ||
| [in] long | nContCharFlags, | ||
| [in] string | aUserDefinedCharactersCont | ||
| ) |
Parse a string for a token of type nTokenType starting at position nPos.
Other parameters are the same as in parseAnyToken(). If the actual token does not match the passed nTokenType a ParseResult::TokenType set to 0 (zero) is returned.
| nTokenType | One or more of the KParseType constants. |
| aText | See parseAnyToken |
| nPos | See parseAnyToken |
| aLocale | See parseAnyToken |
| nStartCharFlags | See parseAnyToken |
| aUserDefinedCharactersStart | See parseAnyToken |
| nContCharFlags | See parseAnyToken |
| aUserDefinedCharactersCont | See parseAnyToken |
| string toLower | ( | [in] string | aText, |
| [in] long | nPos, | ||
| [in] long | nCount, | ||
| [in] com::sun::star::lang::Locale | aLocale | ||
| ) |
Convert upper case alpha to lower case alpha, starting at position nPos for nCount code points.
| string toTitle | ( | [in] string | aText, |
| [in] long | nPos, | ||
| [in] long | nCount, | ||
| [in] com::sun::star::lang::Locale | aLocale | ||
| ) |
Convert to title case, starting at position nPos for nCount code points.
| string toUpper | ( | [in] string | aText, |
| [in] long | nPos, | ||
| [in] long | nCount, | ||
| [in] com::sun::star::lang::Locale | aLocale | ||
| ) |
Convert lower case alpha to upper case alpha, starting at position nPos for nCount code points.
1.8.14