Table of Contents

Class SubStringKit

Namespace
Hi.Numerical
Assembly
HiGeom.dll

Utility class for extracting and manipulating substrings based on specific activation patterns.

public class SubStringKit
Inheritance
SubStringKit
Inherited Members
Extension Methods

Properties

ActivationRaw

Gets or sets the raw activation string used for pattern matching.

public string ActivationRaw { get; set; }

Property Value

string

Mode

Gets or sets the activation mode for substring extraction.

public SubStringKit.ActivationMode Mode { get; set; }

Property Value

SubStringKit.ActivationMode

Methods

GetScript(string)

Gets the script part from the raw text based on the activation pattern.

public string GetScript(string rawText)

Parameters

rawText string

The raw text to extract script from.

Returns

string

The extracted script, or null if no match is found.

RemoveScript(string, out string)

Removes the script part from the raw text based on the activation pattern.

public string RemoveScript(string rawText, out string script)

Parameters

rawText string

The raw text to process

script string

Output parameter that will contain the extracted script, or null if no match is found

Returns

string

The raw text with the script part and activation pattern removed