many debugs
All checks were successful
Publish NuGet packages / publish (push) Successful in 28s

This commit is contained in:
melekhin
2026-06-19 15:06:40 +07:00
parent 08b39b7bfe
commit e373d4108a
24 changed files with 1569 additions and 632 deletions

View File

@@ -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)
{