line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::ANSI::WideUtil; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
4
|
|
|
|
|
|
|
our $DATE = '2020-05-19'; # DATE |
5
|
|
|
|
|
|
|
our $DIST = 'Text-ANSI-WideUtil'; # DIST |
6
|
|
|
|
|
|
|
our $VERSION = '0.230'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
87386
|
use 5.010001; |
|
1
|
|
|
|
|
15
|
|
9
|
1
|
|
|
1
|
|
5
|
use strict 'subs', 'vars'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
55
|
|
10
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
568
|
use Text::WideChar::Util qw(mbswidth mbtrunc); |
|
1
|
|
|
|
|
57028
|
|
|
1
|
|
|
|
|
129
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
require Exporter; |
15
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
16
|
|
|
|
|
|
|
our @EXPORT_OK = qw( |
17
|
|
|
|
|
|
|
ta_mbpad |
18
|
|
|
|
|
|
|
ta_mbsubstr |
19
|
|
|
|
|
|
|
ta_mbswidth |
20
|
|
|
|
|
|
|
ta_mbswidth_height |
21
|
|
|
|
|
|
|
ta_mbtrunc |
22
|
|
|
|
|
|
|
ta_mbwrap |
23
|
|
|
|
|
|
|
ta_trunc |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
1
|
|
534
|
use Text::ANSI::BaseUtil (); |
|
1
|
|
|
|
|
3853
|
|
|
1
|
|
|
|
|
79
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
our $re = $Text::ANSI::BaseUtil::re; |
29
|
|
|
|
|
|
|
*{$_} = \&{"Text::ANSI::BaseUtil::$_"} for @EXPORT_OK; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
# ABSTRACT: Routines for text containing ANSI color codes (wide-character functions only) |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |