textproc/p5-String-ToIdentifier-EN 0.12 DragonFly
Convert Strings to English Program Identifiers
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- perl5, textproc
- Package size
- 15.0 KiB, 52.4 KiB installed
Description
String::ToIdentifier::EN provides a utility method, "to_identifier" for converting an arbitrary string into a readable representation using the ASCII subset of \w for use as an identifier in a computer program. The intent is to make unique identifier names from which the content of the original string can be easily inferred by a human just by reading the identifier.
If you need the full set of \w including Unicode, see the subclass String::ToIdentifier::EN::Unicode.
Currently, this process is one way only, and will likely remain this way.
The default is to create camelCase identifiers, or you may pass in a separator char of your choice such as _.
Binary char groups will be separated by _ even in camelCase identifiers to make them easier to read, e.g.: foo_2_0xFF_Bar.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | textproc/p5-String-ToIdentifier-EN | 0.12 |
| FreeBSD | textproc/p5-String-ToIdentifier-EN | 0.12 |
| OpenBSD | textproc/p5-String-ToIdentifier-EN | 0.12p0 |
| NetBSD | textproc/p5-String-ToIdentifier-EN | 0.12nb9 |
| HardenedBSD | textproc/p5-String-ToIdentifier-EN | 0.12 |
| GhostBSD | textproc/p5-String-ToIdentifier-EN | 0.12 |
Install
Binary package:
pkg install p5-String-ToIdentifier-EN
From DPorts:
cd /usr/dports/textproc/p5-String-ToIdentifier-EN && make install clean