Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
Methods' Details
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 in specific locale and algorithm.
Parameter aStr1
First string.
Parameter nOff1
Offset (from 0) of the first string.
Parameter nLen1
Length (from offset) of the first substring.
Parameter aStr2
Second string
Parameter nOff2
Offset (from 0) of the second string.
Parameter nLen2
Length (from offset) of the second substring.
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 less than the second string
compareString
long
compareString (
[in] string
aStr1,
[in] string
aStr2 );
Description
Compare 2 strings in specific locale and algorithm.
Parameter aStr1
First string.
Parameter aStr2
Second string.
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 less than the second string
loadDefaultCollator
long
loadDefaultCollator (
[in] ::com::sun::star::lang ::Locale
aLocale,
[in] long
nCollatorOptions );
Description
Load the collator with default algorithm defined in
locale data.
Parameter aLocale
The locale for this collator.
Parameter nCollatorOptions
A mask of CollatorOptions .
Returns
Returns 0 when loading was successful,
otherwise throws runtime exception. In fact the return value
should be ignored and the exception be caught instead.
loadCollatorAlgorithm
long
loadCollatorAlgorithm (
[in] string
aAlgorithmName,
[in] ::com::sun::star::lang ::Locale
aLocale,
[in] long
nCollatorOptions );
Description
Load a particular collator algorithm for the locale.
Parameter aAlgorithmName
The algorithm to load.
Parameter aLocale
The locale for this collator.
Parameter nCollatorOptions
A mask of CollatorOptions .
Returns
Returns 0 when loading was successful,
otherwise throws runtime exception.
listCollatorAlgorithms
sequence< string >
listCollatorAlgorithms (
[in] ::com::sun::star::lang ::Locale
aLocale );
Description
List all collator algorithms for a given locale.
Parameter aLocale
The locale for which to list algorithms.
Returns
A sequence of algorithm names.
loadCollatorAlgorithmWithEndUserOption
void
loadCollatorAlgorithmWithEndUserOption (
[in] string
aAlgorithmName,
[in] ::com::sun::star::lang ::Locale
aLocale,
[in] sequence< long >
aCollatorOptions );
Description
Load a collator algorithm with options chosen by end user.
Parameter aAlgorithmName
The algorithm name to load.
Parameter aLocale
The locale for this collator.
Parameter aCollatorOptions
A sequence of end user collator options like those returned
by XCollator ::listCollatorOptions() .
listCollatorOptions
sequence< long >
listCollatorOptions (
[in] string
aAlgorithmName );
Description
List all end user collator options for a given algorithm.
Parameter aAlgorithmName
The algorithm name for this collator.
Returns
An array of end user options available for the algorithm.
Top of Page Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.