---
title: UCKeyToCharTableIndex
framework: coreservices
role: symbol
role_heading: Structure
path: coreservices/uckeytochartableindex
---

# UCKeyToCharTableIndex

Provides a count of, and offsets to, key-code-to-character tables in a 'uchr' resource.

## Declaration

```swift
struct UCKeyToCharTableIndex
```

## Overview

Overview The Unicode keyboard-layout ('uchr') resource contains the data necessary to map virtual key codes to Unicode character codes for a given keyboard layout. The 'uchr' format consists of a header information section and five key mapping data sections. The UCKeyToCharTableIndex type is used in the second key mapping section of the 'uchr' resource. The UCKeyToCharTableIndex structure precedes the list of key-code-to-character tables, each of which maps a key code to a 16-bit value of type  UCKeyOutput.

## Topics

### Initializers

- [init()](coreservices/uckeytochartableindex/1444832-init.md)
- [init(keyToCharTableIndexFormat:keyToCharTableSize:keyToCharTableCount:keyToCharTableOffsets:)](coreservices/uckeytochartableindex/1450385-init.md)

### Instance Properties

- [keyToCharTableCount](coreservices/uckeytochartableindex/1390611-keytochartablecount.md)
- [keyToCharTableIndexFormat](coreservices/uckeytochartableindex/1390562-keytochartableindexformat.md)
- [keyToCharTableOffsets](coreservices/uckeytochartableindex/1390388-keytochartableoffsets.md)
- [keyToCharTableSize](coreservices/uckeytochartableindex/1390382-keytochartablesize.md)
