scuffed-code/icu4c/source/i18n/unicode/udisplaycontext.h

116 lines
4.1 KiB
C

/*
*****************************************************************************************
* Copyright (C) 2012, International Business Machines
* Corporation and others. All Rights Reserved.
*****************************************************************************************
*/
#ifndef UDISPLAYCONTEXT_H
#define UDISPLAYCONTEXT_H
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
/* Dont hide with #ifndef U_HIDE_INTERNAL_API, needed by virtual methods */
/**
* Display context settings.
* Note, the specific numeric values are internal and may change.
* @internal ICU 50 technology preview
*/
enum UDisplayContext {
/**
* ================================
* DIALECT_HANDLING can be set to one of UDISPCTX_STANDARD_NAMES or
* UDISPCTX_DIALECT_NAMES. Use UDisplayContextType UDISPCTX_TYPE_DIALECT_HANDLING
* to get the value.
*/
/**
* A possible setting for DIALECT_HANDLING:
* use standard names when generating a locale name,
* e.g. en_GB displays as 'English (United Kingdom)'.
* @internal ICU 50 technology preview
*/
UDISPCTX_STANDARD_NAMES = 0,
/**
* A possible setting for DIALECT_HANDLING:
* use dialect names, when generating a locale name,
* e.g. en_GB displays as 'British English'.
* @internal ICU 50 technology preview
*/
UDISPCTX_DIALECT_NAMES = 1,
/**
* ================================
* CAPITALIZATION can be set to one of UDISPCTX_CAPITALIZATION_NONE,
* UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE,
* UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE,
* UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU, or
* UDISPCTX_CAPITALIZATION_FOR_STANDALONE.
* Use UDisplayContextType UDISPCTX_TYPE_CAPITALIZATION to get the value.
*/
/**
* The capitalization context to be used is unknown (this is the default value).
* @internal ICU 50 technology preview
*/
UDISPCTX_CAPITALIZATION_NONE = 0x100,
/**
* The capitalization context if a date, date symbol or display name is to be
* formatted with capitalization appropriate for the middle of a sentence.
* @internal ICU 50 technology preview
*/
UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = 0x101,
/**
* The capitalization context if a date, date symbol or display name is to be
* formatted with capitalization appropriate for the beginning of a sentence.
* @internal ICU 50 technology preview
*/
UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = 0x102,
/**
* The capitalization context if a date, date symbol or display name is to be
* formatted with capitalization appropriate for a user-interface list or menu item.
* @internal ICU 50 technology preview
*/
UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = 0x103,
/**
* The capitalization context if a date, date symbol or display name is to be
* formatted with capitalization appropriate for stand-alone usage such as an
* isolated name on a calendar page.
* @internal ICU 50 technology preview
*/
UDISPCTX_CAPITALIZATION_FOR_STANDALONE = 0x104
};
/**
* @internal ICU 50 technology preview
*/
typedef enum UDisplayContext UDisplayContext;
/* Dont hide with #ifndef U_HIDE_INTERNAL_API, needed by virtual methods */
/**
* Display context types, for getting values of a particular setting.
* Note, the specific numeric values are internal and may change.
* @internal ICU 50 technology preview
*/
enum UDisplayContextType {
/**
* Type to retrieve the dialect handling setting, e.g.
* UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES.
* @internal ICU 50 technology preview
*/
UDISPCTX_TYPE_DIALECT_HANDLING = 0,
/**
* Type to retrieve the capitalization context setting, e.g.
* UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE,
* UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, etc.
* @internal ICU 50 technology preview
*/
UDISPCTX_TYPE_CAPITALIZATION = 0x100
};
/**
* @internal ICU 50 technology preview
*/
typedef enum UDisplayContextType UDisplayContextType;
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif