Table of Contents

Class StringExpr

Namespace
Invex.StructuredText.Expressions
Assembly
Invex.StructuredText.dll

An expression that evaluates to a string.

public abstract record StringExpr : Expr
Inheritance
object
StringExpr
Derived
Inherited Members

Remarks

A plain string converts implicitly to a quoted, escaped string literal. Use Raw(string) for verbatim expression text.

Constructors

StringExpr()

protected StringExpr()

Methods

Contains(StringExpr)

Tests whether this value contains value.

public BoolExpr Contains(StringExpr value)

Parameters

value StringExpr

The substring to search for.

Returns

BoolExpr

EndsWith(StringExpr)

Tests whether this value ends with value.

public BoolExpr EndsWith(StringExpr value)

Parameters

value StringExpr

The suffix to test for.

Returns

BoolExpr

Eq(StringExpr)

Tests this value for equality with other.

public BoolExpr Eq(StringExpr other)

Parameters

other StringExpr

The value to compare with.

Returns

BoolExpr

In(JsonExpr)

Tests whether this value is one of the elements of collection.

public BoolExpr In(JsonExpr collection)

Parameters

collection JsonExpr

The array-valued expression to search.

Returns

BoolExpr

Ne(StringExpr)

Tests this value for inequality with other.

public BoolExpr Ne(StringExpr other)

Parameters

other StringExpr

The value to compare with.

Returns

BoolExpr

StartsWith(StringExpr)

Tests whether this value starts with value.

public BoolExpr StartsWith(StringExpr value)

Parameters

value StringExpr

The prefix to test for.

Returns

BoolExpr

Operators

implicit operator StringExpr(string)

Converts a string to a string literal.

public static implicit operator StringExpr(string value)

Parameters

value string

The literal value, unquoted.

Returns

StringExpr