blob: 6a70a01b3ed3e8c86d3585cc52a0b6b0cd544fb5 [file] [edit]
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Common options used across intl4x libraries.
library;
/// Calendar types for date and time formatting.
enum Calendar {
/// The Buddhist calendar.
buddhist,
/// The traditional Chinese calendar.
traditionalChinese,
/// The Coptic calendar.
coptic,
/// The traditional Korean calendar (Dangi).
traditionalKorean,
/// The Ethiopic Amete Alem calendar.
ethiopianAmeteAlem,
/// The Ethiopic calendar.
ethiopian,
/// The Gregorian calendar.
gregorian,
/// The Hebrew calendar.
hebrew,
/// The Indian national calendar.
indian,
/// The Islamic Umm al-Qura calendar.
hijriUmalqura,
/// The Islamic tabular calendar.
hijriTbla,
/// The Islamic civil calendar.
hijriCivil,
/// The Japanese calendar.
japanese,
/// The Persian calendar.
persian,
/// The Minguo (Republic of China) calendar.
minguo,
}
/// Numbering systems for number formatting.
enum NumberingSystem {
/// Arabic-Indic digits.
arabic,
/// Extended Arabic-Indic digits.
extendedarabicindic,
/// Balinese digits.
balinese,
/// Bengali digits.
bangla,
/// Devanagari digits.
devanagari,
/// Full-width digits.
///
/// Full-width digits (like 0123456789) are characters that occupy the full
/// square space of East Asian characters, unlike standard half-width digits
/// (0-9) that take half the space, designed for compatibility in systems
/// handling both narrow Latin and wide CJK (Chinese, Japanese, Korean) text,
/// often used in forms or Japanese contexts for uniform alignment.
fullwidth,
/// Gujarati digits.
gujarati,
/// Gurmukhi digits.
gurmukhi,
/// Hanja decimal digits.
hanjadecimal,
/// Khmer digits.
khmer,
/// Kannada digits.
kannada,
/// Lao digits.
lao,
/// Latin digits.
latin,
/// Limbu digits.
limbu,
/// Malayalam digits.
malayalam,
/// Mongolian digits.
mongolian,
/// Myanmar digits.
myanmar,
/// Oriya digits.
odia,
/// Tamil decimal digits.
tamildecimal,
/// Telugu digits.
telugu,
/// Thai digits.
thai,
/// Tibetan digits.
tibetan,
}
/// Used for multiple option types which confirm to the triad of
/// narrow/short/long.
enum Style { narrow, short, long }