Component/IRC/Common.pm

filter: Statementstmt 100% 54 / 54 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 59 / 59 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Filter/IRC.pm ↑ Summary Component/IRC/Constants.pm »
1 package POE::Component::IRC::Common;
2 3 $POE::Component::IRC::Common::VERSION = '6.95';
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use IRC::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 require Exporter;
9 3 ▶use base qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 our @EXPORT_OK = qw(
11 u_irc l_irc parse_mode_line parse_ban_mask matches_mask matches_mask_array
12 parse_user has_color has_formatting strip_color strip_formatting NORMAL
13 BOLD UNDERLINE REVERSE WHITE BLACK DARK_BLUE DARK_GREEN RED BROWN PURPLE
14 ORANGE YELLOW LIGHT_GREEN TEAL CYAN LIGHT_BLUE MAGENTA DARK_GREY
15 LIGHT_GREY irc_to_utf8
16 );
17 3 our %EXPORT_TAGS = ( ALL => [@EXPORT_OK] );
18  
19 3 ▶no warnings 'once'; ## no critic (TestingAndDebugging::ProhibitNoWarnings)
Subroutine BEGIN: called CC=1 SCAR=0.0
20 3 *NORMAL = *IRC::Utils::NORMAL;
21 3 *BOLD = *IRC::Utils::BOLD;
22 3 *UNDERLINE = *IRC::Utils::UNDERLINE;
23 3 *REVERSE = *IRC::Utils::REVERSE;
24 3 *ITALIC = *IRC::Utils::ITALIC;
25 3 *FIXED = *IRC::Utils::FIXED;
26 3 *WHITE = *IRC::Utils::WHITE;
27 3 *BLACK = *IRC::Utils::BLACK;
28 3 *DARK_BLUE = *IRC::Utils::BLUE;
29 3 *DARK_GREEN = *IRC::Utils::GREEN;
30 3 *RED = *IRC::Utils::RED;
31 3 *BROWN = *IRC::Utils::BROWN;
32 3 *PURPLE = *IRC::Utils::PURPLE;
33 3 *ORANGE = *IRC::Utils::ORANGE;
34 3 *YELLOW = *IRC::Utils::YELLOW;
35 3 *LIGHT_GREEN = *IRC::Utils::LIGHT_GREEN;
36 3 *TEAL = *IRC::Utils::TEAL;
37 3 *CYAN = *IRC::Utils::LIGHT_CYAN;
38 3 *LIGHT_BLUE = *IRC::Utils::LIGHT_BLUE;
39 3 *MAGENTA = *IRC::Utils::PINK;
40 3 *DARK_GREY = *IRC::Utils::GREY;
41 3 *LIGHT_GREY = *IRC::Utils::LIGHT_GREY;
42  
43 3 *u_irc = *IRC::Utils::uc_irc;
44 3 *l_irc = *IRC::Utils::lc_irc;
45 3 *parse_mode_line = *IRC::Utils::parse_mode_line;
46 3 *parse_ban_mask = *IRC::Utils::normalize_mask;
47 3 *parse_user = *IRC::Utils::parse_user;
48 3 *matches_mask = *IRC::Utils::matches_mask;
49 3 *matches_mask_array = *IRC::Utils::matches_mask_array;
50 3 *has_color = *IRC::Utils::has_color;
51 3 *has_formatting = *IRC::Utils::has_formatting;
52 3 *strip_color = *IRC::Utils::strip_color;
53 3 *strip_formatting = *IRC::Utils::strip_formatting;
54 3 *irc_to_utf8 = *IRC::Utils::decode_irc;
55  
56 3 1;
57  
58 =encoding utf8
59  
60 =head1 NAME
61  
62 POE::Component::IRC::Common - Provides a set of common functions for the
63 L<POE::Component::IRC|POE::Component::IRC> suite
64  
65 =head1 SYNOPSIS
66  
67 use IRC::Utils;
68  
69 =head1 DESCRIPTION
70  
71 B<'ATTENTION'>: Most of this module's functionality has been moved into
72 L<IRC::Utils|IRC::Utils>. Take a look at it.
73  
74 This module still exports the old functions (as wrappers around equivalents
75 from L<IRC::Utils|IRC::Utils>), but new ones won't be added.
76  
77 =head1 AUTHOR
78  
79 Chris 'BinGOs' Williams
80  
81 =head1 SEE ALSO
82  
83 L<IRC::Utils|IRC::Utils>
84  
85 L<POE::Component::IRC|POE::Component::IRC>
86  
87 =cut
« Filter/IRC.pm ↑ Summary Component/IRC/Constants.pm »