Skip to content

Commit

Permalink
Unify formatting part of BigInteger of CoreLib (dotnet#97889)
Browse files Browse the repository at this point in the history
* Revert "Remove Formatting.Common for PR"

This reverts commit bcc70e3.

* Move NumberToString and dependencies to Common

* NumberToStringFormat and ParseFormatSpecifier

* Polyfill for CoreLib internal members

* Use common formatting for BigInteger

* Remove unused FormatProvider and comments

* Move CharStackBufferSize to CoreLib for now

* Ue AOOE.ThrowIf method

* Convert typeof assert to sizeof

* Fix buffer length and type of span

* Fix exponent length

* Move unused DecimalPrecision back to CoreLib

* Port conflicting diffs
  • Loading branch information
huoyaoyuan authored Mar 22, 2024
1 parent b549229 commit 80d37dd
Show file tree
Hide file tree
Showing 10 changed files with 1,274 additions and 2,890 deletions.
1,191 changes: 1,191 additions & 0 deletions src/libraries/Common/src/System/Number.Formatting.Common.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,9 @@
<Compile Include="$(CommonPath)System\NotImplemented.cs">
<Link>Common\System\NotImplemented.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Number.Formatting.Common.cs">
<Link>System\Number.Formatting.Common.cs</Link>
</Compile>
<Compile Include="$(CommonPath)System\Number.NumberBuffer.cs">
<Link>System\Number.NumberBuffer.cs</Link>
</Compile>
Expand Down
Loading

0 comments on commit 80d37dd

Please sign in to comment.