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

ICU 77.1: i18n/unicode/dtptngen.h Source File

14 #ifndef __DTPTNGEN_H__ 15 #define __DTPTNGEN_H__ 19 #if U_SHOW_CPLUSPLUS_API 38 class

DateTimeMatcher;

42 class

SharedDateTimePatternGenerator;

77 #ifndef U_HIDE_INTERNAL_API 327 #if !UCONFIG_NO_FORMATTING 493 #ifndef U_HIDE_INTERNAL_API 529 #if !UCONFIG_NO_FORMATTING 588

DateTimeMatcher* dtMatcher;

589

DistanceInfo *distanceInfo;

590

PatternMap *patternMap;

595

DateTimeMatcher *skipMatcher;

596

Hashtable *fAvailableFormatKeyHash;

598

char16_t fDefaultHourFormatChar;

600

int32_t fAllowedHourFormats[7];

610

kDTPGFixFractionalSeconds = 1,

611

kDTPGSkeletonUsesCapJ = 2

619  void

getCalendarTypeToUse(

const Locale

& locale, CharString& destination,

UErrorCode

& err);

633  const UnicodeString

* getBestRaw(DateTimeMatcher& source, int32_t includeMask, DistanceInfo* missingFields,

UErrorCode

& status,

const

PtnSkeleton** specifiedSkeletonPtr =

nullptr

);

636

int32_t getTopBitNumber(int32_t foundMask)

const

;

639  void

copyHashtable(Hashtable *other,

UErrorCode

&status);

644  struct U_HIDDEN

AppendItemFormatsSink;

645  struct U_HIDDEN

AppendItemNamesSink;

646  struct U_HIDDEN

AvailableFormatsSink;

This class provides flexible generation of date format patterns, like "yy-MM-dd".

UnicodeString getBestPattern(const UnicodeString &skeleton, UDateTimePatternMatchOptions options, UErrorCode &status)

Return the best pattern matching the input skeleton.

const UnicodeString & getDateTimeFormat(UDateFormatStyle style, UErrorCode &status) const

Getter corresponding to setDateTimeFormat.

virtual UClassID getDynamicClassID() const override

ICU "poor man's RTTI", returns a UClassID for the actual class.

void setDecimal(const UnicodeString &decimal)

The decimal value is used in formatting fractions of seconds.

bool operator!=(const DateTimePatternGenerator &other) const

Return true if another object is semantically unequal to this one.

const UnicodeString & getDecimal() const

Getter corresponding to setDecimal.

DateTimePatternGenerator * clone() const

Clone DateTimePatternGenerator object.

bool operator==(const DateTimePatternGenerator &other) const

Return true if another object is semantically equal to this one.

const UnicodeString & getPatternForSkeleton(const UnicodeString &skeleton) const

Get the pattern corresponding to a given skeleton.

const UnicodeString & getDateTimeFormat() const

Getter corresponding to setDateTimeFormat.

void setAppendItemFormat(UDateTimePatternField field, const UnicodeString &value)

An AppendItem format is a pattern used to append a field if there is no good match.

UnicodeString getBestPattern(const UnicodeString &skeleton, UErrorCode &status)

Return the best pattern matching the input skeleton.

void setDateTimeFormat(UDateFormatStyle style, const UnicodeString &dateTimeFormat, UErrorCode &status)

dateTimeFormats are message patterns used to compose combinations of date and time patterns.

static DateTimePatternGenerator * createEmptyInstance(UErrorCode &status)

Create an empty generator, to be constructed with addPattern(...) etc.

const UnicodeString & getAppendItemFormat(UDateTimePatternField field) const

Getter corresponding to setAppendItemFormat.

UnicodeString getFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width) const

The general interface to get a display name for a particular date/time field, in one of several possi...

static DateTimePatternGenerator * createInstance(const Locale &uLocale, UErrorCode &status)

Construct a flexible generator according to data for a given locale.

void setAppendItemName(UDateTimePatternField field, const UnicodeString &value)

Sets the names of field, eg "era" in English for ERA.

static UnicodeString staticGetBaseSkeleton(const UnicodeString &pattern, UErrorCode &status)

Utility to return a unique base skeleton from a given pattern.

StringEnumeration * getBaseSkeletons(UErrorCode &status) const

Return a list of all the base skeletons (in canonical form) from this class.

void setDateTimeFormat(const UnicodeString &dateTimeFormat)

The DateTimeFormat is a message format pattern used to compose date and time patterns.

StringEnumeration * getSkeletons(UErrorCode &status) const

Return a list of all the skeletons (in canonical form) from this class.

static UClassID getStaticClassID()

ICU "poor man's RTTI", returns a UClassID for this class.

const UnicodeString & getAppendItemName(UDateTimePatternField field) const

Getter corresponding to setAppendItemNames.

static DateTimePatternGenerator * createInstance(UErrorCode &status)

Construct a flexible generator according to default locale.

UDateFormatHourCycle getDefaultHourCycle(UErrorCode &status) const

Get the default hour cycle for a locale.

UnicodeString replaceFieldTypes(const UnicodeString &pattern, const UnicodeString &skeleton, UErrorCode &status)

Adjusts the field types (width and subtype) of a pattern to match what is in a skeleton.

static DateTimePatternGenerator * createInstanceNoStdPat(const Locale &uLocale, UErrorCode &status)

For ICU use only.

static UnicodeString staticGetSkeleton(const UnicodeString &pattern, UErrorCode &status)

Utility to return a unique skeleton from a given pattern.

UnicodeString replaceFieldTypes(const UnicodeString &pattern, const UnicodeString &skeleton, UDateTimePatternMatchOptions options, UErrorCode &status)

Adjusts the field types (width and subtype) of a pattern to match what is in a skeleton.

UnicodeString getBaseSkeleton(const UnicodeString &pattern, UErrorCode &status)

Utility to return a unique base skeleton from a given pattern.

StringEnumeration * getRedundants(UErrorCode &status)

Return a list of redundant patterns are those which if removed, make no difference in the resulting g...

UnicodeString getSkeleton(const UnicodeString &pattern, UErrorCode &status)

Utility to return a unique skeleton from a given pattern.

virtual ~DateTimePatternGenerator()

Destructor.

UDateTimePatternConflict addPattern(const UnicodeString &pattern, UBool override, UnicodeString &conflictingPattern, UErrorCode &status)

Adds a pattern to the generator.

A Locale object represents a specific geographical, political, or cultural region.

Base class for 'pure' C++ implementations of uenum api.

UObject is the common ICU "boilerplate" class.

UnicodeString is a string class that stores Unicode characters directly and provides similar function...

C++ API: Abstract class for converting dates.

C++ API: Locale ID object.

#define U_CALLCONV

Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...

#define U_HIDDEN

This is used to mark internal structs declared within external classes, to prevent the internal struc...

UDateFormatStyle

The possible date/time format styles.

UDateFormatHourCycle

Hour Cycle.

C API: Wrapper for icu::DateTimePatternGenerator (unicode/dtptngen.h).

UDateTimePGDisplayWidth

Field display name width constants for udatpg_getFieldDisplayName().

UDateTimePatternConflict

Status return values from udatpg_addPattern().

UDateTimePatternMatchOptions

Masks to control forcing the length of specified fields in the returned pattern to match those in the...

@ UDATPG_MATCH_NO_OPTIONS

UDateTimePatternField

Field number constants for udatpg_getAppendItemFormats() and similar functions.

@ UDATPG_FIELD_COUNT

One more than the highest normal UDateTimePatternField value.

int8_t UBool

The ICU boolean type, a signed-byte integer.

void * UClassID

UClassID is used to identify classes without using the compiler's RTTI.

Basic definitions for ICU, for both C and C++ APIs.

UErrorCode

Standard ICU4C error code type, a substitute for exceptions.

#define U_I18N_API

Set to export library symbols from inside the i18n library, and to import them from outside.


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