LibreOffice Module reportdesign (master) 1
Public Member Functions | Private Attributes | List of all members
rptui::ConditionalExpression Class Reference

#include <conditionalexpression.hxx>

Public Member Functions

 ConditionalExpression (const char *_pAsciiPattern)
 
OUString assembleExpression (const OUString &_rFieldDataSource, const OUString &_rLHS, const OUString &_rRHS) const
 assembles an expression string from a field data source, and one or two operands More...
 
bool matchExpression (std::u16string_view _rExpression, const std::u16string_view _rFieldDataSource, OUString &_out_rLHS, OUString &_out_rRHS) const
 matches the given expression string to the expression pattern represented by the object More...
 

Private Attributes

const OUString m_sPattern
 

Detailed Description

Definition at line 35 of file conditionalexpression.hxx.

Constructor & Destructor Documentation

◆ ConditionalExpression()

rptui::ConditionalExpression::ConditionalExpression ( const char *  _pAsciiPattern)

Definition at line 32 of file conditionalexpression.cxx.

Member Function Documentation

◆ assembleExpression()

OUString rptui::ConditionalExpression::assembleExpression ( const OUString &  _rFieldDataSource,
const OUString &  _rLHS,
const OUString &  _rRHS 
) const

assembles an expression string from a field data source, and one or two operands

Definition at line 38 of file conditionalexpression.cxx.

References m_sPattern.

◆ matchExpression()

bool rptui::ConditionalExpression::matchExpression ( std::u16string_view  _rExpression,
const std::u16string_view  _rFieldDataSource,
OUString &  _out_rLHS,
OUString &  _out_rRHS 
) const

matches the given expression string to the expression pattern represented by the object

Parameters
_rExpressionthe expression to match
_rFieldDataSourcethe field data source
_out_rLHSoutput parameter taking the left hand side operand, if successful
_out_rRHSoutput parameter taking the right hand side operand, if successful
Returns
<TRUE> if and only if the expression string could be successfully matched to the pattern.

Definition at line 67 of file conditionalexpression.cxx.

References m_sPattern, and u.

Member Data Documentation

◆ m_sPattern

const OUString rptui::ConditionalExpression::m_sPattern
private

Definition at line 38 of file conditionalexpression.hxx.

Referenced by assembleExpression(), and matchExpression().


The documentation for this class was generated from the following files: