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