WikiStart: test.txt

File test.txt, 303 bytes (added by anonymous, 5 years ago)
Line 
1            break;
2          case 14:
3            // 1110 xxxx  10xx xxxx  10xx xxxx
4            char2 = str.charCodeAt(i++);
5            char3 = str.charCodeAt(i++);
6            out += String.fromCharCode(((c & 0x0F) << 12) |
7                                           ((char2 & 0x3F) << 6) |
8                                           ((char3 & 0x3F) << 0));
9            break;
10        }
11    }
12
13    return out;
14}