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_1message2_1_1Selector.html below:

ICU 77.1: icu::message2::Selector Class Reference

Interface that selector classes must implement. More...

#include <messageformat2_function_registry.h>

Interface that selector classes must implement.

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

Definition at line 375 of file messageformat2_function_registry.h.

◆ ~Selector() virtual icu::message2::Selector::~Selector ( ) virtual

Destructor.

Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.
◆ selectKey()

Compares the input to an array of keys, and returns an array of matching keys sorted by preference.

Parameters
toFormat The unnamed function argument; passed by move. options A reference to the named function options. keys An array of strings that are compared to the input (context.getFormattableInput()) in an implementation-specific way. keysLen The length of keys. prefs An array of strings with length keysLen. The contents of the array is undefined. selectKey() should set the contents of prefs to a subset of keys, with the best match placed at the lowest index. prefsLen A reference that selectKey() should set to the length of prefs, which must be less than or equal to keysLen. status Input/output error code. Should not be set directly by the custom selector, which should use FormattingContext::setSelectorError() to signal errors. The custom selector may pass status to other ICU functions that can signal errors using this mechanism.
Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

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