Ticket #5970: locale_header.patch

File locale_header.patch, 1.1 KB (added by Karvjorm, 14 years ago)

A locale header patch for 24-hour and Country encoding.

  • headers/os/locale/Country.h

     
    2323class BCountry {
    2424    public:
    2525        BCountry(const char* languageCode, const char* countryCode);
    26         BCountry(const char* languageAndCountryCode = "en_US");
     26        BCountry(const char* languageAndCountryCode = "en_US@UTF-8");
    2727        virtual         ~BCountry();
    2828
    2929        virtual bool    Name(BString&) const;
    3030        const char*     Code() const;
    3131        status_t        GetIcon(BBitmap* result);
     32        virtual bool    Encoding(BString&) const;
    3233
    3334        const char*     GetString(uint32 id) const;
    3435
     
    4849        bool        TimeFormat(BString&, bool longFormat) const;
    4950        const char* DateSeparator() const;
    5051        const char* TimeSeparator() const;
     52        void        Set24HourClock(bool clock);
     53        bool        IsClock24Hour() const;
    5154
    5255        // numbers
    5356
     
    8588        icu_4_2::DateFormat* fICUShortDateFormatter;
    8689        const char**    fStrings;
    8790        icu_4_2::Locale* fICULocale;
     91        bool    fIsClock24Hour;
    8892};
    8993
    9094#endif  /* _COUNTRY_H_ */