ICU-4524 fix enums so that documentation can be generated
X-SVN-Rev: 18074
This commit is contained in:
parent
a4bb8cd4b8
commit
7d1b182fc4
@ -185,7 +185,7 @@
|
||||
*/
|
||||
|
||||
/** The possible types of text boundaries. @stable ICU 2.0 */
|
||||
typedef enum UBreakIteratorType {
|
||||
typedef enum {
|
||||
/** Character breaks @stable ICU 2.0 */
|
||||
UBRK_CHARACTER,
|
||||
/** Word breaks @stable ICU 2.0 */
|
||||
@ -223,7 +223,7 @@ typedef enum UBreakIteratorType {
|
||||
* than for single individual values.
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum UWordBreak {
|
||||
typedef enum {
|
||||
/** Tag value for "words" that do not fit into any of other categories.
|
||||
* Includes spaces and most punctuation. */
|
||||
UBRK_WORD_NONE = 0,
|
||||
@ -256,7 +256,7 @@ typedef enum UWordBreak {
|
||||
* than for single individual values.
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
typedef enum ULineBreakTag {
|
||||
typedef enum {
|
||||
/** Tag value for soft line breaks, positions at which a line break
|
||||
* is acceptable but not required */
|
||||
UBRK_LINE_SOFT = 0,
|
||||
@ -278,7 +278,7 @@ typedef enum ULineBreakTag {
|
||||
* than for single individual values.
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
typedef enum USentenceBreakTag {
|
||||
typedef enum {
|
||||
/** Tag value for for sentences ending with a sentence terminator
|
||||
* ('.', '?', '!', etc.) character, possibly followed by a
|
||||
* hard separator (CR, LF, PS, etc.)
|
||||
|
@ -171,7 +171,7 @@ U_CDECL_BEGIN
|
||||
* @see u_getUnicodeVersion
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef enum UProperty {
|
||||
typedef enum {
|
||||
/* See note !!. Comments of the form "Binary property Dash",
|
||||
"Enumerated property Script", "Double property Numeric_Value",
|
||||
and "String property Age" are read by genpname. */
|
||||
@ -575,8 +575,7 @@ typedef enum UProperty {
|
||||
* See http://www.unicode.org/Public/UNIDATA/UnicodeData.html .
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UCharCategory
|
||||
{
|
||||
typedef enum {
|
||||
/** See note !!. Comments of the form "Cn" are read by genpname. */
|
||||
|
||||
/** Non-category for unassigned and non-character code points. @stable ICU 2.0 */
|
||||
@ -761,7 +760,7 @@ typedef enum UCharCategory
|
||||
* This specifies the language directional property of a character set.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UCharDirection {
|
||||
typedef enum {
|
||||
/** See note !!. Comments of the form "EN" are read by genpname. */
|
||||
|
||||
/** L @stable ICU 2.0 */
|
||||
@ -1250,7 +1249,7 @@ typedef enum UBlockCode UBlockCode;
|
||||
* @see u_getIntPropertyValue
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum UEastAsianWidth {
|
||||
typedef enum {
|
||||
U_EA_NEUTRAL, /*[N]*/ /*See note !!*/
|
||||
U_EA_AMBIGUOUS, /*[A]*/
|
||||
U_EA_HALFWIDTH, /*[H]*/
|
||||
@ -1275,7 +1274,7 @@ typedef enum UEastAsianWidth {
|
||||
* @see u_charName
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UCharNameChoice {
|
||||
typedef enum {
|
||||
U_UNICODE_CHAR_NAME,
|
||||
U_UNICODE_10_CHAR_NAME,
|
||||
U_EXTENDED_CHAR_NAME,
|
||||
@ -1295,7 +1294,7 @@ typedef enum UCharNameChoice {
|
||||
* @see u_getPropertyValueName()
|
||||
* @stable ICU 2.4
|
||||
*/
|
||||
typedef enum UPropertyNameChoice {
|
||||
typedef enum {
|
||||
U_SHORT_PROPERTY_NAME,
|
||||
U_LONG_PROPERTY_NAME,
|
||||
U_PROPERTY_NAME_CHOICE_COUNT
|
||||
@ -1307,7 +1306,7 @@ typedef enum UPropertyNameChoice {
|
||||
* @see UCHAR_DECOMPOSITION_TYPE
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum UDecompositionType {
|
||||
typedef enum {
|
||||
U_DT_NONE, /*[none]*/ /*See note !!*/
|
||||
U_DT_CANONICAL, /*[can]*/
|
||||
U_DT_COMPAT, /*[com]*/
|
||||
@ -1335,7 +1334,7 @@ typedef enum UDecompositionType {
|
||||
* @see UCHAR_JOINING_TYPE
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum UJoiningType {
|
||||
typedef enum {
|
||||
U_JT_NON_JOINING, /*[U]*/ /*See note !!*/
|
||||
U_JT_JOIN_CAUSING, /*[C]*/
|
||||
U_JT_DUAL_JOINING, /*[D]*/
|
||||
@ -1351,7 +1350,7 @@ typedef enum UJoiningType {
|
||||
* @see UCHAR_JOINING_GROUP
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum UJoiningGroup {
|
||||
typedef enum {
|
||||
U_JG_NO_JOINING_GROUP,
|
||||
U_JG_AIN,
|
||||
U_JG_ALAPH,
|
||||
@ -1415,7 +1414,7 @@ typedef enum UJoiningGroup {
|
||||
* @see UCHAR_GRAPHEME_CLUSTER_BREAK
|
||||
* @draft ICU 3.4
|
||||
*/
|
||||
typedef enum UGraphemeClusterBreak {
|
||||
typedef enum {
|
||||
U_GCB_OTHER, /*[XX]*/ /*See note !!*/
|
||||
U_GCB_CONTROL, /*[CN]*/
|
||||
U_GCB_CR, /*[CR]*/
|
||||
@ -1436,7 +1435,7 @@ typedef enum UGraphemeClusterBreak {
|
||||
* @see UCHAR_WORD_BREAK
|
||||
* @draft ICU 3.4
|
||||
*/
|
||||
typedef enum UWordBreakValues {
|
||||
typedef enum {
|
||||
U_WB_OTHER, /*[XX]*/ /*See note !!*/
|
||||
U_WB_ALETTER, /*[LE]*/
|
||||
U_WB_FORMAT, /*[FO]*/
|
||||
@ -1454,7 +1453,7 @@ typedef enum UWordBreakValues {
|
||||
* @see UCHAR_SENTENCE_BREAK
|
||||
* @draft ICU 3.4
|
||||
*/
|
||||
typedef enum USentenceBreak {
|
||||
typedef enum {
|
||||
U_SB_OTHER, /*[XX]*/ /*See note !!*/
|
||||
U_SB_ATERM, /*[AT]*/
|
||||
U_SB_CLOSE, /*[CL]*/
|
||||
@ -1475,7 +1474,7 @@ typedef enum USentenceBreak {
|
||||
* @see UCHAR_LINE_BREAK
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum ULineBreak {
|
||||
typedef enum {
|
||||
U_LB_UNKNOWN, /*[XX]*/ /*See note !!*/
|
||||
U_LB_AMBIGUOUS, /*[AI]*/
|
||||
U_LB_ALPHABETIC, /*[AL]*/
|
||||
@ -1523,7 +1522,7 @@ typedef enum ULineBreak {
|
||||
* @see UCHAR_NUMERIC_TYPE
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum UNumericType {
|
||||
typedef enum {
|
||||
U_NT_NONE, /*[None]*/ /*See note !!*/
|
||||
U_NT_DECIMAL, /*[de]*/
|
||||
U_NT_DIGIT, /*[di]*/
|
||||
@ -1537,7 +1536,7 @@ typedef enum UNumericType {
|
||||
* @see UCHAR_HANGUL_SYLLABLE_TYPE
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
typedef enum UHangulSyllableType {
|
||||
typedef enum {
|
||||
U_HST_NOT_APPLICABLE, /*[NA]*/ /*See note !!*/
|
||||
U_HST_LEADING_JAMO, /*[L]*/
|
||||
U_HST_VOWEL_JAMO, /*[V]*/
|
||||
|
@ -810,7 +810,7 @@ ucnv_getStarters(const UConverter* converter,
|
||||
* @see ucnv_getUnicodeSet
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
typedef enum UConverterUnicodeSet {
|
||||
typedef enum {
|
||||
/** Select the set of roundtrippable Unicode code points. @stable ICU 2.6 */
|
||||
UCNV_ROUNDTRIP_SET,
|
||||
/** Number of UConverterUnicodeSet selectors. @stable ICU 2.6 */
|
||||
|
@ -353,7 +353,7 @@ udata_setAppData(const char *packageName, const void *data, UErrorCode *err);
|
||||
* @see udata_setFileAccess
|
||||
* @draft ICU 3.4
|
||||
*/
|
||||
typedef enum UDataFileAccess {
|
||||
typedef enum {
|
||||
/** ICU does not access the file system for data loading. */
|
||||
UDATA_NO_FILES,
|
||||
/** ICU only loads data from packages, not from single files. */
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2002-2004, International Business Machines
|
||||
* Copyright (C) 2002-2005, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
@ -46,7 +46,7 @@ typedef struct UCharIterator UCharIterator; /**< C typedef for struct UCharItera
|
||||
* @see UCharIterator
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef enum UCharIteratorOrigin {
|
||||
typedef enum {
|
||||
UITER_START, UITER_CURRENT, UITER_LIMIT, UITER_ZERO, UITER_LENGTH
|
||||
} UCharIteratorOrigin;
|
||||
|
||||
|
@ -207,7 +207,7 @@ unorm_normalize(const UChar *source, int32_t sourceLength,
|
||||
* For details see Unicode Technical Report 15.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UNormalizationCheckResult {
|
||||
typedef enum {
|
||||
/**
|
||||
* Indicates that string is not in the normalized format
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@
|
||||
*
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
typedef enum UScriptCode {
|
||||
typedef enum {
|
||||
USCRIPT_INVALID_CODE = -1,
|
||||
USCRIPT_COMMON = 0 , /* Zyyy */
|
||||
USCRIPT_INHERITED = 1, /* Qaai */
|
||||
|
@ -37,7 +37,7 @@ U_CDECL_BEGIN
|
||||
* @see utrace_setLevel
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
typedef enum UTraceLevel {
|
||||
typedef enum {
|
||||
/** Disable all tracing @stable ICU 2.8*/
|
||||
UTRACE_OFF=-1,
|
||||
/** Trace error conditions only @stable ICU 2.8*/
|
||||
@ -56,7 +56,7 @@ typedef enum UTraceLevel {
|
||||
* These are the ICU functions that will be traced when tracing is enabled.
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
typedef enum UTraceFunctionNumber {
|
||||
typedef enum {
|
||||
UTRACE_FUNCTION_START=0,
|
||||
UTRACE_U_INIT=UTRACE_FUNCTION_START,
|
||||
UTRACE_U_CLEANUP,
|
||||
|
@ -546,7 +546,7 @@ operator delete[](void * /*p*/) {
|
||||
* Error codes should be tested using U_FAILURE() and U_SUCCESS().
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UErrorCode {
|
||||
typedef enum {
|
||||
/* The ordering of U_ERROR_INFO_START Vs U_USING_FALLBACK_WARNING looks weird
|
||||
* and is that way because VC++ debugger displays first encountered constant,
|
||||
* which is not the what the code is used for
|
||||
|
@ -61,7 +61,7 @@ ucurr_forLocale(const char* locale,
|
||||
* @see ucurr_getName
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
typedef enum UCurrNameStyle {
|
||||
typedef enum {
|
||||
/**
|
||||
* Selector for ucurr_getName indicating a symbolic name for a
|
||||
* currency, such as "$" for USD.
|
||||
@ -170,7 +170,7 @@ ucurr_getRoundingIncrement(const UChar* currency,
|
||||
* @see ucurr_openCurrencies
|
||||
* @draft ICU 3.2
|
||||
*/
|
||||
typedef enum UCurrCurrencyType {
|
||||
typedef enum {
|
||||
/**
|
||||
* Select all ISO-4217 currency codes.
|
||||
* @draft ICU 3.2
|
||||
|
@ -139,7 +139,7 @@ typedef void* UDateFormat;
|
||||
/** The possible date/time format styles
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
typedef enum UDateFormatStyle {
|
||||
typedef enum {
|
||||
/** Full style */
|
||||
UDAT_FULL,
|
||||
/** Long style */
|
||||
@ -162,7 +162,7 @@ typedef enum UDateFormatStyle {
|
||||
* defined by DateFormat and UDateFormat.
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
typedef enum UDateFormatField {
|
||||
typedef enum {
|
||||
/**
|
||||
* FieldPosition and UFieldPosition selector for 'G' field alignment,
|
||||
* corresponding to the UCAL_ERA field.
|
||||
@ -659,7 +659,7 @@ udat_applyPattern( UDateFormat *format,
|
||||
* The possible types of date format symbols
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
typedef enum UDateFormatSymbolType {
|
||||
typedef enum {
|
||||
/** The era names, for example AD */
|
||||
UDAT_ERAS,
|
||||
/** The month names, for example February */
|
||||
|
@ -45,20 +45,20 @@ typedef struct ULocaleData {
|
||||
/** The possible types of exemplar character sets.
|
||||
* @draft ICU 3.4
|
||||
*/
|
||||
typedef enum ULocaleDataExemplarSetType {
|
||||
ULOCDATA_ES_STANDARD, /* Basic set */
|
||||
ULOCDATA_ES_AUXILIARY, /* Auxiliary set */
|
||||
ULOCDATA_ES_COUNT
|
||||
typedef enum {
|
||||
ULOCDATA_ES_STANDARD, /** Basic set */
|
||||
ULOCDATA_ES_AUXILIARY, /** Auxiliary set */
|
||||
ULOCDATA_ES_COUNT
|
||||
} ULocaleDataExemplarSetType;
|
||||
|
||||
/** The possible types of delimiters.
|
||||
* @draft ICU 3.4
|
||||
*/
|
||||
typedef enum ULocaleDataDelimiterType {
|
||||
ULOCDATA_QUOTATION_START, /* Quotation start */
|
||||
ULOCDATA_QUOTATION_END, /* Quotation end */
|
||||
ULOCDATA_ALT_QUOTATION_START, /* Alternate quotation start */
|
||||
ULOCDATA_ALT_QUOTATION_END, /* Alternate quotation end */
|
||||
typedef enum {
|
||||
ULOCDATA_QUOTATION_START, /** Quotation start */
|
||||
ULOCDATA_QUOTATION_END, /** Quotation end */
|
||||
ULOCDATA_ALT_QUOTATION_START, /** Alternate quotation start */
|
||||
ULOCDATA_ALT_QUOTATION_END, /** Alternate quotation end */
|
||||
ULOCDATA_DELIMITER_COUNT
|
||||
} ULocaleDataDelimiterType;
|
||||
|
||||
@ -160,7 +160,7 @@ ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type, UChar *re
|
||||
* Enumeration for representing the measurement systems.
|
||||
* @draft ICU 2.8
|
||||
*/
|
||||
typedef enum UMeasurementSystem {
|
||||
typedef enum {
|
||||
UMS_SI, /** Measurement system specified by SI otherwise known as Metric system. */
|
||||
UMS_US, /** Measurement system followed in the United States of America. */
|
||||
UMS_LIMIT
|
||||
|
@ -130,7 +130,7 @@ typedef void* UNumberFormat;
|
||||
/** The possible number format styles.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UNumberFormatStyle {
|
||||
typedef enum {
|
||||
/**
|
||||
* Decimal format defined by pattern
|
||||
* @draft ICU 3.0
|
||||
@ -170,7 +170,7 @@ typedef enum UNumberFormatStyle {
|
||||
/** The possible number format rounding modes.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UNumberFormatRoundingMode {
|
||||
typedef enum {
|
||||
UNUM_ROUND_CEILING,
|
||||
UNUM_ROUND_FLOOR,
|
||||
UNUM_ROUND_DOWN,
|
||||
@ -183,7 +183,7 @@ typedef enum UNumberFormatRoundingMode {
|
||||
/** The possible number format pad positions.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UNumberFormatPadPosition {
|
||||
typedef enum {
|
||||
UNUM_PAD_BEFORE_PREFIX,
|
||||
UNUM_PAD_AFTER_PREFIX,
|
||||
UNUM_PAD_BEFORE_SUFFIX,
|
||||
@ -518,7 +518,7 @@ U_CAPI int32_t U_EXPORT2
|
||||
unum_countAvailable(void);
|
||||
|
||||
/** The possible UNumberFormat numeric attributes @stable ICU 2.0 */
|
||||
typedef enum UNumberFormatAttribute {
|
||||
typedef enum {
|
||||
/** Parse integers only */
|
||||
UNUM_PARSE_INT_ONLY,
|
||||
/** Use grouping separator */
|
||||
@ -649,7 +649,7 @@ unum_setDoubleAttribute( UNumberFormat* fmt,
|
||||
double newValue);
|
||||
|
||||
/** The possible UNumberFormat text attributes @stable ICU 2.0*/
|
||||
typedef enum UNumberFormatTextAttribute {
|
||||
typedef enum {
|
||||
/** Positive prefix */
|
||||
UNUM_POSITIVE_PREFIX,
|
||||
/** Positive suffix */
|
||||
@ -754,7 +754,7 @@ unum_toPattern( const UNumberFormat* fmt,
|
||||
* Constants for specifying a number format symbol.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UNumberFormatSymbol {
|
||||
typedef enum {
|
||||
/** The decimal separator */
|
||||
UNUM_DECIMAL_SEPARATOR_SYMBOL,
|
||||
/** The grouping separator */
|
||||
|
@ -46,7 +46,7 @@ typedef struct URegularExpression URegularExpression;
|
||||
* Constants for Regular Expression Match Modes.
|
||||
* @stable ICU 2.4
|
||||
*/
|
||||
typedef enum URegexpFlag{
|
||||
typedef enum {
|
||||
/** Forces normalization of pattern and strings.
|
||||
Not implemented yet, just a placeholder, hence draft.
|
||||
@draft ICU 2.4 */
|
||||
|
@ -192,7 +192,7 @@
|
||||
*
|
||||
* @draft ICU 3.2
|
||||
*/
|
||||
typedef enum UDateTimeScale {
|
||||
typedef enum {
|
||||
/**
|
||||
* Used in the JDK. Data is a Java <code>long</code> (<code>int64_t</code>). Value
|
||||
* is milliseconds since January 1, 1970.
|
||||
@ -281,7 +281,7 @@ typedef enum UDateTimeScale {
|
||||
*
|
||||
* @draft ICU 3.2
|
||||
*/
|
||||
typedef enum UTimeScaleValue {
|
||||
typedef enum {
|
||||
/**
|
||||
* The constant used to select the units vale
|
||||
* for a time scale.
|
||||
|
@ -73,7 +73,7 @@ typedef void* UTransliterator;
|
||||
* B to A when operating in the reverse direction.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef enum UTransDirection {
|
||||
typedef enum {
|
||||
|
||||
/**
|
||||
* UTRANS_FORWARD means from <source> to <target> for a
|
||||
|
Loading…
Reference in New Issue
Block a user