TextReplacement

Struct in Yarn.Compiler.Upgrader

Inherits from System.ValueType

Summary

Contains information describing a replacement to make in a string.

public struct TextReplacement

Fields

NameDescription
CommentA descriptive comment explaining why the substitution is necessary.
OriginalTextThe string to expect at Start in the original string.
ReplacementTextThe string to replace OriginalText with at Start .
StartThe position in the original string where the substitution should be made.
StartLineThe line in the original string where the substitution should be made.

Properties

NameDescription
OriginalLengthGets the length of OriginalText .
ReplacementLengthGets the length of ReplacementLength .