| 1 | package NG::Autobox::String; | ||||||||||
| 2 | 1 | ▶ | use base 'NG::Object'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use NG::Array; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 0 | ▶ | sub lc { CORE::lc $_[0] } | ||||||||
|
Subroutine
lc: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 6 | 0 | ▶ | sub lcfirst { CORE::lcfirst $_[0] } | ||||||||
|
Subroutine
lcfirst: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 7 | 0 | ▶ | sub uc { CORE::uc $_[0] } | ||||||||
|
Subroutine
uc: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 8 | 0 | ▶ | sub ucfirst { CORE::ucfirst $_[0] } | ||||||||
|
Subroutine
ucfirst: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 9 | 0 | ▶ | sub chomp { CORE::chomp $_[0] } | ||||||||
|
Subroutine
chomp: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 10 | 0 | ▶ | sub chop { CORE::chop $_[0] } | ||||||||
|
Subroutine
chop: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | 0 | ▶ | sub reverse { CORE::reverse $_[0] } | ||||||||
|
Subroutine
reverse: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 12 | 0 | ▶ | sub length { CORE::length $_[0] } | ||||||||
|
Subroutine
length: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 13 | 0 | ▶ | sub lines { NG::Array->new( CORE::split '\n', $_[0] ) } | ||||||||
|
Subroutine
lines: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 0 | ▶ | sub words { NG::Array->new( CORE::split ' ', $_[0] ) } | ||||||||
|
Subroutine
words: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 15 | 0 | ▶ | sub index { | ||||||||
|
Subroutine
index: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 16 | 0 | ▶ | return CORE::index($_[0], $_[1]) if scalar @_ == 2; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | return CORE::index($_[0], $_[1], $_[2]); | |||||||||
| 18 | } | ||||||||||
| 19 | 0 | ▶ | sub rindex { | ||||||||
|
Subroutine
rindex: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 20 | 0 | ▶ | return CORE::rindex($_[0], $_[1]) if scalar @_ == 2; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | return CORE::rindex($_[0], $_[1], $_[2]); | |||||||||
| 22 | } | ||||||||||
| 23 | 0 | ▶ | sub split { | ||||||||
|
Subroutine
split: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 24 | 0 | ▶ | return NG::Array->new( CORE::split($_[1], $_[0]) ) if scalar @_ == 2; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 0 | return NG::Array->new( CORE::split($_[1], $_[0], $_[2]) ); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 1 | 1; | |||||||||