Skip to content

Commit

Permalink
chore: README.md and adding benchmark back
Browse files Browse the repository at this point in the history
  • Loading branch information
tiakun committed Jul 3, 2023
1 parent 8a2ffd8 commit 0ef8a5d
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Distractive.Formatters.Benchmark.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32112.339
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Distractive.Formatters", "Distractive.Formatters\Distractive.Formatters.csproj", "{1E86D219-FBA5-493C-B423-20B4AB7351EB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Distractive.Formatters.Tests", "Distractive.Formatters.Tests\Distractive.Formatters.Tests.csproj", "{BC8E2791-C0CA-4415-8525-5586B87982C1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Distractive.Formatters.Benchmark", "Distractive.Formatters.Benchmark\Distractive.Formatters.Benchmark.csproj", "{0E3A477B-9AA2-4B6B-8576-B81F1BC82866}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1E86D219-FBA5-493C-B423-20B4AB7351EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1E86D219-FBA5-493C-B423-20B4AB7351EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1E86D219-FBA5-493C-B423-20B4AB7351EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E86D219-FBA5-493C-B423-20B4AB7351EB}.Release|Any CPU.Build.0 = Release|Any CPU
{BC8E2791-C0CA-4415-8525-5586B87982C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BC8E2791-C0CA-4415-8525-5586B87982C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC8E2791-C0CA-4415-8525-5586B87982C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC8E2791-C0CA-4415-8525-5586B87982C1}.Release|Any CPU.Build.0 = Release|Any CPU
{0E3A477B-9AA2-4B6B-8576-B81F1BC82866}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0E3A477B-9AA2-4B6B-8576-B81F1BC82866}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E3A477B-9AA2-4B6B-8576-B81F1BC82866}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E3A477B-9AA2-4B6B-8576-B81F1BC82866}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B86AAA46-BF9C-4444-90B4-787E64A2E1E6}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions Distractive.Formatters.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Distractive.Formatters", "D
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Distractive.Formatters.Tests", "Distractive.Formatters.Tests\Distractive.Formatters.Tests.csproj", "{BC8E2791-C0CA-4415-8525-5586B87982C1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Distractive.Formatters.Benchmark", "Distractive.Formatters.Benchmark\Distractive.Formatters.Benchmark.csproj", "{00AC1F92-3392-42FF-A38A-7B9AEA4AA98C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -21,6 +23,10 @@ Global
{BC8E2791-C0CA-4415-8525-5586B87982C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC8E2791-C0CA-4415-8525-5586B87982C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC8E2791-C0CA-4415-8525-5586B87982C1}.Release|Any CPU.Build.0 = Release|Any CPU
{00AC1F92-3392-42FF-A38A-7B9AEA4AA98C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00AC1F92-3392-42FF-A38A-7B9AEA4AA98C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00AC1F92-3392-42FF-A38A-7B9AEA4AA98C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00AC1F92-3392-42FF-A38A-7B9AEA4AA98C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
16 changes: 16 additions & 0 deletions Distractive.Formatters/Distractive.Formatters.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@
<TargetFrameworks>net6.0;netstandard2.0;netstandard2.1</TargetFrameworks>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<Authors>Distractive Team</Authors>
<PackageTags>thai;baht;text;formatter</PackageTags>
<PackageProjectUrl>https://github.com/DistractiveTeam/Distractive.Formatters</PackageProjectUrl>
<PackageIcon>icons8-hiragana-ma-100.png</PackageIcon>
<RepositoryUrl>https://github.com/DistractiveTeam/Distractive.Formatters.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<ItemGroup>
<None Remove="icons8-hiragana-ma-100.png" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>Distractive.Formatters.Benchmark</_Parameter1>
Expand All @@ -16,4 +28,8 @@
<PackageReference Include="IndexRange" Version="1.0.1" />
<PackageReference Include="System.Memory" Version="4.5.4" />
</ItemGroup>
<ItemGroup>
<None Include="icons8-hiragana-ma-100.png" Pack="true" PackagePath="\"/>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>
21 changes: 21 additions & 0 deletions Distractive.Formatters/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Distractive Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
48 changes: 48 additions & 0 deletions Distractive.Formatters/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Distractive Formatters

Thai number-to-text formatter.

## Description

Convert number to Thai words. Thai words and Baht text format supported.

## Getting Started

### Dependencies

.NET 6 or .NET Standard 2.0 or 2.1

### Installing

* `nuget install Distractive.Formatters`

### Usage

```
var formatter = new ThaiNumberTextFormatter();
formatter.Format(1001); // หนึ่งพันเอ็ด
formatter.GetBahtText(9.99M); // เก้าบาทเก้าสิบเก้าสตางค์
```

All public methods of ThaiNumberTextFormatter are guaranteed to be thread-safe, so using it as a static instance is safe.

## Authors

Contributors names and contact info

@tiakun

## Version History

* 1.0
* Initial Release

## License

This project is licensed under the [MIT] License - see the LICENSE.md file for details

## Acknowledgments

Inspired by
* [ThaiBahtText](https://github.com/greatfriends/ThaiBahtText)
* [NumberToThaiText](https://github.com/natthakhon/NumberToThaiText)
Binary file added Distractive.Formatters/icons8-hiragana-ma-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0ef8a5d

Please sign in to comment.