Lines Matching refs:offset
31 print_key(char* chars, int32 offset, bool last = false)
33 int size = chars[offset++];
43 fputc(chars[offset], stdout);
50 strncpy(str, &chars[offset], size);
248 int32 offset = Offset(keyCode, modifiers, &tableMask);
249 uint8 deadKeyIndex = DeadKeyIndex(offset);
288 int32 offset = deadOffsets[deadKeyIndex - 1];
289 if (offset < 0 || offset >= (int32)fCharsSize)
292 uint32 deadNumBytes = fChars[offset];
296 outTrigger.SetTo(&fChars[offset + 1], deadNumBytes);
317 int32 offset = deadOffsets[deadKeyIndex - 1];
318 if (offset < 0 || offset >= (int32)fCharsSize)
321 if (_SetChars(offset, trigger.String(), trigger.Length())) {
374 int32 offset = Offset(keyCode, modifiers);
375 if (offset < 0)
383 if (_SetChars(offset, bytes, numBytes)) {
419 Keymap::_SetChars(int32 offset, const char* bytes, int32 numBytes)
421 int32 oldNumBytes = fChars[offset];
424 && !memcmp(&fChars[offset + 1], bytes, numBytes)) {
437 memcpy(chars, fChars, offset + oldNumBytes + 1);
438 memcpy(&chars[offset + 1 + numBytes],
439 &fChars[offset + 1 + oldNumBytes],
440 fCharsSize - 2 - offset - diff);
447 memmove(&fChars[offset + numBytes], &fChars[offset + oldNumBytes],
448 fCharsSize - offset - 2 - diff);
456 if (data[i] > offset)
461 memcpy(&fChars[offset + 1], bytes, numBytes);
462 fChars[offset] = numBytes;