├── .github ├── dependabot.yml └── workflows │ ├── check.yml │ └── test.yml ├── .gitignore ├── .gitmodules ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── justfile ├── num-format-benches ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── benches │ └── bench_usize.rs ├── python │ └── bench.py └── src │ └── lib.rs ├── num-format-dev ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md └── src │ ├── create_module.rs │ ├── lib.rs │ ├── main.rs │ ├── parse_data.rs │ └── utils │ ├── format.rs │ ├── grouping.rs │ └── mod.rs ├── num-format-windows ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── README.tpl ├── build.rs ├── src │ └── lib.rs └── wrapper.h └── num-format ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── README.tpl ├── src ├── buffer.rs ├── constants.rs ├── custom_format.rs ├── custom_format_builder.rs ├── error.rs ├── error_kind.rs ├── format.rs ├── grouping.rs ├── impls.rs ├── impls │ ├── integers.rs │ └── num.rs ├── lib.rs ├── locale.rs ├── parsing.rs ├── strings.rs ├── system_locale.rs ├── system_locale │ ├── nix.rs │ ├── nix │ │ ├── bsd.rs │ │ ├── encoding.rs │ │ └── linux.rs │ └── windows.rs ├── to_formatted_str.rs ├── to_formatted_string.rs └── write_formatted.rs └── tests ├── common └── mod.rs ├── test_errors.rs ├── test_no_bytes_written.rs ├── test_non_zero.rs ├── test_num_bigint.rs ├── test_serialization.rs ├── test_signed.rs ├── test_system_locale_unix.rs ├── test_system_locale_windows.rs └── test_unsigned.rs /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/.github/workflows/check.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/.gitmodules -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/README.md -------------------------------------------------------------------------------- /justfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/justfile -------------------------------------------------------------------------------- /num-format-benches/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-benches/Cargo.toml -------------------------------------------------------------------------------- /num-format-benches/LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-benches/LICENSE-APACHE -------------------------------------------------------------------------------- /num-format-benches/LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-benches/LICENSE-MIT -------------------------------------------------------------------------------- /num-format-benches/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-benches/README.md -------------------------------------------------------------------------------- /num-format-benches/benches/bench_usize.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-benches/benches/bench_usize.rs -------------------------------------------------------------------------------- /num-format-benches/python/bench.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-benches/python/bench.py -------------------------------------------------------------------------------- /num-format-benches/src/lib.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /num-format-dev/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/Cargo.toml -------------------------------------------------------------------------------- /num-format-dev/LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/LICENSE-APACHE -------------------------------------------------------------------------------- /num-format-dev/LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/LICENSE-MIT -------------------------------------------------------------------------------- /num-format-dev/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/README.md -------------------------------------------------------------------------------- /num-format-dev/src/create_module.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/src/create_module.rs -------------------------------------------------------------------------------- /num-format-dev/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/src/lib.rs -------------------------------------------------------------------------------- /num-format-dev/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/src/main.rs -------------------------------------------------------------------------------- /num-format-dev/src/parse_data.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/src/parse_data.rs -------------------------------------------------------------------------------- /num-format-dev/src/utils/format.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/src/utils/format.rs -------------------------------------------------------------------------------- /num-format-dev/src/utils/grouping.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/src/utils/grouping.rs -------------------------------------------------------------------------------- /num-format-dev/src/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-dev/src/utils/mod.rs -------------------------------------------------------------------------------- /num-format-windows/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-windows/Cargo.toml -------------------------------------------------------------------------------- /num-format-windows/LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-windows/LICENSE-APACHE -------------------------------------------------------------------------------- /num-format-windows/LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-windows/LICENSE-MIT -------------------------------------------------------------------------------- /num-format-windows/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-windows/README.md -------------------------------------------------------------------------------- /num-format-windows/README.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-windows/README.tpl -------------------------------------------------------------------------------- /num-format-windows/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-windows/build.rs -------------------------------------------------------------------------------- /num-format-windows/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format-windows/src/lib.rs -------------------------------------------------------------------------------- /num-format-windows/wrapper.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /num-format/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/Cargo.toml -------------------------------------------------------------------------------- /num-format/LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/LICENSE-APACHE -------------------------------------------------------------------------------- /num-format/LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/LICENSE-MIT -------------------------------------------------------------------------------- /num-format/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/README.md -------------------------------------------------------------------------------- /num-format/README.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/README.tpl -------------------------------------------------------------------------------- /num-format/src/buffer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/buffer.rs -------------------------------------------------------------------------------- /num-format/src/constants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/constants.rs -------------------------------------------------------------------------------- /num-format/src/custom_format.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/custom_format.rs -------------------------------------------------------------------------------- /num-format/src/custom_format_builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/custom_format_builder.rs -------------------------------------------------------------------------------- /num-format/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/error.rs -------------------------------------------------------------------------------- /num-format/src/error_kind.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/error_kind.rs -------------------------------------------------------------------------------- /num-format/src/format.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/format.rs -------------------------------------------------------------------------------- /num-format/src/grouping.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/grouping.rs -------------------------------------------------------------------------------- /num-format/src/impls.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/impls.rs -------------------------------------------------------------------------------- /num-format/src/impls/integers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/impls/integers.rs -------------------------------------------------------------------------------- /num-format/src/impls/num.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/impls/num.rs -------------------------------------------------------------------------------- /num-format/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/lib.rs -------------------------------------------------------------------------------- /num-format/src/locale.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/locale.rs -------------------------------------------------------------------------------- /num-format/src/parsing.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/parsing.rs -------------------------------------------------------------------------------- /num-format/src/strings.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/strings.rs -------------------------------------------------------------------------------- /num-format/src/system_locale.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/system_locale.rs -------------------------------------------------------------------------------- /num-format/src/system_locale/nix.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/system_locale/nix.rs -------------------------------------------------------------------------------- /num-format/src/system_locale/nix/bsd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/system_locale/nix/bsd.rs -------------------------------------------------------------------------------- /num-format/src/system_locale/nix/encoding.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/system_locale/nix/encoding.rs -------------------------------------------------------------------------------- /num-format/src/system_locale/nix/linux.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/system_locale/nix/linux.rs -------------------------------------------------------------------------------- /num-format/src/system_locale/windows.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/system_locale/windows.rs -------------------------------------------------------------------------------- /num-format/src/to_formatted_str.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/to_formatted_str.rs -------------------------------------------------------------------------------- /num-format/src/to_formatted_string.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/to_formatted_string.rs -------------------------------------------------------------------------------- /num-format/src/write_formatted.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/src/write_formatted.rs -------------------------------------------------------------------------------- /num-format/tests/common/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/common/mod.rs -------------------------------------------------------------------------------- /num-format/tests/test_errors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_errors.rs -------------------------------------------------------------------------------- /num-format/tests/test_no_bytes_written.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_no_bytes_written.rs -------------------------------------------------------------------------------- /num-format/tests/test_non_zero.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_non_zero.rs -------------------------------------------------------------------------------- /num-format/tests/test_num_bigint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_num_bigint.rs -------------------------------------------------------------------------------- /num-format/tests/test_serialization.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_serialization.rs -------------------------------------------------------------------------------- /num-format/tests/test_signed.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_signed.rs -------------------------------------------------------------------------------- /num-format/tests/test_system_locale_unix.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_system_locale_unix.rs -------------------------------------------------------------------------------- /num-format/tests/test_system_locale_windows.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_system_locale_windows.rs -------------------------------------------------------------------------------- /num-format/tests/test_unsigned.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcmyers/num-format/HEAD/num-format/tests/test_unsigned.rs --------------------------------------------------------------------------------