| ********************************************************************** |
| * Copyright (c) 2004, International Business Machines |
| * Corporation and others. All Rights Reserved. |
| ********************************************************************** |
| * Created: January 16 2004 |
| ********************************************************************** |
| Locale LocaleBased::getLocale(ULocDataLocaleType type, UErrorCode& status) const { |
| const char* id = getLocaleID(type, status); |
| return Locale((id != 0) ? id : ""); |
| const char* LocaleBased::getLocaleID(ULocDataLocaleType type, UErrorCode& status) const { |
| status = U_ILLEGAL_ARGUMENT_ERROR; |
| void LocaleBased::setLocaleIDs(const char* validID, const char* actualID) { |
| uprv_strcpy(valid, validID); |
| uprv_strcpy(actual, actualID); |