Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: icu46/source/common/dtintrv.cpp

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « icu46/source/common/dictbe.cpp ('k') | icu46/source/common/errorcode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*******************************************************************************
2 * Copyright (C) 2008, International Business Machines Corporation and
3 * others. All Rights Reserved.
4 *******************************************************************************
5 *
6 * File DTINTRV.CPP
7 *
8 *******************************************************************************
9 */
10
11
12
13 #include "unicode/dtintrv.h"
14
15
16 U_NAMESPACE_BEGIN
17
18 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateInterval)
19
20 //DateInterval::DateInterval(){}
21
22
23 DateInterval::DateInterval(UDate from, UDate to)
24 : fromDate(from),
25 toDate(to)
26 {}
27
28
29 DateInterval::~DateInterval(){}
30
31
32 DateInterval::DateInterval(const DateInterval& other)
33 : UObject(other) {
34 *this = other;
35 }
36
37
38 DateInterval&
39 DateInterval::operator=(const DateInterval& other) {
40 if ( this != &other ) {
41 fromDate = other.fromDate;
42 toDate = other.toDate;
43 }
44 return *this;
45 }
46
47
48 DateInterval*
49 DateInterval::clone() const {
50 return new DateInterval(*this);
51 }
52
53
54 UBool
55 DateInterval::operator==(const DateInterval& other) const {
56 return ( fromDate == other.fromDate && toDate == other.toDate );
57 }
58
59
60 U_NAMESPACE_END
61
OLDNEW
« no previous file with comments | « icu46/source/common/dictbe.cpp ('k') | icu46/source/common/errorcode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698