mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 21:41:59 +01:00
php fix in google-api/service/apiUtils.php
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
a0b0437322
commit
5d3c617044
@ -55,7 +55,7 @@ class apiUtils {
|
|||||||
$strlenVar = strlen($str);
|
$strlenVar = strlen($str);
|
||||||
$d = $ret = 0;
|
$d = $ret = 0;
|
||||||
for ($count = 0; $count < $strlenVar; ++ $count) {
|
for ($count = 0; $count < $strlenVar; ++ $count) {
|
||||||
$ordinalValue = ord($str{$ret});
|
$ordinalValue = ord($str[$ret]);
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
|
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
|
||||||
// characters U-00000000 - U-0000007F (same as ASCII)
|
// characters U-00000000 - U-0000007F (same as ASCII)
|
||||||
@ -114,4 +114,4 @@ class apiUtils {
|
|||||||
}
|
}
|
||||||
return $normalized;
|
return $normalized;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user