MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / getEncoding

Function getEncoding

libraries/p5.js:5837–5854  ·  view source on GitHub ↗
(platformID, encodingID, languageID)

Source from the content-addressed store, hash-verified

5835};
5836
5837function getEncoding(platformID, encodingID, languageID) {
5838 switch (platformID) {
5839 case 0: // Unicode
5840 return utf16;
5841
5842 case 1: // Apple Macintosh
5843 return macLanguageEncodings[languageID] || macScriptEncodings[encodingID];
5844
5845 case 3: // Microsoft Windows
5846 if (encodingID === 1 || encodingID === 10) {
5847 return utf16;
5848 }
5849
5850 break;
5851 }
5852
5853 return undefined;
5854}
5855
5856// Parse the naming `name` table.
5857// FIXME: Format 1 additional fields are not supported yet.

Callers 2

parseNameTableFunction · 0.85
makeNameTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected