Skip to content

Commit

Permalink
Fix ReadToEnd methods and bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Nov 8, 2020
1 parent 54e1c64 commit 60c53d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<RepositoryUrl>https://github.com/GGG-KILLER/GParse</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Version>5.0.0-alpha03</Version>
<Version>5.0.0-alpha05</Version>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
2 changes: 1 addition & 1 deletion GParse/GParse.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<RepositoryUrl>https://github.com/GGG-KILLER/GParse</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Version>5.0.0-alpha04</Version>
<Version>5.0.0-alpha05</Version>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
4 changes: 2 additions & 2 deletions GParse/IO/StringCodeReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ public String ReadStringWhile ( Predicate<Char> filter )
public String ReadToEnd ( )
{
var ret = this._code.Substring ( this.Position );
this.Position = this.Length;
this.Advance ( this.Length - this.Position );
return ret;
}

Expand Down Expand Up @@ -743,7 +743,7 @@ public ReadOnlySpan<Char> ReadSpanWhile ( Predicate<Char> filter )
public ReadOnlySpan<Char> ReadSpanToEnd ( )
{
ReadOnlySpan<Char> ret = this._code.AsSpan ( this.Position );
this.Position = this.Length;
this.Advance ( this.Length - this.Position );
return ret;
}

Expand Down

0 comments on commit 60c53d5

Please sign in to comment.