|
LibreOffice
LibreOffice 26.2 SDK API Reference
|
provides locale-sensitive collation algorithms for string comparison. More...
import "XCollator.idl";
Public Member Functions | |
| long | compareSubstring ([in] string aStr1, [in] long nOff1, [in] long nLen1, [in] string aStr2, [in] long nOff2, [in] long nLen2) |
| Compare 2 substrings in specific locale and algorithm. | |
| long | compareString ([in] string aStr1, [in] string aStr2) |
| Compare 2 strings in specific locale and algorithm. | |
| long | loadDefaultCollator ([in] ::com::sun::star::lang::Locale aLocale, [in] long nCollatorOptions) |
| Load the collator with default algorithm defined in locale data. | |
| long | loadCollatorAlgorithm ([in] string aAlgorithmName, [in] ::com::sun::star::lang::Locale aLocale, [in] long nCollatorOptions) |
| Load a particular collator algorithm for the locale. | |
| sequence< string > | listCollatorAlgorithms ([in] ::com::sun::star::lang::Locale aLocale) |
| List all collator algorithms for a given locale. | |
| void | loadCollatorAlgorithmWithEndUserOption ([in] string aAlgorithmName, [in] ::com::sun::star::lang::Locale aLocale, [in] sequence< long > aCollatorOptions) |
| Load a collator algorithm with options chosen by end user. | |
| sequence< long > | listCollatorOptions ([in] string aAlgorithmName) |
| List all end user collator options for a given algorithm. | |
| Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. | |
| void | acquire () |
| increases the reference counter by one. | |
| void | release () |
| decreases the reference counter by one. | |
provides locale-sensitive collation algorithms for string comparison.
| long compareString | ( | [in] string | aStr1, |
| [in] string | aStr2 ) |
Compare 2 strings in specific locale and algorithm.
| aStr1 | First string. |
| aStr2 | Second string. |
| long compareSubstring | ( | [in] string | aStr1, |
| [in] long | nOff1, | ||
| [in] long | nLen1, | ||
| [in] string | aStr2, | ||
| [in] long | nOff2, | ||
| [in] long | nLen2 ) |
Compare 2 substrings in specific locale and algorithm.
| aStr1 | First string. |
| nOff1 | Offset (from 0) of the first string. |
| nLen1 | Length (from offset) of the first substring. |
| aStr2 | Second string |
| nOff2 | Offset (from 0) of the second string. |
| nLen2 | Length (from offset) of the second substring. |
| sequence< string > listCollatorAlgorithms | ( | [in] ::com::sun::star::lang::Locale | aLocale | ) |
List all collator algorithms for a given locale.
| aLocale | The locale for which to list algorithms. |
| sequence< long > listCollatorOptions | ( | [in] string | aAlgorithmName | ) |
List all end user collator options for a given algorithm.
| aAlgorithmName | The algorithm name for this collator. |
| long loadCollatorAlgorithm | ( | [in] string | aAlgorithmName, |
| [in] ::com::sun::star::lang::Locale | aLocale, | ||
| [in] long | nCollatorOptions ) |
Load a particular collator algorithm for the locale.
| aAlgorithmName | The algorithm to load. |
| aLocale | The locale for this collator. |
| nCollatorOptions | A mask of CollatorOptions. |
| void loadCollatorAlgorithmWithEndUserOption | ( | [in] string | aAlgorithmName, |
| [in] ::com::sun::star::lang::Locale | aLocale, | ||
| [in] sequence< long > | aCollatorOptions ) |
Load a collator algorithm with options chosen by end user.
| aAlgorithmName | The algorithm name to load. |
| aLocale | The locale for this collator. |
| aCollatorOptions | A sequence of end user collator options like those returned by XCollator::listCollatorOptions(). |
| long loadDefaultCollator | ( | [in] ::com::sun::star::lang::Locale | aLocale, |
| [in] long | nCollatorOptions ) |
Load the collator with default algorithm defined in locale data.
| aLocale | The locale for this collator. |
| nCollatorOptions | A mask of CollatorOptions. |