Lines Matching refs:lhs

34 ORowSetValue OOp_Upper::operate(const ORowSetValue& lhs) const  in operate()
37 if ( lhs.isNull() ) in operate()
38 return lhs; in operate()
40 return lhs.getString().toAsciiUpperCase(); in operate()
43 ORowSetValue OOp_Lower::operate(const ORowSetValue& lhs) const in operate()
46 if ( lhs.isNull() ) in operate()
47 return lhs; in operate()
49 return lhs.getString().toAsciiLowerCase(); in operate()
52 ORowSetValue OOp_Ascii::operate(const ORowSetValue& lhs) const in operate()
55 if ( lhs.isNull() ) in operate()
56 return lhs; in operate()
57 ::rtl::OString sStr(::rtl::OUStringToOString(lhs,RTL_TEXTENCODING_ASCII_US)); in operate()
62 ORowSetValue OOp_CharLength::operate(const ORowSetValue& lhs) const in operate()
65 if ( lhs.isNull() ) in operate()
66 return lhs; in operate()
68 return lhs.getString().getLength(); in operate()
71 ORowSetValue OOp_Char::operate(const ::std::vector<ORowSetValue>& lhs) const in operate()
74 if ( lhs.empty() ) in operate()
78 ::std::vector<ORowSetValue>::const_reverse_iterator aIter = lhs.rbegin(); in operate()
79 ::std::vector<ORowSetValue>::const_reverse_iterator aEnd = lhs.rend(); in operate()
93 ORowSetValue OOp_Concat::operate(const ::std::vector<ORowSetValue>& lhs) const in operate()
96 if ( lhs.empty() ) in operate()
100 ::std::vector<ORowSetValue>::const_reverse_iterator aIter = lhs.rbegin(); in operate()
101 ::std::vector<ORowSetValue>::const_reverse_iterator aEnd = lhs.rend(); in operate()
113 ORowSetValue OOp_Locate::operate(const ::std::vector<ORowSetValue>& lhs) const in operate()
116 ::std::vector<ORowSetValue>::const_iterator aIter = lhs.begin(); in operate()
117 ::std::vector<ORowSetValue>::const_iterator aEnd = lhs.end(); in operate()
123 if ( lhs.size() == 2 ) in operate()
124 return ::rtl::OUString::valueOf(lhs[0].getString().indexOf(lhs[1].getString())+1); in operate()
126 else if ( lhs.size() != 3 ) in operate()
129 return lhs[1].getString().indexOf(lhs[2].getString(),lhs[0]) + 1; in operate()
132 ORowSetValue OOp_SubString::operate(const ::std::vector<ORowSetValue>& lhs) const in operate()
135 ::std::vector<ORowSetValue>::const_iterator aIter = lhs.begin(); in operate()
136 ::std::vector<ORowSetValue>::const_iterator aEnd = lhs.end(); in operate()
142 if ( lhs.size() == 2 && static_cast<sal_Int32>(lhs[0]) >= sal_Int32(0) ) in operate()
143 return lhs[1].getString().copy(static_cast<sal_Int32>(lhs[0])-1); in operate()
145 else if ( lhs.size() != 3 || static_cast<sal_Int32>(lhs[1]) < sal_Int32(0)) in operate()
148 return lhs[2].getString().copy(static_cast<sal_Int32>(lhs[1])-1,lhs[0]); in operate()
151 ORowSetValue OOp_LTrim::operate(const ORowSetValue& lhs) const in operate()
154 if ( lhs.isNull() ) in operate()
155 return lhs; in operate()
157 ::rtl::OUString sRet = lhs; in operate()
162 ORowSetValue OOp_RTrim::operate(const ORowSetValue& lhs) const in operate()
165 if ( lhs.isNull() ) in operate()
166 return lhs; in operate()
168 ::rtl::OUString sRet = lhs; in operate()
173 ORowSetValue OOp_Space::operate(const ORowSetValue& lhs) const in operate()
176 if ( lhs.isNull() ) in operate()
177 return lhs; in operate()
181 sal_Int32 nCount = lhs; in operate()
189 ORowSetValue OOp_Replace::operate(const ::std::vector<ORowSetValue>& lhs) const in operate()
192 if ( lhs.size() != 3 ) in operate()
195 ::rtl::OUString sStr = lhs[2]; in operate()
196 ::rtl::OUString sFrom = lhs[1]; in operate()
197 ::rtl::OUString sTo = lhs[0]; in operate()
208 ORowSetValue OOp_Repeat::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const in operate() argument
211 if ( lhs.isNull() || rhs.isNull() ) in operate()
212 return lhs; in operate()
218 sRet += lhs; in operate()
223 ORowSetValue OOp_Insert::operate(const ::std::vector<ORowSetValue>& lhs) const in operate()
226 if ( lhs.size() != 4 ) in operate()
229 ::rtl::OUString sStr = lhs[3]; in operate()
231 sal_Int32 nStart = static_cast<sal_Int32>(lhs[2]); in operate()
234 return sStr.replaceAt(nStart-1,static_cast<sal_Int32>(lhs[1]),lhs[0]); in operate()
237 ORowSetValue OOp_Left::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const in operate() argument
240 if ( lhs.isNull() || rhs.isNull() ) in operate()
241 return lhs; in operate()
243 ::rtl::OUString sRet = lhs; in operate()
250 ORowSetValue OOp_Right::operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const in operate() argument
253 if ( lhs.isNull() || rhs.isNull() ) in operate()
254 return lhs; in operate()
257 ::rtl::OUString sRet = lhs; in operate()