[go: nahoru, domu]

Skip to content

Commit

Permalink
RemoveEmptyEntries on CutLastElements too
Browse files Browse the repository at this point in the history
  • Loading branch information
Guiorgy committed Feb 4, 2024
1 parent d6c2431 commit 25689c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public bool MoveNext()
{
EnumerationDone = true;

if(delimiterIndex != -1 && RemoveEmptyEntries && CountExceedingBehaviour == CountExceedingBehaviour.IncludeRemainingElements) // skip all empty (after trimming if necessary) entries from the left
if(delimiterIndex != -1 && RemoveEmptyEntries) // skip all empty (after trimming if necessary) entries from the left
{
do
{
Expand All @@ -86,6 +86,10 @@ public bool MoveNext()
continue;
}

if(CountExceedingBehaviour == CountExceedingBehaviour.CutLastElements)

Check failure on line 89 in src/Enumerators/Split/SpanSplitStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in src/Enumerators/Split/SpanSplitStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in src/Enumerators/Split/SpanSplitStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)
{
Span = beforeDelimiter;
}
break;
}
while(delimiterIndex != -1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public bool MoveNext()
{
EnumerationDone = true;

if(delimiterIndex != -1 && RemoveEmptyEntries && CountExceedingBehaviour == CountExceedingBehaviour.IncludeRemainingElements) // skip all empty (after trimming if necessary) entries from the left
if(delimiterIndex != -1 && RemoveEmptyEntries) // skip all empty (after trimming if necessary) entries from the left
{
do
{
Expand All @@ -86,6 +86,10 @@ public bool MoveNext()
continue;
}

if(CountExceedingBehaviour == CountExceedingBehaviour.CutLastElements)

Check failure on line 89 in src/Enumerators/SplitAny/SpanSplitAnyStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in src/Enumerators/SplitAny/SpanSplitAnyStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in src/Enumerators/SplitAny/SpanSplitAnyStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)
{
Span = beforeDelimiter;
}
break;
}
while(delimiterIndex != -1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public bool MoveNext()
{
EnumerationDone = true;

if(delimiterIndex != -1 && RemoveEmptyEntries && CountExceedingBehaviour == CountExceedingBehaviour.IncludeRemainingElements) // skip all empty (after trimming if necessary) entries from the left
if(delimiterIndex != -1 && RemoveEmptyEntries) // skip all empty (after trimming if necessary) entries from the left
{
do
{
Expand All @@ -87,6 +87,10 @@ public bool MoveNext()
continue;
}

if(CountExceedingBehaviour == CountExceedingBehaviour.CutLastElements)

Check failure on line 90 in src/Enumerators/SplitSequence/SpanSplitSequenceStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 90 in src/Enumerators/SplitSequence/SpanSplitSequenceStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 90 in src/Enumerators/SplitSequence/SpanSplitSequenceStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 90 in src/Enumerators/SplitSequence/SpanSplitSequenceStringSplitOptionsWithCountEnumerator.cs

View workflow job for this annotation

GitHub Actions / build

'CountExceedingBehaviour' does not contain a definition for 'CutLastElements' and no accessible extension method 'CutLastElements' accepting a first argument of type 'CountExceedingBehaviour' could be found (are you missing a using directive or an assembly reference?)
{
Span = beforeDelimiter;
}
break;
}
while(delimiterIndex != -1);
Expand Down

0 comments on commit 25689c3

Please sign in to comment.