Class SubStringKit
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
Mode
Gets or sets the activation mode for substring extraction.
public SubStringKit.ActivationMode Mode { get; set; }
Property Value
Methods
GetScript(string)
Gets the script part from the raw text based on the activation pattern.
public string GetScript(string rawText)
Parameters
rawText
stringThe 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
stringThe raw text to process
script
stringOutput 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