devel/utf8cpp 4.2.1 FreeBSD
Simple, portable, lightweight library for handling UTF-8 strings
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
53aed5b6f4- License
- BSL
- Categories
- devel
- Package size
- 9.7 KiB, 57.5 KiB installed
Description
C++ developers miss an easy and portable way of handling Unicode encoded strings. The original C++ Standard (known as C++98 or C++03) is Unicode agnostic. C++11 provides some support for Unicode on core language and library level: u8, u, and U character and string literals, char16_t and char32_t character types, u16string and u32string library classes, and codecvt support for conversions between Unicode encoding forms. In the meantime, developers use third party libraries like ICU, OS specific capabilities, or simply roll out their own solutions.
In order to easily handle UTF-8 encoded Unicode strings, I came up with a small, C++98 compatible generic library. For anybody used to work with STL algorithms and iterators, it should be easy and natural to use. The code is freely available for any purpose - check out the license. The library has been used a lot in the past ten years both in commercial and open-source projects and is considered feature-complete now. If you run into bugs or performance issues, please let me know and I'll do my best to address them.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/utf8cpp | 4.2.1 |
| DragonFly | devel/utf8cpp | 4.0.6 |
| MidnightBSD | devel/utf8cpp | 4.0.5 |
Install
Binary package:
pkg install utf8cpp
From the ports tree:
cd /usr/ports/devel/utf8cpp/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= utf8cpp>0:devel/utf8cpp
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 4.2.1 | 4.2.1 | 3.2.2 | 4.0.6 | 4.2.1 |
| FreeBSD:14:quarterly | 4.2.1 | 4.2.1 | n/a | 4.0.6 | 4.2.1 |
| FreeBSD:15:latest | 4.2.1 | 4.2.1 | n/a | 4.0.6 | 4.0.6 |
| FreeBSD:15:quarterly | 4.2.1 | 4.2.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 4.2.1 | 4.2.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Required by 24
- audio/taglib
- cad/surelog
- devel/libantlr4
- devel/lief
- finance/ledger
- graphics/podofo
- multimedia/assimp
- net-p2p/transmission-components
- science/paraview
- science/ttk
- sysutils/bareos-client
- sysutils/bareos-server
- sysutils/bareos-traymonitor
- sysutils/bareos23-client
- sysutils/bareos23-server
- sysutils/bareos23-traymonitor
- sysutils/bareos24-client
- sysutils/bareos24-server
- sysutils/bareos24-traymonitor
- textproc/apertium
- textproc/libebml
- textproc/lttoolbox
- textproc/py-docling-parse
- www/rubygem-passenger
Configuration
No options to configure.
- Service scripts
- none
Files
pkg-plist 7
- include/utf8cpp/utf8.h
- include/utf8cpp/utf8/checked.h
- include/utf8cpp/utf8/core.h
- include/utf8cpp/utf8/cpp11.h
- include/utf8cpp/utf8/cpp17.h
- include/utf8cpp/utf8/cpp20.h
- include/utf8cpp/utf8/unchecked.h
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| nemtrif-utfcpp-v4.2.1_GH0.tar.gz | 39773 | 6d6a5493a111884cc085ee31babfe6d9960c8fb08fc80a64852eaeea8323dbc1 |