Lines Matching refs:utf8str
49 get_u_array: function(utf8str) { argument
51 for (var i=0; i<utf8str.length; i++) {
52 unicode_array[i] = utf8str.charCodeAt(i);;
196 _utf8Decode: function (utf8str) argument
201 for (var i=0; i<utf8str.length; ) {
202 code = utf8str.charCodeAt(i++);
205 if (code > 127) code2 = utf8str.charCodeAt(i++);
206 if (code > 223) code3 = utf8str.charCodeAt(i++);
207 if (code > 239) code4 = utf8str.charCodeAt(i++);
219 utf8Decode: function (utf8str) argument
225 while ((pos = utf8str.search(/[^\x00-\x7F]/)) != -1) {
226 tmpStr = utf8str.match(/([^\x00-\x7F]+[\x00-\x7F]{0,10})+/)[0];
227 str[j++]= utf8str.substr(0, pos) + this._utf8Decode(tmpStr);
228 utf8str = utf8str.substr(pos + tmpStr.length);
231 str[j++] = utf8str;