function index(name) {
    if (!('encoding-indexes' in global))
      throw new Error("Indexes missing. Did you forget to include encoding-indexes.js?");
    return global['encoding-indexes'][name];
  }
@param {string} name Name of the index.
@return {(Array.<number>|Array.<Array.<number>>)}