diff --git a/src/Sep.Test/SepReaderColTest.cs b/src/Sep.Test/SepReaderColTest.cs index 5f45a4cf..c5a20727 100644 --- a/src/Sep.Test/SepReaderColTest.cs +++ b/src/Sep.Test/SepReaderColTest.cs @@ -42,7 +42,7 @@ public void SepReaderColTest_ToString() [TestMethod] public void SepReaderColTest_ToStringRaw() { - Run(col => Assert.AreEqual(ColText, col.ToStringRaw())); + Run(col => Assert.AreEqual(ColText, col.ToStringDirect())); Run(col => Assert.AreSame(string.Empty, col.ToString()), ""); } diff --git a/src/Sep.Test/SepReaderColsTest.cs b/src/Sep.Test/SepReaderColsTest.cs index e4199125..e2599ca4 100644 --- a/src/Sep.Test/SepReaderColsTest.cs +++ b/src/Sep.Test/SepReaderColsTest.cs @@ -174,7 +174,7 @@ public unsafe void SepReaderColsTest_Select_MethodPointer_ToString() [TestMethod] public void SepReaderColsTest_Select_ToStringRaw() { - Run((cols, range) => CollectionAssert.AreEqual(_colTexts[range], cols.Select(c => c.ToStringRaw()).ToArray())); + Run((cols, range) => CollectionAssert.AreEqual(_colTexts[range], cols.Select(c => c.ToStringDirect()).ToArray())); } static string ToString(SepReader.Col col) => col.ToString(); diff --git a/src/Sep/SepReader.Col.cs b/src/Sep/SepReader.Col.cs index 5be8f1d3..743d6ee8 100644 --- a/src/Sep/SepReader.Col.cs +++ b/src/Sep/SepReader.Col.cs @@ -26,7 +26,7 @@ internal Col(SepReaderState state, int colIndex) // Allow opt out of pooling and don't add yet another configuration option [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal string ToStringRaw() => _state.ToStringRaw(_colIndex); + internal string ToStringDirect() => _state.ToStringDirect(_colIndex); [MethodImpl(MethodImplOptions.AggressiveInlining)] public T Parse() where T : ISpanParsable => _state.Parse(_colIndex); diff --git a/src/Sep/SepReader.Row.cs b/src/Sep/SepReader.Row.cs index 126cd266..2200c0c8 100644 --- a/src/Sep/SepReader.Row.cs +++ b/src/Sep/SepReader.Row.cs @@ -200,7 +200,7 @@ ColDebugView[] GetCols() var maybeHeader = _state._hasHeader ? _state._header : null; for (var colIndex = 0; colIndex < cols.Length; colIndex++) { - var colValue = row[colIndex].ToStringRaw(); + var colValue = row[colIndex].ToStringDirect(); cols[colIndex] = new(colIndex, maybeHeader?.ColNames[colIndex], colValue); } return cols; diff --git a/src/Sep/SepReader.cs b/src/Sep/SepReader.cs index 193cc1e7..37fb1021 100644 --- a/src/Sep/SepReader.cs +++ b/src/Sep/SepReader.cs @@ -113,7 +113,7 @@ internal void Initialize(SepReaderOptions options) var colNameToIndex = new Dictionary(_colCount); for (var colIndex = 0; colIndex < _colCount; colIndex++) { - var colName = ToStringRaw(colIndex); + var colName = ToStringDirect(colIndex); colNameToIndex.Add(colName, colIndex); } var headerRow = new string(RowSpan()); diff --git a/src/Sep/SepReaderState.cs b/src/Sep/SepReaderState.cs index 43a75528..5463fd48 100644 --- a/src/Sep/SepReaderState.cs +++ b/src/Sep/SepReaderState.cs @@ -169,7 +169,7 @@ internal string ToStringDefault(int index) return _toString.ToString(span, index); } - internal string ToStringRaw(int index) + internal string ToStringDirect(int index) { var span = GetColSpan(index); var s = TryGetStaticallyCachedString(span);