Class CodeUtils
This static class contains methods that may be used to find expressions embedded in the object's text.
Inheritance
System.Object
CodeUtils
Namespace: FastReport.Code
Assembly: FastReport.Base.dll
Syntax
public static class CodeUtils
Methods
GetExpression(FindTextArgs, Boolean)
Gets first expression found in the text.
Declaration
public static string GetExpression(FindTextArgs args, bool skipStrings)
Parameters
Type | Name | Description |
---|---|---|
FindTextArgs | args | Object with find arguments. |
System.Boolean | skipStrings | Indicates whether to skip strings. |
Returns
Type | Description |
---|---|
System.String | The expression if found; otherwise, returns null. |
GetExpressions(String, String, String)
Returns expressions found in the text.
Declaration
public static string[] GetExpressions(string text, string openBracket, string closeBracket)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text that may contain expressions. |
System.String | openBracket | The char sequence used to find the start of expression. |
System.String | closeBracket | The char sequence used to find the end of expression. |
Returns
Type | Description |
---|---|
System.String[] | Array of expressions if found; otherwise return an empty array. |