line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::ANSI::Util; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
85146
|
use 5.010001; |
|
1
|
|
|
|
|
12
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict 'subs', 'vars'; |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
28
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use Exporter qw(import); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
131
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
10
|
|
|
|
|
|
|
our $DATE = '2023-02-27'; # DATE |
11
|
|
|
|
|
|
|
our $DIST = 'Text-ANSI-Util'; # DIST |
12
|
|
|
|
|
|
|
our $VERSION = '0.234'; # VERSION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our @EXPORT_OK = qw( |
15
|
|
|
|
|
|
|
ta_add_color_resets |
16
|
|
|
|
|
|
|
ta_detect |
17
|
|
|
|
|
|
|
ta_extract_codes |
18
|
|
|
|
|
|
|
ta_highlight |
19
|
|
|
|
|
|
|
ta_highlight_all |
20
|
|
|
|
|
|
|
ta_length |
21
|
|
|
|
|
|
|
ta_length_height |
22
|
|
|
|
|
|
|
ta_pad |
23
|
|
|
|
|
|
|
ta_split_codes |
24
|
|
|
|
|
|
|
ta_split_codes_single |
25
|
|
|
|
|
|
|
ta_strip |
26
|
|
|
|
|
|
|
ta_substr |
27
|
|
|
|
|
|
|
ta_trunc |
28
|
|
|
|
|
|
|
ta_wrap |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
1
|
|
|
1
|
|
545
|
use Text::ANSI::BaseUtil (); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
81
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
our $re = $Text::ANSI::BaseUtil::re; |
34
|
|
|
|
|
|
|
*{$_} = \&{"Text::ANSI::BaseUtil::$_"} for @EXPORT_OK; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
# ABSTRACT: Routines for text containing ANSI color codes |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |