LibreOffice
LibreOffice 26.2 SDK API Reference
Loading...
Searching...
No Matches
XBreakIterator.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
20
21module com { module sun { module star { module i18n {
22
23
30
32{
59 long nextCharacters( [in] string aText, [in] long nStartPos,
61 [in] short nCharacterIteratorMode,
62 [in] long nCount, [out] long nDone );
63
91 long previousCharacters( [in] string aText, [in] long nStartPos,
93 [in] short nCharacterIteratorMode,
94 [in] long nCount, [out] long nDone );
95
115 Boundary nextWord( [in] string aText, [in] long nStartPos,
117 [in] short nWordType);
118
157 Boundary previousWord( [in] string aText, [in] long nStartPos,
159 [in] short nWordType);
160
193 Boundary getWordBoundary( [in] string aText, [in] long nPos,
195 [in] short nWordType,
196 [in] boolean bPreferForward );
197
208 short getWordType( [in] string aText, [in] long nPos,
209 [in] ::com::sun::star::lang::Locale aLocale);
210
220 boolean isBeginWord( [in] string aText, [in] long nPos,
222 [in] short nWordType);
223
226 boolean isEndWord( [in] string aText, [in] long nPos,
228 [in] short nWordType);
229
245 long beginOfSentence( [in] string aText, [in] long nStartPos,
246 [in] ::com::sun::star::lang::Locale aLocale );
247
263 long endOfSentence( [in] string aText, [in] long nStartPos,
264 [in] ::com::sun::star::lang::Locale aLocale );
265
296 LineBreakResults getLineBreak( [in] string aText, [in] long nStartPos,
298 [in] long nMinBreakPos,
299 [in] LineBreakHyphenationOptions aHyphOptions,
300 [in] LineBreakUserOptions aUserOptions );
301
317 long beginOfScript( [in] string aText, [in] long nStartPos,
318 [in] short nScriptType );
319
335 long endOfScript( [in] string aText, [in] long nStartPos,
336 [in] short nScriptType );
337
353 long nextScript( [in] string aText, [in] long nStartPos,
354 [in] short nScriptType );
355
371 long previousScript( [in] string aText, [in] long nStartPos,
372 [in] short nScriptType );
373
385 short getScriptType( [in] string aText, [in] long nPos);
386
405 long beginOfCharBlock( [in] string aText, [in] long nStartPos,
407 [in] short nCharType );
408
427 long endOfCharBlock( [in] string aText, [in] long nStartPos,
429 [in] short nCharType );
430
449 long nextCharBlock( [in] string aText, [in] long nStartPos,
451 [in] short nCharType );
452
471 long previousCharBlock ( [in] string aText, [in] long nStartPos,
473 [in] short nCharType );
474};
475
476}; }; }; };
477
478/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
contains the base routines for iteration in Unicode string.
Definition XBreakIterator.idl:32
long previousScript([in] string aText, [in] long nStartPos, [in] short nScriptType)
Traverses in Text from nStartPos to the previous start of the specified script type.
long beginOfCharBlock([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nCharType)
Traverses in Text from nStartPos to the beginning of the specified character type.
short getScriptType([in] string aText, [in] long nPos)
Get the script type of the character at position nPos.
Boundary nextWord([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nWordType)
Traverses one word in Text from nStartPos forwards.
long previousCharacters([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nCharacterIteratorMode, [in] long nCount, [out] long nDone)
Traverses specified number of characters/cells in Text from nStartPos backwards.
long endOfCharBlock([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nCharType)
Traverses in Text from nStartPos to the end of the specified character type.
long beginOfScript([in] string aText, [in] long nStartPos, [in] short nScriptType)
Traverses in Text from nStartPos to the beginning of the specified script type.
long nextCharacters([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nCharacterIteratorMode, [in] long nCount, [out] long nDone)
Traverses specified number of characters/cells in Text from nStartPos forwards.
long endOfScript([in] string aText, [in] long nStartPos, [in] short nScriptType)
Traverses in Text from nStartPos to the end of the specified script type.
LineBreakResults getLineBreak([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] long nMinBreakPos, [in] LineBreakHyphenationOptions aHyphOptions, [in] LineBreakUserOptions aUserOptions)
Calculate the line break position in the Text from the specified nStartPos.
Boundary getWordBoundary([in] string aText, [in] long nPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nWordType, [in] boolean bPreferForward)
Identifies StartPos and EndPos of current word.
long endOfSentence([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale)
Traverses in Text from nStartPos to the end of a sentence.
long nextScript([in] string aText, [in] long nStartPos, [in] short nScriptType)
Traverses in Text from nStartPos to the next start of the specified script type.
long nextCharBlock([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nCharType)
Traverses in Text from nStartPos to the next start of the specified character type.
short getWordType([in] string aText, [in] long nPos, [in] ::com::sun::star::lang::Locale aLocale)
Boundary previousWord([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nWordType)
Traverses one word in Text from nStartPos backwards.
long beginOfSentence([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale)
Traverses in Text from nStartPos to the start of a sentence.
boolean isEndWord([in] string aText, [in] long nPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nWordType)
If a word ends at position nPos.
long previousCharBlock([in] string aText, [in] long nStartPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nCharType)
Traverses in Text from nStartPos to the previous start of the specified character type.
boolean isBeginWord([in] string aText, [in] long nPos, [in] ::com::sun::star::lang::Locale aLocale, [in] short nWordType)
If a word starts at position nPos.
base interface of all UNO interfaces
Definition XInterface.idl:46
Definition Ambiguous.idl:20
contains start and end position of a word.
Definition Boundary.idl:33
Hyphenation options passed in calls to XBreakIterator::getLineBreak().
Definition LineBreakHyphenationOptions.idl:27
Results of method XBreakIterator::getLineBreak().
Definition LineBreakResults.idl:27
Line break options passed in calls to XBreakIterator::getLineBreak().
Definition LineBreakUserOptions.idl:27
object represents a specific geographical, political, or cultural region.
Definition Locale.idl:34