Lines Matching refs:rString
194 …eNode::convertDateString(const SQLParseNodeParameter& rParam, const ::rtl::OUString& rString) const in convertDateString()
197 Date aDate = DBTypeConversion::toDate(rString); in convertDateString()
207 …e::convertDateTimeString(const SQLParseNodeParameter& rParam, const ::rtl::OUString& rString) const in convertDateTimeString()
210 DateTime aDate = DBTypeConversion::toDateTime(rString); in convertDateTimeString()
220 …eNode::convertTimeString(const SQLParseNodeParameter& rParam, const ::rtl::OUString& rString) const in convertTimeString()
223 Time aTime = DBTypeConversion::toTime(rString); in convertTimeString()
234 void OSQLParseNode::parseNodeToStr(::rtl::OUString& rString, in parseNodeToStr() argument
243 rString, _rxConnection, NULL, NULL, in parseNodeToStr()
249 void OSQLParseNode::parseNodeToPredicateStr(::rtl::OUString& rString, in parseNodeToPredicateStr() argument
261 …parseNodeToStr(rString, _rxConnection, xFormatter, NULL, rIntl, pContext, sal_True, sal_True, _cDe… in parseNodeToPredicateStr()
265 void OSQLParseNode::parseNodeToPredicateStr(::rtl::OUString& rString, in parseNodeToPredicateStr() argument
278 …parseNodeToStr( rString, _rxConnection, xFormatter, _xField, rIntl, pContext, true, true, _cDec, t… in parseNodeToPredicateStr()
282 void OSQLParseNode::parseNodeToStr(::rtl::OUString& rString, in parseNodeToStr() argument
300 ::rtl::OUStringBuffer sBuffer = rString; in parseNodeToStr()
317 rString = sBuffer.makeStringAndClear(); in parseNodeToStr()
366 void OSQLParseNode::impl_parseNodeToString_throw(::rtl::OUStringBuffer& rString, const SQLParseNode… in impl_parseNodeToString_throw() argument
371 parseLeaf(rString,rParam); in impl_parseNodeToString_throw()
384 if(rString.getLength()) in impl_parseNodeToString_throw()
385 rString.appendAscii(" "); in impl_parseNodeToString_throw()
387 m_aChildren[0]->impl_parseNodeToString_throw( rString, rParam ); in impl_parseNodeToString_throw()
390 m_aChildren[0]->impl_parseNodeToString_throw( rString, rParam ); in impl_parseNodeToString_throw()
391 rString.append(m_aChildren[1]->m_aNodeValue); in impl_parseNodeToString_throw()
395 m_aChildren[0]->impl_parseNodeToString_throw( rString, rParam ); in impl_parseNodeToString_throw()
396 rString.append(m_aChildren[1]->m_aNodeValue); in impl_parseNodeToString_throw()
397 rString.append(m_aChildren[2]->m_aNodeValue); in impl_parseNodeToString_throw()
407 impl_parseTableRangeNodeToString_throw( rString, rParam ); in impl_parseNodeToString_throw()
414 bHandled = impl_parseTableNameNodeToString_throw( rString, rParam ); in impl_parseNodeToString_throw()
419 rString.append(::rtl::OUString::createFromAscii( " AS" )); in impl_parseNodeToString_throw()
427 impl_parseLikeNodeToString_throw( rString, rParam ); in impl_parseNodeToString_throw()
438 if (!addDateValue(rString, rParam)) in impl_parseNodeToString_throw()
444 m_aChildren[0]->impl_parseNodeToString_throw( rString, aNewParam ); in impl_parseNodeToString_throw()
462 rString.append(aStringPara.makeStringAndClear()); in impl_parseNodeToString_throw()
536 pSubTree->impl_parseNodeToString_throw( rString, aNewParam ); in impl_parseNodeToString_throw()
541 rString.appendAscii(","); in impl_parseNodeToString_throw()
546 pSubTree->impl_parseNodeToString_throw( rString, aNewParam ); in impl_parseNodeToString_throw()
553 rString.appendAscii(";"); in impl_parseNodeToString_throw()
555 rString.appendAscii(","); in impl_parseNodeToString_throw()
563 bool OSQLParseNode::impl_parseTableNameNodeToString_throw( ::rtl::OUStringBuffer& rString, const SQ… in impl_parseTableNameNodeToString_throw() argument
629 rString.appendAscii( " ( " ); in impl_parseTableNameNodeToString_throw()
630 rString.append(sCommand); in impl_parseTableNameNodeToString_throw()
631 rString.appendAscii( " )" ); in impl_parseTableNameNodeToString_throw()
637 rString.appendAscii( " AS " ); in impl_parseTableNameNodeToString_throw()
639 rString.append(SetQuotation( sTableOrQueryName, in impl_parseTableNameNodeToString_throw()
662 void OSQLParseNode::impl_parseTableRangeNodeToString_throw(::rtl::OUStringBuffer& rString, const SQ… in impl_parseTableRangeNodeToString_throw() argument
669 …boost::bind( &OSQLParseNode::impl_parseNodeToString_throw, _1, boost::ref( rString ), boost::cref(… in impl_parseTableRangeNodeToString_throw()
673 void OSQLParseNode::impl_parseLikeNodeToString_throw( ::rtl::OUStringBuffer& rString, const SQLPars… in impl_parseLikeNodeToString_throw() argument
711 m_aChildren[0]->impl_parseNodeToString_throw( rString, aNewParam ); in impl_parseLikeNodeToString_throw()
714 pPart2->getChild(0)->impl_parseNodeToString_throw( rString, aNewParam ); in impl_parseLikeNodeToString_throw()
715 pPart2->getChild(1)->impl_parseNodeToString_throw( rString, aNewParam ); in impl_parseLikeNodeToString_throw()
722 rString.appendAscii(" "); in impl_parseLikeNodeToString_throw()
723 …rString.append(SetQuotation(aStr,::rtl::OUString::createFromAscii("\'"),::rtl::OUString::createFro… in impl_parseLikeNodeToString_throw()
726 pParaNode->impl_parseNodeToString_throw( rString, aNewParam ); in impl_parseLikeNodeToString_throw()
728 pEscNode->impl_parseNodeToString_throw( rString, aNewParam ); in impl_parseLikeNodeToString_throw()
1706 sal_Bool OSQLParseNode::addDateValue(::rtl::OUStringBuffer& rString, const SQLParseNodeParameter& r… in addDateValue() argument
1737 if (rString.getLength()) in addDateValue()
1738 rString.appendAscii(" "); in addDateValue()
1739 rString.append(suQuote); in addDateValue()
1743 rString.append(rParam.bPredicate ? convertDateString(rParam, sTokenValue) : sTokenValue); in addDateValue()
1747 rString.append(rParam.bPredicate ? convertTimeString(rParam, sTokenValue) : sTokenValue); in addDateValue()
1751 rString.append(rParam.bPredicate ? convertDateTimeString(rParam, sTokenValue) : sTokenValue); in addDateValue()
1753 rString.append(suQuote); in addDateValue()
2247 void OSQLParseNode::showParseTree( ::rtl::OUString& rString ) const in showParseTree()
2251 rString = aBuf.makeStringAndClear(); in showParseTree()
2455 void OSQLParseNode::parseLeaf(::rtl::OUStringBuffer& rString, const SQLParseNodeParameter& rParam) … in parseLeaf() argument
2464 if (rString.getLength()) in parseLeaf()
2465 rString.appendAscii(" "); in parseLeaf()
2468 rString.append( ::rtl::OStringToOUString( sT, RTL_TEXTENCODING_UTF8)); in parseLeaf()
2471 if (rString.getLength()) in parseLeaf()
2472 rString.appendAscii(" "); in parseLeaf()
2473 …rString.append(SetQuotation(m_aNodeValue,::rtl::OUString::createFromAscii("\'"),::rtl::OUString::c… in parseLeaf()
2476 if (rString.getLength()) in parseLeaf()
2478 switch(rString.charAt(rString.getLength()-1) ) in parseLeaf()
2484 … || rString.charAt( rString.getLength()-1 ) != rParam.aMetaData.getCatalogSeparator().toChar() in parseLeaf()
2486 rString.appendAscii(" "); break; in parseLeaf()
2493 rString.appendAscii("["); in parseLeaf()
2494 rString.append(m_aNodeValue); in parseLeaf()
2495 rString.appendAscii("]"); in parseLeaf()
2498 rString.append(SetQuotation(m_aNodeValue, in parseLeaf()
2502 rString.append(m_aNodeValue); in parseLeaf()
2505 if (rString.getLength()) in parseLeaf()
2506 rString.appendAscii(" "); in parseLeaf()
2507 rString.appendAscii("#"); in parseLeaf()
2508 rString.append(m_aNodeValue); in parseLeaf()
2509 rString.appendAscii("#"); in parseLeaf()
2519 if (rString.getLength()) in parseLeaf()
2520 rString.appendAscii(" "); in parseLeaf()
2521 rString.append(aTmp); in parseLeaf()
2527 rString.append(m_aNodeValue); in parseLeaf()
2532 … if (rString.getLength() && m_aNodeValue.toChar() != '.' && m_aNodeValue.toChar() != ':' ) in parseLeaf()
2534 switch( rString.charAt(rString.getLength()-1) ) in parseLeaf()
2540 … || rString.charAt( rString.getLength()-1 ) != rParam.aMetaData.getCatalogSeparator().toChar() in parseLeaf()
2542 rString.appendAscii(" "); break; in parseLeaf()
2545 rString.append(m_aNodeValue); in parseLeaf()