bootstrap.php ➔ mb_regex_encoding()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
// -- Multibyte Compatibility functions ---------------------------------------
3
// http://svn.iphonewebdev.com/lace/lib/mb_compat.php
4
5
/**
6
 *  mb_internal_encoding()
7
 *
8
 *  Included for mbstring pseudo-compatability.
9
 */
10
if (!function_exists('mb_internal_encoding')) {
11
    function mb_internal_encoding($enc)
0 ignored issues
show
Unused Code introduced by
The parameter $enc is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
12
    {
13
        return true;
14
    }
15
}
16
17
/**
18
 *  mb_regex_encoding()
19
 *
20
 *  Included for mbstring pseudo-compatability.
21
 */
22
if (!function_exists('mb_regex_encoding')) {
23
    function mb_regex_encoding($enc)
0 ignored issues
show
Unused Code introduced by
The parameter $enc is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
24
    {
25
        return true;
26
    }
27
}
28
29
/**
30
 *  mb_strlen()
31
 *
32
 *  Included for mbstring pseudo-compatability.
33
 */
34
if (!function_exists('mb_strlen')) {
35
    function mb_strlen($str)
36
    {
37
        return strlen($str);
38
    }
39
}
40
41
/**
42
 *  mb_strpos()
43
 *
44
 *  Included for mbstring pseudo-compatability.
45
 */
46
if (!function_exists('mb_strpos')) {
47
    function mb_strpos($haystack, $needle, $offset = 0)
48
    {
49
        return strpos($haystack, $needle, $offset);
50
    }
51
}
52
/**
53
 *  mb_stripos()
54
 *
55
 *  Included for mbstring pseudo-compatability.
56
 */
57
if (!function_exists('mb_stripos')) {
58
    function mb_stripos($haystack, $needle, $offset = 0)
59
    {
60
        return stripos($haystack, $needle, $offset);
61
    }
62
}
63
64
/**
65
 *  mb_substr()
66
 *
67
 *  Included for mbstring pseudo-compatability.
68
 */
69
if (!function_exists('mb_substr')) {
70
    function mb_substr($str, $start, $length = 0)
71
    {
72
        return substr($str, $start, $length);
73
    }
74
}
75
76
/**
77
 *  mb_substr_count()
78
 *
79
 *  Included for mbstring pseudo-compatability.
80
 */
81
if (!function_exists('mb_substr_count')) {
82
    function mb_substr_count($haystack, $needle)
83
    {
84
        return substr_count($haystack, $needle);
85
    }
86
}
87