LibreOffice
LibreOffice 7.4 SDK API Reference
XCollator.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef __com_sun_star_i18n_XCollator_idl__
20 #define __com_sun_star_i18n_XCollator_idl__
21 
25 
26 module com { module sun { module star { module i18n {
27 
32 {
58  long compareSubstring( [in] string aStr1, [in] long nOff1, [in] long nLen1,
59  [in] string aStr2, [in] long nOff2, [in] long nLen2 );
60 
74  long compareString( [in] string aStr1, [in] string aStr2 );
75 
91  [in] long nCollatorOptions );
92 
108  long loadCollatorAlgorithm( [in] string aAlgorithmName,
109  [in] ::com::sun::star::lang::Locale aLocale,
110  [in] long nCollatorOptions );
111 
120  sequence <string> listCollatorAlgorithms(
121  [in] ::com::sun::star::lang::Locale aLocale );
122 
136  [in] string aAlgorithmName,
137  [in] ::com::sun::star::lang::Locale aLocale,
138  [in] sequence<long> aCollatorOptions );
139 
148  sequence <long> listCollatorOptions( [in] string aAlgorithmName );
149 
150 };
151 
152 
153 }; }; }; };
154 
155 
156 #endif
157 
158 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
provides locale-sensitive collation algorithms for string comparison.
Definition: XCollator.idl:32
long loadCollatorAlgorithm([in] string aAlgorithmName, [in] ::com::sun::star::lang::Locale aLocale, [in] long nCollatorOptions)
Load a particular collator algorithm for the locale.
sequence< long > listCollatorOptions([in] string aAlgorithmName)
List all end user collator options for a given algorithm.
long compareString([in] string aStr1, [in] string aStr2)
Compare 2 strings in specific locale and algorithm.
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.
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 loadDefaultCollator([in] ::com::sun::star::lang::Locale aLocale, [in] long nCollatorOptions)
Load the collator with default algorithm defined in locale data.
sequence< string > listCollatorAlgorithms([in] ::com::sun::star::lang::Locale aLocale)
List all collator algorithms for a given locale.
base interface of all UNO interfaces
Definition: XInterface.idl:48
Definition: Ambiguous.idl:22
object represents a specific geographical, political, or cultural region.
Definition: Locale.idl:38