7 references to TranslatableSpanMarker
Microsoft.DotNet.XliffTasks (7)
Model\UnstructuredDocument.cs (7)
27
int spanStart = text.IndexOf(
TranslatableSpanMarker
);
35
lastSpanEnd = text.IndexOf(
TranslatableSpanMarker
, spanStart + 1);
38
throw new InvalidOperationException($"No end of span marker '{
TranslatableSpanMarker
}' found.");
41
lastSpanEnd +=
TranslatableSpanMarker
.Length; // account for the length of the end marker
42
int spanLength = lastSpanEnd - spanStart -
TranslatableSpanMarker
.Length * 2; // trim off the marker start/end length
43
string translatableSpan = text.Substring(spanStart +
TranslatableSpanMarker
.Length, spanLength);
59
: text.IndexOf(
TranslatableSpanMarker
, lastSpanEnd + 1);