|
1 /* |
|
2 * Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <ls_std.h> |
|
20 #include "locl_region.h" |
|
21 |
|
22 EXPORT_C void LoclRegion::LocaleData(SLocaleRegion *aLocale) |
|
23 { |
|
24 aLocale->iCountryCode=RegionAspect::CountryCode; |
|
25 aLocale->iRegionCode=RegionAspect::RegionCode; |
|
26 aLocale->iUniversalTimeOffset=RegionAspect::UniversalTimeOffset; |
|
27 aLocale->iDateFormat=RegionAspect::DateFormat; |
|
28 aLocale->iTimeFormat=RegionAspect::TimeFormat; |
|
29 aLocale->iCurrencySymbolPosition=RegionAspect::CurrencySymbolPosition; |
|
30 aLocale->iCurrencySpaceBetween=RegionAspect::CurrencySpaceBetween; |
|
31 aLocale->iCurrencyDecimalPlaces=RegionAspect::CurrencyDecimalPlaces; |
|
32 aLocale->iNegativeCurrencyFormat=TNegativeCurrencyFormat(RegionAspect::NegativeCurrencyFormat); |
|
33 aLocale->iCurrencyTriadsAllowed=RegionAspect::CurrencyTriadsAllowed; |
|
34 aLocale->iThousandsSeparator=*RegionAspect::ThousandsSeparator; |
|
35 aLocale->iDecimalSeparator=*RegionAspect::DecimalSeparator; |
|
36 TInt i=0; |
|
37 for(;i<KMaxDateSeparators;i++) |
|
38 aLocale->iDateSeparator[i]=*RegionAspect::DateSeparator[i]; |
|
39 for(i=0;i<KMaxTimeSeparators;i++) |
|
40 aLocale->iTimeSeparator[i]=*RegionAspect::TimeSeparator[i]; |
|
41 aLocale->iAmPmSymbolPosition=RegionAspect::AmPmSymbolPosition; |
|
42 aLocale->iAmPmSpaceBetween=RegionAspect::AmPmSpaceBetween; |
|
43 aLocale->iHomeDaylightSavingZone=RegionAspect::HomeDaylightSavingZone; |
|
44 aLocale->iWorkDays=RegionAspect::WorkDays; |
|
45 aLocale->iStartOfWeek=RegionAspect::StartOfWeek; |
|
46 aLocale->iClockFormat=RegionAspect::ClockFormat; |
|
47 aLocale->iUnitsGeneral=RegionAspect::UnitsGeneral; |
|
48 aLocale->iUnitsDistanceLong=RegionAspect::UnitsDistanceLong; |
|
49 aLocale->iUnitsDistanceShort=RegionAspect::UnitsDistanceShort; |
|
50 aLocale->iExtraNegativeCurrencyFormatFlags=RegionAspect::ExtraNegativeCurrencyFormatFlags; |
|
51 aLocale->iDeviceTimeState = EDeviceUserTime; |
|
52 } |
|
53 |
|
54 EXPORT_C const TText* LoclRegion::CurrencySymbol() |
|
55 { |
|
56 return(RegionAspect::CurrencySymbol); |
|
57 } |
|
58 EXPORT_C const TText* LoclRegion::ShortDateFormatSpec() |
|
59 { |
|
60 return(RegionAspect::ShortDateFormatSpec); |
|
61 } |
|
62 EXPORT_C const TText* LoclRegion::LongDateFormatSpec() |
|
63 { |
|
64 return(RegionAspect::LongDateFormatSpec); |
|
65 } |
|
66 EXPORT_C const TText* LoclRegion::TimeFormatSpec() |
|
67 { |
|
68 return(RegionAspect::TimeFormatSpec); |
|
69 } |