BSD Ports

devel/utf8cpp 4.0.5 MidnightBSD

Simple, portable, lightweight library for handling UTF-8 strings

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
BSL-1.0
Categories
devel

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

Install

Binary package:

mport install utf8cpp

From mports:

cd /usr/mports/devel/utf8cpp && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	utf8cpp>0:devel/utf8cpp

Dependencies

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.0.5_GH0.tar.gz34139ffc668a310e77607d393f3c18b32715f223da1eac4c4d6e0579a11df8e6b59cf