Lines Matching defs:Locale

53 static Locale *gLocaleCache = NULL;
58 static Locale *gDefaultLocale = NULL;
98 // Deleter function for Locales owned by the default Locale hash table/
102 delete (icu::Locale *) obj;
126 Locale *locale_set_default_internal(const char *id, UErrorCode& status) {
165 Locale *newDefault = (Locale *)uhash_get(gDefaultLocalesHashT, localeNameBuf);
167 newDefault = new Locale(Locale::eBOGUS);
198 return Locale::getDefault().getName();
204 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Locale)
211 Locale::~Locale()
225 Locale::Locale()
236 Locale::Locale(Locale::ELocaleType)
243 Locale::Locale( const char * newLanguage,
381 Locale::Locale(const Locale &other)
387 Locale &Locale::operator=(const Locale &other)
439 Locale *
440 Locale::clone() const {
441 return new Locale(*this);
445 Locale::operator==( const Locale& other) const
452 /*This function initializes a Locale from a C locale ID*/
453 Locale& Locale::init(const char* localeID, UBool canonicalize)
577 Locale::hashCode() const
583 Locale::setToBogus() {
600 const Locale& U_EXPORT2
601 Locale::getDefault()
616 Locale::setDefault( const Locale& newLocale,
630 Locale U_EXPORT2
631 Locale::createFromName (const char *name)
634 Locale l("");
643 Locale U_EXPORT2
644 Locale::createCanonical(const char* name) {
645 Locale loc("");
651 Locale::getISO3Language() const
658 Locale::getISO3Country() const
671 Locale::getLCID() const
676 const char* const* U_EXPORT2 Locale::getISOCountries()
681 const char* const* U_EXPORT2 Locale::getISOLanguages()
687 void Locale::setFromPOSIXID(const char *posixID)
692 const Locale & U_EXPORT2
693 Locale::getRoot(void)
698 const Locale & U_EXPORT2
699 Locale::getEnglish(void)
704 const Locale & U_EXPORT2
705 Locale::getFrench(void)
710 const Locale & U_EXPORT2
711 Locale::getGerman(void)
716 const Locale & U_EXPORT2
717 Locale::getItalian(void)
722 const Locale & U_EXPORT2
723 Locale::getJapanese(void)
728 const Locale & U_EXPORT2
729 Locale::getKorean(void)
734 const Locale & U_EXPORT2
735 Locale::getChinese(void)
740 const Locale & U_EXPORT2
741 Locale::getSimplifiedChinese(void)
746 const Locale & U_EXPORT2
747 Locale::getTraditionalChinese(void)
753 const Locale & U_EXPORT2
754 Locale::getFrance(void)
759 const Locale & U_EXPORT2
760 Locale::getGermany(void)
765 const Locale & U_EXPORT2
766 Locale::getItaly(void)
771 const Locale & U_EXPORT2
772 Locale::getJapan(void)
777 const Locale & U_EXPORT2
778 Locale::getKorea(void)
783 const Locale & U_EXPORT2
784 Locale::getChina(void)
789 const Locale & U_EXPORT2
790 Locale::getPRC(void)
795 const Locale & U_EXPORT2
796 Locale::getTaiwan(void)
801 const Locale & U_EXPORT2
802 Locale::getUK(void)
807 const Locale & U_EXPORT2
808 Locale::getUS(void)
813 const Locale & U_EXPORT2
814 Locale::getCanada(void)
819 const Locale & U_EXPORT2
820 Locale::getCanadaFrench(void)
825 const Locale &
826 Locale::getLocale(int locid)
828 Locale *localeCache = getLocaleCache();
842 Locale *
843 Locale::getLocaleCache(void)
850 Locale *tLocaleCache = new Locale[(int)eMAX_LOCALES];
854 tLocaleCache[eROOT] = Locale("");
855 tLocaleCache[eENGLISH] = Locale("en");
856 tLocaleCache[eFRENCH] = Locale("fr");
857 tLocaleCache[eGERMAN] = Locale("de");
858 tLocaleCache[eITALIAN] = Locale("it");
859 tLocaleCache[eJAPANESE] = Locale("ja");
860 tLocaleCache[eKOREAN] = Locale("ko");
861 tLocaleCache[eCHINESE] = Locale("zh");
862 tLocaleCache[eFRANCE] = Locale("fr", "FR");
863 tLocaleCache[eGERMANY] = Locale("de", "DE");
864 tLocaleCache[eITALY] = Locale("it", "IT");
865 tLocaleCache[eJAPAN] = Locale("ja", "JP");
866 tLocaleCache[eKOREA] = Locale("ko", "KR");
867 tLocaleCache[eCHINA] = Locale("zh", "CN");
868 tLocaleCache[eTAIWAN] = Locale("zh", "TW");
869 tLocaleCache[eUK] = Locale("en", "GB");
870 tLocaleCache[eUS] = Locale("en", "US");
871 tLocaleCache[eCANADA] = Locale("en", "CA");
872 tLocaleCache[eCANADA_FRENCH] = Locale("fr", "CA");
975 Locale::createKeywords(UErrorCode &status) const
997 Locale::getKeywordValue(const char* keywordName, char *buffer, int32_t bufLen, UErrorCode &status) const
1003 Locale::setKeywordValue(const char* keywordName, const char* keywordValue, UErrorCode &status)
1009 Locale::getBaseName() const
1015 ((Locale *)this)->baseName = ((Locale *)this)->baseNameBuffer;
1018 ((Locale *)this)->baseName = (char *)uprv_malloc(sizeof(char) * baseNameSize + 1);
1030 ((Locale*)this)->variantBegin = baseNameSize;