This commit is contained in:
@@ -22,7 +22,7 @@ internal static class PlaceholderFinder
|
||||
return FindInDocument(doc, [.. doc.WorkbookPart.WorksheetParts]);
|
||||
}
|
||||
|
||||
private static void ProcessWorksheet(WorksheetPart wsPart, SharedStringTable? sharedStrings, ISet<string> result)
|
||||
static void ProcessWorksheet(WorksheetPart wsPart, SharedStringTable? sharedStrings, ISet<string> result)
|
||||
{
|
||||
var worksheet = wsPart.Worksheet;
|
||||
if (worksheet is null) return;
|
||||
@@ -31,7 +31,7 @@ internal static class PlaceholderFinder
|
||||
ProcessHeaderFooter(worksheet, result);
|
||||
}
|
||||
|
||||
private static void ProcessCells(Worksheet worksheet, SharedStringTable? sharedStrings, ISet<string> result)
|
||||
static void ProcessCells(Worksheet worksheet, SharedStringTable? sharedStrings, ISet<string> result)
|
||||
{
|
||||
var sheetData = worksheet.GetFirstChild<SheetData>();
|
||||
if (sheetData is null) return;
|
||||
@@ -59,7 +59,7 @@ internal static class PlaceholderFinder
|
||||
}
|
||||
}
|
||||
|
||||
private static void ProcessHeaderFooter(Worksheet worksheet, ISet<string> result)
|
||||
static void ProcessHeaderFooter(Worksheet worksheet, ISet<string> result)
|
||||
{
|
||||
var hf = worksheet.Descendants<HeaderFooter>().FirstOrDefault();
|
||||
if (hf is null) return;
|
||||
@@ -84,7 +84,7 @@ internal static class PlaceholderFinder
|
||||
}
|
||||
}
|
||||
|
||||
private static string GetCellValue(Cell cell, SharedStringTable? sharedStrings)
|
||||
static string GetCellValue(Cell cell, SharedStringTable? sharedStrings)
|
||||
{
|
||||
if (cell?.CellValue is null && cell?.InlineString is null)
|
||||
return string.Empty;
|
||||
@@ -107,7 +107,7 @@ internal static class PlaceholderFinder
|
||||
return raw;
|
||||
}
|
||||
|
||||
private static unsafe bool FindPlaceholdersInText(string text, ref List<string>? output)
|
||||
static unsafe bool FindPlaceholdersInText(string text, ref List<string>? output)
|
||||
{
|
||||
fixed (char* pText = text)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user