https://github.com/avdv/clocale
A ruby gem which wraps the C locale functions
https://github.com/avdv/clocale
gem ruby
Last synced: 11 months ago
JSON representation
A ruby gem which wraps the C locale functions
- Host: GitHub
- URL: https://github.com/avdv/clocale
- Owner: avdv
- License: mit
- Created: 2017-11-29T22:55:32.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T04:07:11.000Z (about 2 years ago)
- Last Synced: 2025-07-09T15:06:50.345Z (12 months ago)
- Topics: gem, ruby
- Language: Ruby
- Size: 122 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clocale [![rubygem-badge][]][rubygem] [![github-badge][]][workflow] [![appveyor-badge][]][appveyor] [![codecov-badge][]][codecov]
[rubygem]: https://badge.fury.io/rb/clocale
[rubygem-badge]: https://badge.fury.io/rb/clocale.svg
[workflow]: https://github.com/avdv/clocale/actions/workflows/test.yml
[github-badge]: https://github.com/avdv/clocale/actions/workflows/test.yml/badge.svg
[appveyor]: https://ci.appveyor.com/project/avdv/clocale/branch/master
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/l7pp3mjqvocb2n9r/branch/master?svg=true
[codecov]: https://codecov.io/gh/avdv/clocale
[codecov-badge]: https://codecov.io/gh/avdv/clocale/branch/master/graph/badge.svg
This Ruby extension provides access to the C library's `setlocale`, `strxfrm`
and `strcoll` functions which are inherently useful for proper sorting
(collation) of strings.
This extension is quite similar to https://github.com/k3rni/ffi-locale but
does not use FFI because the `LC_*` constants are not stable across different C
libraries.