p5-Text-CharWidth - Get number of occupied columns of a string on terminal

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Latest amd64
Package filename p5-Text-CharWidth-0.04_1.txz
Package name p5-Text-CharWidth
Package version 0.04
Package release 1
Package architecture amd64
Package type txz
Category perl5 textproc
Homepage https://metacpan.org/release/Text-CharWidth
License GPLv1+, ART10
Maintainer perl@FreeBSD.org
Download size 9.66 KB
Installed size 28.08 KB
This module supplies features similar as wcwidth(3) and wcswidth(3) in C
Characters have its own width on terminal depending on locale. For example,
ASCII characters occupy one column per character, east Asian fullwidth
characters (like Hiragana or Han Ideograph) occupy two columns per
character, and combining characters (apperaring in ISO-8859-11 Thai,
Unicode, and so on) occupy zero columns per character. mbwidth() gives the
width of the first character of the given string and mbswidth() gives the
width of the whole given string.
The names of mbwidth and mbswidth came from "multibyte" versions of wcwidth
and wcswidth which are "wide character" versions.
mblen(string) returns number of bytes of the first character of the string.
Please note that a character may consist of multiple bytes in multibyte
encodings such as UTF-8, EUC-JP, EUC-KR, GB2312, or Big5.
mbwidth(string) returns the width of the first character of the string.
mbswidth(string) returns the width of the whole string.
Parameters are to be given in locale encodings, not always in UTF-8.
WWW: https://metacpan.org/release/Text-CharWidth


Package Version Architecture Repository
p5-Text-CharWidth-0.04_1.txz 0.04 i386 FreeBSD Ports Latest
p5-Text-CharWidth-0.04_1.txz 0.04 amd64 FreeBSD Ports Quarterly
p5-Text-CharWidth-0.04_1.txz 0.04 i386 FreeBSD Ports Quarterly
p5-Text-CharWidth - - -


Name Value
libperl.so.5.28 -
perl5 = 5.28.1_1


Type URL
Mirror pkg.freebsd.org
Binary Package p5-Text-CharWidth-0.04_1.txz
Source Package textproc/p5-Text-CharWidth

Install Howto

Install p5-Text-CharWidth txz package:

# pkg install p5-Text-CharWidth

See Also

Package Description
p5-Text-Chomp-0.02_1.txz Module implementing a portable chomp
p5-Text-ClearSilver- Perl extension to the ClearSilver template engine
p5-Text-Colorizer-0.02.2_1.txz Create colored text from text and color description
p5-Text-Context-3.7_1.txz Handle highlighting search result context snippets
p5-Text-Context-EitherSide-1.4_1.txz Text::Context::EitherSide - Get n words either side of search keywords
p5-Text-DHCPLeases-1.0_1.txz Perl extension to parse DHCP leases file from ISC dhcpd
p5-Text-Decorator-1.65_1.txz Apply a chain of filters to text
p5-Text-Delimited-2.11_1.txz Module for parsing delimited text files
p5-Text-Diff-1.45.txz Text::Diff - Perform diffs on files and record sets
p5-Text-Diff-HTML-0.08.txz Text::Diff::HTML - XHTML format for Text::Diff::Unified
p5-Text-Diff-Parser-0.1001_1.txz Parse patch files containing unified and standard diffs
p5-Text-Diff3-0.10_1.txz Compute three-way differences between texts
p5-Text-Distill-0.2.txz Quick texts compare, plagiarism and common parts detection
p5-Text-DoubleMetaphone-0.07_1.txz Phonetic encoding of words
p5-Text-Emoticon-0.04_1.txz Factory class for Yahoo! and MSN emoticons