A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1ExternalBreakEngine.html below:

ICU 77.1: icu::ExternalBreakEngine Class Reference

The ExternalBreakEngine class define an abstract interface for the host environment to provide a low level facility to break text for unicode text in script that the text boundary cannot be handled by upper level rule based logic, for example, for Chinese and Japanese word breaking, Thai, Khmer, Burmese, Lao and other Southeast Asian scripts. More...

#include <rbbi.h>

The ExternalBreakEngine class define an abstract interface for the host environment to provide a low level facility to break text for unicode text in script that the text boundary cannot be handled by upper level rule based logic, for example, for Chinese and Japanese word breaking, Thai, Khmer, Burmese, Lao and other Southeast Asian scripts.

The host environment implement one or more subclass of ExternalBreakEngine and register them in the initialization time by calling RuleBasedBreakIterator::registerExternalBreakEngine(). ICU adopt and own the engine and will delete the registered external engine in proper time during the clean up event.

Internal:
Do not use. This API is for internal use only. ICU 74 technology preview

Definition at line 60 of file rbbi.h.

◆ ~ExternalBreakEngine() virtual icu::ExternalBreakEngine::~ExternalBreakEngine ( ) inlinevirtual

destructor

Internal:
Do not use.

This API is for internal use only. ICU 74 technology preview

Definition at line 66 of file rbbi.h.

◆ fillBreaks() virtual int32_t icu::ExternalBreakEngine::fillBreaks ( UTexttext, int32_t  start, int32_t  end, int32_t *  foundBreaks, int32_t  foundBreaksCapacity, UErrorCodestatus  ) const pure virtual

Divide up a range of text handled by this break engine.

Parameters
text A UText representing the text start The start of the range of known characters end The end of the range of known characters foundBreaks Output of C array of int32_t break positions, or nullptr foundBreaksCapacity The capacity of foundBreaks status Information on any errors encountered.
Returns
The number of breaks found
Internal:
Do not use. This API is for internal use only. ICU 74 technology preview
◆ handles() virtual bool icu::ExternalBreakEngine::handles ( UChar32  c ) const pure virtual

Indicate whether this engine handles a particular character.This method is used by the RuleBasedBreakIterator after it already find a break engine to see which characters after the first one can be handled by this break engine.

Parameters
c A character that the engine might handle.
Returns
true if this engine handles the particular character.
Internal:
Do not use. This API is for internal use only. ICU 74 technology preview
◆ isFor() virtual bool icu::ExternalBreakEngine::isFor ( UChar32  c, const char *  locale  ) const pure virtual

Indicate whether this engine handles a particular character when the RuleBasedBreakIterator is used for a particular locale. This method is used by the RuleBasedBreakIterator to find a break engine.

Parameters
c A character which begins a run that the engine might handle. locale The locale.
Returns
true if this engine handles the particular character for that locale.
Internal:
Do not use. This API is for internal use only. ICU 74 technology preview

The documentation for this class was generated from the following file:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4