sync with tizen_2.0
[platform/framework/native/appfw.git] / src / locales / FLcl_FieldPosition.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file            FLcl_FieldPosition.cpp
20  * @brief           This is the implementation file for _FieldPosition class.
21  */
22
23 // Includes
24 #include "FLcl_FieldPosition.h"
25
26
27 namespace Tizen { namespace Locales
28 {
29
30
31 /////////////////////////////////////////////////////////////////////////////////////////////////////
32 // Public Method
33
34 // Construct Operations
35
36 _FieldPosition::_FieldPosition(int field)
37         : __field(field)
38         , __beginIndex(0)
39         , __endIndex(0)
40 {
41 }
42
43
44 _FieldPosition::~_FieldPosition(void)
45 {
46 }
47
48
49 _FieldPosition::_FieldPosition(const _FieldPosition& fieldPosition)
50         : __field(fieldPosition.__field)
51         , __beginIndex(fieldPosition.__beginIndex)
52         , __endIndex(fieldPosition.__endIndex)
53 {
54 }
55
56
57 // Operator
58
59 _FieldPosition&
60 _FieldPosition::operator =(const _FieldPosition& fieldPosition)
61 {
62         if (&fieldPosition != this)
63         {
64                 __field = fieldPosition.__field;
65                 __beginIndex = fieldPosition.__beginIndex;
66                 __endIndex = fieldPosition.__endIndex;
67         }
68         return *this;
69 }
70
71
72 // Operation
73
74 int
75 _FieldPosition::GetField(void) const
76 {
77         return __field;
78 }
79
80
81 int
82 _FieldPosition::GetBeginIndex(void) const
83 {
84         return __beginIndex;
85 }
86
87
88 void
89 _FieldPosition::SetBeginIndex(int beginIndex)
90 {
91         __beginIndex = beginIndex;
92 }
93
94
95 int
96 _FieldPosition::GetEndIndex(void) const
97 {
98         return __endIndex;
99 }
100
101
102 void
103 _FieldPosition::SetEndIndex(int endIndex)
104 {
105         __endIndex = endIndex;
106 }
107
108
109 };
110 };      // Tizen::Locales