Lines Matching refs:utf8str
45 get_u_array: function(utf8str) { argument
47 for (var i=0; i<utf8str.length; i++) {
48 unicode_array[i] = utf8str.charCodeAt(i);;
192 _utf8Decode: function (utf8str) argument
197 for (var i=0; i<utf8str.length; ) {
198 code = utf8str.charCodeAt(i++);
201 if (code > 127) code2 = utf8str.charCodeAt(i++);
202 if (code > 223) code3 = utf8str.charCodeAt(i++);
203 if (code > 239) code4 = utf8str.charCodeAt(i++);
215 utf8Decode: function (utf8str) argument
221 while ((pos = utf8str.search(/[^\x00-\x7F]/)) != -1) {
222 tmpStr = utf8str.match(/([^\x00-\x7F]+[\x00-\x7F]{0,10})+/)[0];
223 str[j++]= utf8str.substr(0, pos) + this._utf8Decode(tmpStr);
224 utf8str = utf8str.substr(pos + tmpStr.length);
227 str[j++] = utf8str;