All Projects → p-ranav → unicode_display_width

p-ranav / unicode_display_width

Licence: MIT license
Displayed width of UTF-8 strings in Modern C++

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to unicode display width

unicode-programming
Unicode programming examples
Stars: ✭ 33 (+10%)
Mutual labels:  unicode, utf8
Core Layout
Flexbox & CSS-style Layout in Swift.
Stars: ✭ 215 (+616.67%)
Mutual labels:  display, alignment
vastringify
Type-safe Printf in C
Stars: ✭ 60 (+100%)
Mutual labels:  unicode, utf8
homoglyphs
Homoglyphs: get similar letters, convert to ASCII, detect possible languages and UTF-8 group.
Stars: ✭ 70 (+133.33%)
Mutual labels:  unicode, utf8
simdutf
Unicode routines (UTF8, UTF16): billions of characters per second.
Stars: ✭ 108 (+260%)
Mutual labels:  unicode, utf8
arrow-finder
These docs help you to find and use arrows you need more quickly
Stars: ✭ 24 (-20%)
Mutual labels:  unicode
WindowsDisplayAPI
WindowsDisplayAPI is a .Net wrapper for Windows Display and Windows CCD APIs
Stars: ✭ 67 (+123.33%)
Mutual labels:  display
xpub
POSIX Shell script to get user's display environment variables of any TTY from anywhere.
Stars: ✭ 36 (+20%)
Mutual labels:  display
elokab-terminal
Lightweight terminal emulator program that supports the Arabic language
Stars: ✭ 16 (-46.67%)
Mutual labels:  unicode
Volvo-melbus
Volvo MELBUS Bluetooth audio input and remote control with Arduino Nano
Stars: ✭ 51 (+70%)
Mutual labels:  display
chrome-extension-aspectratio219
🖥️ Fit the screen properly in fullscreen mode on monitor ultrawide with 21:9 aspect ratio (Netflix, Youtube, PrimeVideo, Crunchyroll)
Stars: ✭ 28 (-6.67%)
Mutual labels:  display
PicoVGA
VGA/TV display on Raspberry Pico
Stars: ✭ 119 (+296.67%)
Mutual labels:  display
unicode-9.0.0
JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v9.0.0’s categories, scripts, blocks, bidi, and other properties.
Stars: ✭ 16 (-46.67%)
Mutual labels:  unicode
unicode-lookup
The web's best unicode lookup tool!
Stars: ✭ 49 (+63.33%)
Mutual labels:  unicode
cacao
Callable Cancer Loci - assessment of sequencing coverage for actionable and pathogenic loci in cancer
Stars: ✭ 21 (-30%)
Mutual labels:  alignment
ArduinoMid
Opel MID display
Stars: ✭ 34 (+13.33%)
Mutual labels:  display
Words-away
防止文本的敏感词检测 - Prevent sensitive words detection of text.
Stars: ✭ 224 (+646.67%)
Mutual labels:  unicode
confusables
A nodejs library for removing confusable unicode characters from strings.
Stars: ✭ 50 (+66.67%)
Mutual labels:  unicode
HDMI-Adapter
Universal HDMI/DVI Displays with Touch Panel for Raspberry Pi, BeagleBone, ODROID, UDOO...
Stars: ✭ 60 (+100%)
Mutual labels:  display
miraclecast
Connect external monitors to your system via Wifi-Display specification also known as Miracast
Stars: ✭ 17 (-43.33%)
Mutual labels:  display

display_width

Cross-platform single-header library to calculate the display width of UTF-8 strings.

Quick Start

#include <unicode/display_width.hpp>

int main() {
    const std::string input = u8"Hello, world!";
    
    // Calculate display width
    const auto result = unicode::display_width(input);
    
    // Verify result
    std::cout << "Input  : " << input << "\n";
    std::cout << "Output : " << std::string(result, '|') << "\n";
    std::cout << "Width  : " << result << "\n\n";
}

hello_world

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].