MCPcopy
hub / github.com/davidshimjs/qrcodejs / _getUTF8Length

Function _getUTF8Length

qrcode.js:505–508  ·  view source on GitHub ↗
(sText)

Source from the content-addressed store, hash-verified

503 }
504
505 function _getUTF8Length(sText) {
506 var replacedText = encodeURI(sText).toString().replace(/\%[0-9a-fA-F]{2}/g, 'a');
507 return replacedText.length + (replacedText.length != sText ? 3 : 0);
508 }
509
510 /**
511 * @class QRCode

Callers 1

_getTypeNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected