Lines Matching refs:seq
158 function decode_escape_sequence(seq) { argument
159 switch (seq[0]) {
167 if (seq[1] == "{" && seq.slice(-1) == "}") {
168 code = seq.slice(2, -1);
169 } else if (seq.length == 5) {
170 code = seq.slice(1);
181 if (seq.length != 3) return;
182 var num = parseInt(seq.slice(1), 16);
189 if (seq == "0") return "\0";
190 if (seq[0] >= "0" && seq[0] <= "9") return;
191 return seq;
398 var seq = next(true, in_string);
399 if (seq >= "0" && seq <= "7") return read_octal_escape_sequence(seq);
400 if (seq == "u") {
402 seq += ch;
404 seq += next(true, in_string) + next(true, in_string) + next(true, in_string);
407 seq += ch;
409 } else if (seq == "x") {
410 seq += next(true, in_string) + next(true, in_string);
412 var str = decode_escape_sequence(seq);
413 if (typeof str != "string") parse_error("Invalid escape sequence: \\" + seq);