File Coverage

blib/lib/POE/Component/IRC/Common.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package POE::Component::IRC::Common;
2             $POE::Component::IRC::Common::VERSION = '6.95';
3 3     3   252971 use strict;
  3         10  
  3         120  
4 3     3   14 use warnings FATAL => 'all';
  3         6  
  3         195  
5              
6 3     3   1095 use IRC::Utils;
  3         67891  
  3         231  
7              
8             require Exporter;
9 3     3   40 use base qw(Exporter);
  3         7  
  3         810  
10             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             our %EXPORT_TAGS = ( ALL => [@EXPORT_OK] );
18              
19 3     3   27 no warnings 'once'; ## no critic (TestingAndDebugging::ProhibitNoWarnings)
  3         7  
  3         1454  
20             *NORMAL = *IRC::Utils::NORMAL;
21             *BOLD = *IRC::Utils::BOLD;
22             *UNDERLINE = *IRC::Utils::UNDERLINE;
23             *REVERSE = *IRC::Utils::REVERSE;
24             *ITALIC = *IRC::Utils::ITALIC;
25             *FIXED = *IRC::Utils::FIXED;
26             *WHITE = *IRC::Utils::WHITE;
27             *BLACK = *IRC::Utils::BLACK;
28             *DARK_BLUE = *IRC::Utils::BLUE;
29             *DARK_GREEN = *IRC::Utils::GREEN;
30             *RED = *IRC::Utils::RED;
31             *BROWN = *IRC::Utils::BROWN;
32             *PURPLE = *IRC::Utils::PURPLE;
33             *ORANGE = *IRC::Utils::ORANGE;
34             *YELLOW = *IRC::Utils::YELLOW;
35             *LIGHT_GREEN = *IRC::Utils::LIGHT_GREEN;
36             *TEAL = *IRC::Utils::TEAL;
37             *CYAN = *IRC::Utils::LIGHT_CYAN;
38             *LIGHT_BLUE = *IRC::Utils::LIGHT_BLUE;
39             *MAGENTA = *IRC::Utils::PINK;
40             *DARK_GREY = *IRC::Utils::GREY;
41             *LIGHT_GREY = *IRC::Utils::LIGHT_GREY;
42              
43             *u_irc = *IRC::Utils::uc_irc;
44             *l_irc = *IRC::Utils::lc_irc;
45             *parse_mode_line = *IRC::Utils::parse_mode_line;
46             *parse_ban_mask = *IRC::Utils::normalize_mask;
47             *parse_user = *IRC::Utils::parse_user;
48             *matches_mask = *IRC::Utils::matches_mask;
49             *matches_mask_array = *IRC::Utils::matches_mask_array;
50             *has_color = *IRC::Utils::has_color;
51             *has_formatting = *IRC::Utils::has_formatting;
52             *strip_color = *IRC::Utils::strip_color;
53             *strip_formatting = *IRC::Utils::strip_formatting;
54             *irc_to_utf8 = *IRC::Utils::decode_irc;
55              
56             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 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. Take a look at it.
73              
74             This module still exports the old functions (as wrappers around equivalents
75             from L), but new ones won't be added.
76              
77             =head1 AUTHOR
78              
79             Chris 'BinGOs' Williams
80              
81             =head1 SEE ALSO
82              
83             L
84              
85             L
86              
87             =cut