Skip to content

Commit 6704848

Browse files
author
LinkDotNet Bot
committed
Updating to newest release
2 parents a4e3c5e + da0a156 commit 6704848

File tree

11 files changed

+31
-25
lines changed

11 files changed

+31
-25
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/[email protected].1
25+
uses: actions/[email protected].2
2626

2727
- uses: actions/[email protected]
2828
with:

.github/workflows/create-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
steps:
2121

2222
- name: Checkout repository
23-
uses: actions/[email protected].1
23+
uses: actions/[email protected].2
2424
with:
2525
token: ${{ secrets.SBPAT }}
2626
persist-credentials: true
2727
fetch-depth: 0
2828

2929
- name: Get changelog entries
3030
id: changelog
31-
uses: mindsers/[email protected].2
31+
uses: mindsers/[email protected].3
3232
with:
3333
version: Unreleased
3434
path: ./CHANGELOG.md

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: windows-latest
1313

1414
steps:
15-
- uses: actions/[email protected].1
15+
- uses: actions/[email protected].2
1616

1717
- name: Setup .NET
1818
uses: actions/[email protected]

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/[email protected].1
15+
- uses: actions/[email protected].2
1616
- name: Setup .NET
1717
uses: actions/[email protected]
1818
with:

.github/workflows/update-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/[email protected].1
16+
uses: actions/[email protected].2
1717
with:
1818
token: ${{ secrets.SBPAT }}
1919
persist-credentials: false

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ All notable changes to **ValueStringBuilder** will be documented in this file. T
66

77
## [Unreleased]
88

9+
## [1.19.1] - 2024-04-19
10+
11+
### Changed
12+
13+
- Some smaller refactorings
14+
915
## [1.19.0] - 2024-03-02
1016

11-
## Added
17+
### Added
1218

1319
- Support for `net9.0`
1420
- New `Append` overload that accepts a single character
@@ -388,7 +394,9 @@ This release brings extensions to the `ValueStringBuilder` API. For `v1.0` the `
388394

389395
- Initial release
390396

391-
[Unreleased]: https://github.com/linkdotnet/StringBuilder/compare/1.19.0...HEAD
397+
[Unreleased]: https://github.com/linkdotnet/StringBuilder/compare/1.19.1...HEAD
398+
399+
[1.19.1]: https://github.com/linkdotnet/StringBuilder/compare/1.19.0...1.19.1
392400

393401
[1.19.0]: https://github.com/linkdotnet/StringBuilder/compare/1.18.6...1.19.0
394402

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup>
4-
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.19.0.84025">
4+
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.23.2.88755">
55
<PrivateAssets>all</PrivateAssets>
66
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
77
</PackageReference>

src/LinkDotNet.StringBuilder/TypedSpanList.cs renamed to src/LinkDotNet.StringBuilder/IntegerSpanList.cs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,28 @@ namespace LinkDotNet.StringBuilder;
66
/// <summary>
77
/// Represents a List based on the <see cref="Span{T}"/> type.
88
/// </summary>
9-
/// <typeparam name="T">Any struct.</typeparam>
109
[StructLayout(LayoutKind.Auto)]
1110
[SkipLocalsInit]
12-
internal ref struct TypedSpanList<T>
13-
where T : struct
11+
internal ref struct IntegerSpanList
1412
{
15-
private Span<T> buffer;
13+
private Span<int> buffer;
1614
private int count;
1715

1816
/// <summary>
19-
/// Initializes a new instance of the <see cref="TypedSpanList{T}"/> struct.
17+
/// Initializes a new instance of the <see cref="IntegerSpanList"/> struct.
2018
/// </summary>
2119
[MethodImpl(MethodImplOptions.AggressiveInlining)]
22-
public TypedSpanList()
20+
public IntegerSpanList()
2321
{
24-
buffer = GC.AllocateUninitializedArray<T>(8);
22+
buffer = GC.AllocateUninitializedArray<int>(8);
2523
count = 0;
2624
}
2725

2826
[MethodImpl(MethodImplOptions.AggressiveInlining)]
29-
public readonly ReadOnlySpan<T> AsSpan() => buffer[..count];
27+
public readonly ReadOnlySpan<int> AsSpan() => buffer[..count];
3028

3129
[MethodImpl(MethodImplOptions.AggressiveInlining)]
32-
public void Add(T value)
30+
public void Add(int value)
3331
{
3432
if (count >= buffer.Length)
3533
{
@@ -45,7 +43,7 @@ private void Grow(int capacity = 0)
4543
{
4644
var currentSize = buffer.Length;
4745
var newSize = capacity > 0 ? capacity : currentSize * 2;
48-
var rented = GC.AllocateUninitializedArray<T>(newSize);
46+
var rented = GC.AllocateUninitializedArray<int>(newSize);
4947
buffer[..count].CopyTo(rented);
5048
buffer = rented;
5149
}

src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
<PropertyGroup Label="Analyzer settings">
3636
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
3737
<EnableNETAnalyzers>true</EnableNETAnalyzers>
38-
<AnalysisLevel>latest</AnalysisLevel>
38+
<AnalysisLevel>8</AnalysisLevel>
3939
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
4040
</PropertyGroup>
4141

4242
<ItemGroup>
43-
<PackageReference Include="Meziantou.Analyzer" Version="2.0.145">
43+
<PackageReference Include="Meziantou.Analyzer" Version="2.0.149">
4444
<PrivateAssets>all</PrivateAssets>
4545
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4646
</PackageReference>

src/LinkDotNet.StringBuilder/NaiveSearch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static ReadOnlySpan<int> FindAll(ReadOnlySpan<char> text, ReadOnlySpan<ch
2020
return ReadOnlySpan<int>.Empty;
2121
}
2222

23-
var hits = new TypedSpanList<int>();
23+
var hits = new IntegerSpanList();
2424

2525
for (var i = 0; i < text.Length - word.Length + 1; i++)
2626
{

0 commit comments

Comments
 (0)