Text::NonWideChar::Util - Utility routines for text
This document describes version 0.004 of Text::NonWideChar::Util (from Perl distribution Text-NonWideChar-Util), released on 2021-04-16.
use Text::NonWideChar::Util qw( length_height); # get length as well as number of lines say mbswidth_height("one\ntwo\nthree"); # => [5, 3]
This module provides the non-wide version of some of the routines in Text::WideChar::Util.
This is the non-wide version of mbswidth_height() and can be used if your text only contains printable ASCII characters and newlines.
mbswidth_height()
Performance (see numbers in the function description), dependency (Unicode::GCString is used for wide character support), and overhead (loading Unicode::GCString).
Please visit the project's homepage at https://metacpan.org/release/Text-NonWideChar-Util.
Source repository is at https://github.com/perlancar/perl-Text-NonWideChar-Util.
Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-Text-NonWideChar-Util/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Text::WideChar::Util
String::Pad, Text::Wrap
Text::ANSI::Util, Text::ANSI::WideUtil
perlancar <perlancar@cpan.org>
This software is copyright (c) 2021, 2016 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Text::NonWideChar::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::NonWideChar::Util
CPAN shell
perl -MCPAN -e shell install Text::NonWideChar::Util
For more information on module installation, please visit the detailed CPAN module installation guide.