Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / prebuilt / linux-x86_64 / lib / perl5 / 5.16.2 / bytes_heavy.pl
blob680c66ce9218282d8b64f4507067eda902dbb0ff
1 package bytes;
3 sub length (_) {
4 BEGIN { bytes::import() }
5 return CORE::length($_[0]);
8 sub substr ($$;$$) {
9 BEGIN { bytes::import() }
10 return
11 @_ == 2 ? CORE::substr($_[0], $_[1]) :
12 @_ == 3 ? CORE::substr($_[0], $_[1], $_[2]) :
13 CORE::substr($_[0], $_[1], $_[2], $_[3]) ;
16 sub ord (_) {
17 BEGIN { bytes::import() }
18 return CORE::ord($_[0]);
21 sub chr (_) {
22 BEGIN { bytes::import() }
23 return CORE::chr($_[0]);
26 sub index ($$;$) {
27 BEGIN { bytes::import() }
28 return
29 @_ == 2 ? CORE::index($_[0], $_[1]) :
30 CORE::index($_[0], $_[1], $_[2]) ;
33 sub rindex ($$;$) {
34 BEGIN { bytes::import() }
35 return
36 @_ == 2 ? CORE::rindex($_[0], $_[1]) :
37 CORE::rindex($_[0], $_[1], $_[2]) ;