BSD Ports

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

SystemPortVersion
FreeBSDdevel/utf8cpp4.2.1
DragonFlydevel/utf8cpp4.0.6
MidnightBSDdevel/utf8cpp4.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.2.14.2.13.2.24.0.64.2.1
FreeBSD:14:quarterly4.2.14.2.1n/a4.0.64.2.1
FreeBSD:15:latest4.2.14.2.1n/a4.0.64.0.6
FreeBSD:15:quarterly4.2.14.2.1n/an/an/a
FreeBSD:16:latest4.2.14.2.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

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
FileSizeSHA256
nemtrif-utfcpp-v4.2.1_GH0.tar.gz397736d6a5493a111884cc085ee31babfe6d9960c8fb08fc80a64852eaeea8323dbc1

Commit history 2

DateCommitCreditsLog message
53aed5b6f4 Po-Chuan Hsieh devel/utf8cpp: Update to 4.2.1
Changes: https://github.com/nemtrif/utfcpp/releases
71dbc61e3a Po-Chuan Hsieh devel/utf8cpp: Update to 4.2.0
Changes: https://github.com/nemtrif/utfcpp/releases