MCPcopy Create free account
hub / github.com/codemistic/Web-Development / checkModeAn

Method checkModeAn

text-to-qr/lib/phpqrcode/phpqrcode.php:1452–1461  ·  view source on GitHub ↗

----------------------------------------------------------------------

($size, $data)

Source from the content-addressed store, hash-verified

1450
1451 //----------------------------------------------------------------------
1452 public static function checkModeAn($size, $data)
1453 {
1454 for($i=0; $i<$size; $i++) {
1455 if (self::lookAnTable(ord($data[$i])) == -1) {
1456 return false;
1457 }
1458 }
1459
1460 return true;
1461 }
1462
1463 //----------------------------------------------------------------------
1464 public static function estimateBitsModeAn($size)

Callers 1

checkMethod · 0.95

Calls 1

lookAnTableMethod · 0.95

Tested by

no test coverage detected