C++ Logo

SG16

Advanced search

Subject: Implementing a name to codepoint mapping
From: Corentin Jabot (corentinjabot_at_[hidden])
Date: 2019-12-11 11:41:41


Hello
I wanted to confirm that the data needed by P1097 Named character escapes
<https://wg21.link/p1097r2> fit in 240-270 KB

I have implemented a cp_from_name function that is constexpr and non
allocating

It can be played with on compiler explorer https://godbolt.org/z/Su3HR8
I describe the method used here https://cor3ntin.github.io/posts/name_to_cp/
The implementation is here
https://github.com/cor3ntin/ext-unicode-db/tree/name_to_cp - although I
should apologize for the messiness of that repository.

Thanks,

Corentin



SG16 list run by herb.sutter at gmail.com