KDECore
kcalendarsystemhebrew.cpp
Go to the documentation of this file.
259 virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const;
263 virtual QString stringFromInteger(int number, int padWidth = 0, QChar padChar = QLatin1Char('0')) const;
264 virtual QString stringFromInteger(int number, int padWidth, QChar padChar, KLocale::DigitSet digitSet) const;
291 format = i18nc("(kdedt-format) Hebrew, AM, full era year format used for %EY, e.g. 2000 AM", "%Ey %EC");
384int KCalendarSystemHebrewPrivate::integerFromString(const QString &inputString, int maxLength, int &readLength) const
515QString KCalendarSystemHebrewPrivate::stringFromInteger(int number, int padWidth, QChar padChar) const
520QString KCalendarSystemHebrewPrivate::stringFromInteger(int number, int padWidth, QChar padChar, KLocale::DigitSet digitSet) const
632QString KCalendarSystemHebrewPrivate::monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
745 return ki18nc("Hebrew month 1 - KLocale::LongName Possessive", "of Tishrey").toString(locale());
747 return ki18nc("Hebrew month 2 - KLocale::LongName Possessive", "of Heshvan").toString(locale());
769 return ki18nc("Hebrew month 13 - KLocale::LongName Possessive", "of Adar I").toString(locale());
771 return ki18nc("Hebrew month 14 - KLocale::LongName Possessive", "of Adar II").toString(locale());
815QString KCalendarSystemHebrewPrivate::weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
885KCalendarSystemHebrew::KCalendarSystemHebrew(const KSharedConfig::Ptr config, const KLocale *locale)
virtual QDate epoch() const
Returns a QDate holding the epoch of the calendar system.
Definition kcalendarsystemhebrew.cpp:907
virtual int weekDayOfPray() const
Definition kcalendarsystemhebrew.cpp:995
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const
Gets specific calendar type week day name.
Definition kcalendarsystemhebrew.cpp:967
virtual int dayOfWeek(const QDate &date) const
Returns the weekday number for the given date.
Definition kcalendarsystemhebrew.cpp:937
virtual QDate latestValidDate() const
Returns the latest date valid in this calendar system implementation.
Definition kcalendarsystemhebrew.cpp:921
virtual bool isLunisolar() const
Returns whether the calendar is lunisolar based.
Definition kcalendarsystemhebrew.cpp:1005
virtual QDate earliestValidDate() const
Returns the earliest date valid in this calendar system implementation.
Definition kcalendarsystemhebrew.cpp:913
virtual bool isProleptic() const
Returns whether the calendar system is proleptic, i.e.
Definition kcalendarsystemhebrew.cpp:1015
virtual bool isValid(int year, int month, int day) const
Returns whether a given date is valid in this calendar system.
Definition kcalendarsystemhebrew.cpp:927
virtual bool isSolar() const
Returns whether the calendar is solar based.
Definition kcalendarsystemhebrew.cpp:1010
virtual bool isLeapYear(int year) const
Returns whether a given year is a leap year.
Definition kcalendarsystemhebrew.cpp:947
virtual bool julianDayToDate(int jd, int &year, int &month, int &day) const
Internal method to convert a Julian Day number into the YMD values for this calendar system.
Definition kcalendarsystemhebrew.cpp:1020
virtual QString calendarType() const
Definition kcalendarsystemhebrew.cpp:902
virtual bool dateToJulianDay(int year, int month, int day, int &jd) const
Internal method to convert YMD values for this calendar system into a Julian Day number.
Definition kcalendarsystemhebrew.cpp:1042
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const
Gets specific calendar type month name for a given month number If an invalid month is specified,...
Definition kcalendarsystemhebrew.cpp:957
virtual int yearStringToInteger(const QString &sNum, int &iLength) const
Definition kcalendarsystemhebrew.cpp:977
virtual bool isLunar() const
Returns whether the calendar is lunar based.
Definition kcalendarsystemhebrew.cpp:1000
virtual ~KCalendarSystemHebrew()
Definition kcalendarsystemhebrew.cpp:898
virtual QString stringFromInteger(int number, int padWidth=0, QChar padChar=QLatin1Char('0')) const
Definition kcalendarsystem.cpp:781
virtual int integerFromString(const QString &string, int maxLength, int &readLength) const
Definition kcalendarsystem.cpp:750
void addEra(char direction, int offset, const QDate &startDate, int startYear, const QDate &endDate, const QString &name, const QString &shortName, const QString &format)
Definition kcalendarsystem.cpp:1000
virtual int day(const QDate &date) const
Returns the day portion of a given date in the current calendar system.
Definition kcalendarsystem.cpp:1357
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const =0
Gets specific calendar type month name for a given month number If an invalid month is specified,...
Definition kcalendarsystem.cpp:1842
virtual int year(const QDate &date) const
Returns the year portion of a given date in the current calendar system.
Definition kcalendarsystem.cpp:1331
KCalendarSystem(const KLocale *locale=0)
Constructor of abstract calendar class.
Definition kcalendarsystem.cpp:1073
virtual bool isLeapYear(int year) const =0
Returns whether a given year is a leap year.
Definition kcalendarsystem.cpp:1720
const KLocale * locale() const
Returns the locale used for translations and formats for this calendar system instance.
Definition kcalendarsystem.cpp:2479
virtual int yearStringToInteger(const QString &sNum, int &iLength) const
Definition kcalendarsystem.cpp:2018
virtual bool isValid(int year, int month, int day) const =0
Returns whether a given date is valid in this calendar system.
Definition kcalendarsystem.cpp:1133
virtual QString weekDayName(int weekDay, WeekDayNameFormat format=LongDayName) const =0
Gets specific calendar type week day name.
Definition kcalendarsystem.cpp:1881
virtual int month(const QDate &date) const
Returns the month portion of a given date in the current calendar system.
Definition kcalendarsystem.cpp:1344
friend class KCalendarSystemHebrew
Definition kcalendarsystem.h:1668
KLocale provides support for country specific stuff like the national language.
Definition klocale.h:70
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition klocalizedstring.cpp:192
static class h_date * hebrewToGregorian(int y, int m, int d)
Definition kcalendarsystemhebrew.cpp:49
static class h_date * gregorianToHebrew(int y, int m, int d)
Definition kcalendarsystemhebrew.cpp:100
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition klocalizedstring.cpp:929
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition klocalizedstring.h:797
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.