IntervalPatternIndex
367 #ifndef U_HIDE_INTERNAL_API 373kMaxIntervalPatternIndex = kIPI_MAX_INDEX
384 voidinitializeData(
constLocale& locale,
UErrorCode& status);
397 voidsetIntervalPatternInternally(
constUnicodeString& skeleton,
399 constUnicodeString& intervalPattern,
421 constUnicodeString* getBestSkeleton(
constUnicodeString& skeleton,
422int8_t& bestMatchDistanceInfo)
const;
432 static voidU_EXPORT2 parseSkeleton(
constUnicodeString& skeleton,
433int32_t* skeletonFieldWidth);
447 static UBoolU_EXPORT2 stringNumeric(int32_t fieldWidth,
448int32_t anotherFieldWidth,
465 staticIntervalPatternIndex U_EXPORT2 calendarFieldToIntervalIndex(
475 voiddeleteHash(Hashtable* hTable);
495 voidcopyHash(
constHashtable* source, Hashtable* target,
UErrorCode& status);
500UnicodeString fFallbackIntervalPattern;
502 UBoolfFirstDateInPtnIsLaterDate;
506Hashtable* fIntervalPatterns;
DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...
DateIntervalInfo is a public class for encapsulating localizable date time interval patterns.
void setIntervalPattern(const UnicodeString &skeleton, UCalendarDateFields lrgDiffCalUnit, const UnicodeString &intervalPattern, UErrorCode &status)
Provides a way for client to build interval patterns.
UnicodeString & getIntervalPattern(const UnicodeString &skeleton, UCalendarDateFields field, UnicodeString &result, UErrorCode &status) const
Get the interval pattern given skeleton and the largest different calendar field.
UBool getDefaultOrder() const
Get default order – whether the first date in pattern is later date or not.
virtual ~DateIntervalInfo()
Destructor.
virtual DateIntervalInfo * clone() const
Clone this object polymorphically.
DateIntervalInfo & operator=(const DateIntervalInfo &)
Assignment operator.
void setFallbackIntervalPattern(const UnicodeString &fallbackPattern, UErrorCode &status)
Re-set the fallback interval pattern.
DateIntervalInfo(const DateIntervalInfo &)
Copy constructor.
DateIntervalInfo(const Locale &locale, UErrorCode &status)
Construct DateIntervalInfo for the given locale,.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
virtual UClassID getDynamicClassID() const override
ICU "poor man's RTTI", returns a UClassID for the actual class.
virtual bool operator==(const DateIntervalInfo &other) const
Return true if another object is semantically equal to this one.
DateIntervalInfo(UErrorCode &status)
Default constructor.
UnicodeString & getFallbackIntervalPattern(UnicodeString &result) const
Get the fallback interval pattern.
A Locale object represents a specific geographical, political, or cultural region.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Date/Time Pattern Generator.
C++ API: Locale ID object.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
bool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
#define U_HIDDEN
This is used to mark internal structs declared within external classes, to prevent the internal struc...
UCalendarDateFields
Possible fields in a UCalendar.
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