Table of Contents

Class CodeUtils

Namespace: FastReport.Olap.Code
Assembly: FastCube.Core.dll

This static class contains methods that may be used to find expressions embedded in the object's text.

public static class CodeUtils

Inheritance

objectCodeUtils

Methods

GetExpression(FindTextArgs, bool)

Gets first expression found in the text.

public static string GetExpression(FindTextArgs args, bool skipStrings)

Parameters

args FindTextArgs

Object with find arguments.

skipStrings bool

Indicates whether to skip strings.

Returns

string

The expression if found; otherwise, returns an empty string.

GetExpressions(string, string, string)

Returns expressions found in the text.

public static string[] GetExpressions(string text, string openBracket, string closeBracket)

Parameters

text string

Text that may contain expressions.

openBracket string

The char sequence used to find the start of expression.

closeBracket string

The char sequence used to find the end of expression.

Returns

string[]

Array of expressions if found; otherwise return an empty array.