line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::ANSI::WideUtil; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
4
|
|
|
|
|
|
|
our $DATE = '2021-01-23'; # DATE |
5
|
|
|
|
|
|
|
our $DIST = 'Text-ANSI-WideUtil'; # DIST |
6
|
|
|
|
|
|
|
our $VERSION = '0.231'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
72152
|
use 5.010001; |
|
1
|
|
|
|
|
11
|
|
9
|
1
|
|
|
1
|
|
5
|
use strict 'subs', 'vars'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
10
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
508
|
use Text::WideChar::Util qw(mbswidth mbtrunc); |
|
1
|
|
|
|
|
47311
|
|
|
1
|
|
|
|
|
118
|
|
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
|
|
491
|
use Text::ANSI::BaseUtil (); |
|
1
|
|
|
|
|
3085
|
|
|
1
|
|
|
|
|
69
|
|
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__ |