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

Method encodeString8bit

text-to-qr/lib/phpqrcode/qrencode.php:244–260  ·  view source on GitHub ↗

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

($string, $version, $level)

Source from the content-addressed store, hash-verified

242
243 //----------------------------------------------------------------------
244 public function encodeString8bit($string, $version, $level)
245 {
246 if(string == NULL) {
247 throw new Exception('empty string!');
248 return NULL;
249 }
250
251 $input = new QRinput($version, $level);
252 if($input == NULL) return NULL;
253
254 $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string));
255 if($ret < 0) {
256 unset($input);
257 return NULL;
258 }
259 return $this->encodeInput($input);
260 }
261
262 //----------------------------------------------------------------------
263 public function encodeString($string, $version, $level, $hint, $casesensitive)

Callers 2

encodeRAWMethod · 0.45
encodeMethod · 0.45

Calls 3

encodeInputMethod · 0.95
str_splitFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected