README
1NAME
2 Text::NonWideChar::Util - Utility routines for text
3
4VERSION
5 This document describes version 0.004 of Text::NonWideChar::Util (from
6 Perl distribution Text-NonWideChar-Util), released on 2021-04-16.
7
8SYNOPSIS
9 use Text::NonWideChar::Util qw(
10 length_height);
11
12 # get length as well as number of lines
13 say mbswidth_height("one\ntwo\nthree"); # => [5, 3]
14
15DESCRIPTION
16 This module provides the non-wide version of some of the routines in
17 Text::WideChar::Util.
18
19FUNCTIONS
20 length_height($text) => [INT, INT]
21 This is the non-wide version of "mbswidth_height()" and can be used if
22 your text only contains printable ASCII characters and newlines.
23
24FAQ
25 Why split functionalities of wide character and color support into multiple modules/distributions?
26 Performance (see numbers in the function description), dependency
27 (Unicode::GCString is used for wide character support), and overhead
28 (loading Unicode::GCString).
29
30HOMEPAGE
31 Please visit the project's homepage at
32 <https://metacpan.org/release/Text-NonWideChar-Util>.
33
34SOURCE
35 Source repository is at
36 <https://github.com/perlancar/perl-Text-NonWideChar-Util>.
37
38BUGS
39 Please report any bugs or feature requests on the bugtracker website
40 <https://github.com/perlancar/perl-Text-NonWideChar-Util/issues>
41
42 When submitting a bug or request, please include a test-file or a patch
43 to an existing test-file that illustrates the bug or desired feature.
44
45SEE ALSO
46 Text::WideChar::Util
47
48 String::Pad, Text::Wrap
49
50 Text::ANSI::Util, Text::ANSI::WideUtil
51
52AUTHOR
53 perlancar <perlancar@cpan.org>
54
55COPYRIGHT AND LICENSE
56 This software is copyright (c) 2021, 2016 by perlancar@cpan.org.
57
58 This is free software; you can redistribute it and/or modify it under
59 the same terms as the Perl 5 programming language system itself.
60
61