OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011,2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011,2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 , m_shortTimeFormat(0) | 61 , m_shortTimeFormat(0) |
62 , m_didCreateTimeFormat(false) | 62 , m_didCreateTimeFormat(false) |
63 #endif | 63 #endif |
64 { | 64 { |
65 } | 65 } |
66 | 66 |
67 LocaleICU::~LocaleICU() | 67 LocaleICU::~LocaleICU() |
68 { | 68 { |
69 unum_close(m_numberFormat); | 69 unum_close(m_numberFormat); |
70 udat_close(m_shortDateFormat); | 70 udat_close(m_shortDateFormat); |
| 71 #if ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS) |
| 72 udat_close(m_mediumTimeFormat); |
| 73 udat_close(m_shortTimeFormat); |
| 74 #endif |
71 } | 75 } |
72 | 76 |
73 PassOwnPtr<LocaleICU> LocaleICU::create(const char* localeString) | 77 PassOwnPtr<LocaleICU> LocaleICU::create(const char* localeString) |
74 { | 78 { |
75 return adoptPtr(new LocaleICU(localeString)); | 79 return adoptPtr(new LocaleICU(localeString)); |
76 } | 80 } |
77 | 81 |
78 PassOwnPtr<LocaleICU> LocaleICU::createForCurrentLocale() | 82 PassOwnPtr<LocaleICU> LocaleICU::createForCurrentLocale() |
79 { | 83 { |
80 return adoptPtr(new LocaleICU(0)); | 84 return adoptPtr(new LocaleICU(0)); |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 const Vector<String>& LocaleICU::timeAMPMLabels() | 422 const Vector<String>& LocaleICU::timeAMPMLabels() |
419 { | 423 { |
420 initializeDateTimeFormat(); | 424 initializeDateTimeFormat(); |
421 return m_timeAMPMLabels; | 425 return m_timeAMPMLabels; |
422 } | 426 } |
423 | 427 |
424 #endif | 428 #endif |
425 | 429 |
426 } // namespace WebCore | 430 } // namespace WebCore |
427 | 431 |
OLD | NEW |