/haiku/src/add-ons/input_server/devices/keyboard/ |
H A D | Keymap.cpp | 26 print_key(char* chars, int32 offset, bool last = false) argument 28 int size = chars[offset++]; 38 fputc(chars[offset], stdout); 48 strncpy(str, &(chars[offset]), size);
|
/haiku/src/tests/kits/support/ |
H A D | string_utf8_tests.cpp | 9 expect(BString &string, const char *expect, size_t bytes, int32 chars) argument 11 printf("expect: \"%s\" %lu %ld\n", expect, bytes, chars); 18 if (chars != string.CountChars()) { 47 printf("removing all - and ellipsis chars\n"); 59 printf("appending 2 chars out of \"������\"\n"); 63 printf("removing chars 1 through 4\n"); 67 printf("inserting 2 ellipsis out of 6 chars at offset 1\n"); 71 printf("prepending 3 out of 5 chars\n"); 75 printf("comparing first 5 chars which should succeed\n"); 82 printf("comparing first 6 chars whic [all...] |
/haiku/src/tests/kits/shared/ |
H A D | KeymapTest.cpp | 103 char* chars; local 105 fCurrentKeymap.GetChars(keycode, modifiers, 0, &chars, &numBytes); 107 CPPUNIT_ASSERT(*mapChars <= 0 || chars != NULL); 109 CPPUNIT_ASSERT(strncmp(chars, mapChars + 1, numBytes) == 0);
|
/haiku/src/tests/kits/locale/ |
H A D | UnicodeCharTest.cpp | 82 uint32 chars[] = {(uint8)'\xe4', (uint8)'\xd6', (uint8)'\xdf', local 94 for(int i = 0; chars[i] != 0; i++) { 96 _TestChar(chars[i], results[i]);
|
/haiku/src/kits/shared/ |
H A D | Keymap.cpp | 347 char** chars, int32* numBytes) const 350 *chars = NULL; 414 char* str = *chars = new char[*numBytes + 1]; 431 *chars = NULL; 436 char *str = *chars = new char[*numBytes + 1]; 447 *chars = new char[*numBytes + 1]; 448 strncpy(*chars, &fChars[offset + 1], *numBytes); 449 (*chars)[*numBytes] = 0; 585 char chars[5]; local 586 strncpy(chars, 346 GetChars(uint32 keyCode, uint32 modifiers, uint8 activeDeadKey, char** chars, int32* numBytes) const argument [all...] |
/haiku/src/bin/unzip/ |
H A D | timezone.h | 21 #ifdef WIN32 /* Win32 tzinfo supplies at max (2 * 32) chars of tz names */ 46 char chars[TZ_MAX_CHARS]; member in struct:state
|
H A D | globals.h | 167 int chars; /* count of screen characters in current line */ member in struct:Globals 285 ulg outcnt; /* number of chars stored in outbuf */
|
H A D | timezone.c | 463 if ((size_t) sp->charcnt > sizeof(sp->chars)) 465 cp = sp->chars; 492 tzname[0] = statism.chars + statism.ttis[dstfirst].tt_abbrind; 493 tzname[1] = statism.chars + statism.ttis[!dstfirst].tt_abbrind;
|
/haiku/src/bin/keymap/ |
H A D | Keymap.h | 44 static bool GetKey(const char* chars, int32 offset,
|
H A D | Keymap.cpp | 757 Keymap::GetKey(const char* chars, int32 offset, char* buffer, size_t bufferSize) argument 759 uint8 size = (uint8)chars[offset++]; 770 if ((uint8)chars[offset] < 0x20 || (uint8)chars[offset] > 0x7e) 771 sprintf(string, "0x%02x", (uint8)chars[offset]); 774 (chars[offset] == '\\' || chars[offset] == '\'') ? "\\" : "", 775 chars[offset]); 783 sprintf(string + 2 * (i + 1), "%02x", (uint8)chars[offset + i]);
|
/haiku/src/tools/restest/ |
H A D | restest.cpp | 60 print_indented(const char* str, uint32 chars, bool indentFirst = true) argument 64 if (chars < MAX_CHARS_PER_LINE) { 67 for (int32 i = 0; (uint32)i < chars; i++) 70 int32 bytesLeftOnLine = MAX_CHARS_PER_LINE - chars; 88 uint32 chars = strlen(indentStr); local 90 print_indented(str, chars, false);
|
/haiku/src/apps/terminal/ |
H A D | HistoryBuffer.cpp | 85 const char* chars = line->Chars(); local 114 int32 charLength = UTF8Char::ByteCount(chars[i]); 115 cell.character.SetTo(chars + i, charLength); 125 // cleared to let full-width chars detection work properly 168 char* chars = historyLine->Chars(); local 174 memcpy(chars, cell.character.bytes, charLength); 175 chars += charLength;
|
/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | screen.c | 35 uint32_t chars[VTERM_MAX_CHARS_PER_CELL]; member in struct:__anon25 92 new_cell->chars[0] = 0; 183 for(i = 0; i < VTERM_MAX_CHARS_PER_CELL && info->chars[i]; i++) { 184 cell->chars[i] = info->chars[i]; 188 cell->chars[i] = 0; 191 getcell(screen, pos.row, pos.col + col)->chars[0] = (uint32_t)-1; 280 cell->chars[0] = 0; 705 if(cell->chars[0] == 0) 708 else if(cell->chars[ 732 vterm_screen_get_chars(const VTermScreen *screen, uint32_t *chars, size_t len, const VTermRect rect) argument [all...] |
H A D | encoding.c | 182 const uint32_t chars[128]; member in struct:StaticTableEncoding 198 if(table->chars[c]) 199 cp[(*cpi)++] = table->chars[c];
|
H A D | state.c | 20 static void putglyph(VTermState *state, const uint32_t chars[], int width, VTermPos pos) argument 23 .chars = chars, 34 fprintf(stderr, "libvterm: Unhandled putglyph U+%04x at (%d,%d)\n", chars[0], pos.col, pos.row); 234 printf("DEBUG: COMBINING SPLIT GLYPH of chars {"); 240 /* Find where we need to append these combining chars */ 273 uint32_t* chars; local 279 chars = alloca(glyph_ends - glyph_starts + 1); 282 chars[i - glyph_starts] = codepoints[i]; 286 chars[glyph_end [all...] |
/haiku/src/preferences/keymap/ |
H A D | Keymap.cpp | 31 print_key(char* chars, int32 offset, bool last = false) argument 33 int size = chars[offset++]; 43 fputc(chars[offset], stdout); 50 strncpy(str, &chars[offset], size); 435 char* chars = new(std::nothrow) char[fCharsSize]; 436 if (chars != NULL) { 437 memcpy(chars, fChars, offset + oldNumBytes + 1); 438 memcpy(&chars[offset + 1 + numBytes], 442 fChars = chars;
|
/haiku/src/system/kernel/debug/ |
H A D | debug_builtin_commands.cpp | 277 uint64 chars; member in struct:user_data 289 userData->chars = 0; 296 userData->lines, userData->words, userData->chars); 301 userData->chars++; 304 // count words and chars in this line 307 userData->chars++;
|
/haiku/headers/private/interface/ |
H A D | WidthBuffer.h | 50 float HashEscapements(const char* chars,
|
/haiku/headers/private/shared/ |
H A D | Keymap.h | 40 uint8 activeDeadKey, char** chars,
|
/haiku/src/tools/fs_shell/ |
H A D | driver_settings.cpp | 484 put_chars(char **_buffer, fssh_ssize_t *_bufferSize, const char *chars) argument 489 if (chars == NULL) 492 length = fssh_strlen(chars); 498 fssh_memcpy(buffer, chars, length);
|
/haiku/src/add-ons/input_server/devices/virtio/ |
H A D | VirtioInputDevice.cpp | 321 char *chars = NULL; local 322 get_key_map(&keyMap, &chars); 324 fChars.SetTo(chars); 359 char *chars = NULL; local 360 get_key_map(&keyMap, &chars); 361 if (keyMap == NULL || chars == NULL) 364 fChars.SetTo(chars);
|
/haiku/src/apps/serialconnect/libvterm/include/ |
H A D | vterm.h | 99 const uint32_t *chars; member in struct:__anon9 216 uint32_t chars[VTERM_MAX_CHARS_PER_CELL]; member in struct:__anon14 262 size_t vterm_screen_get_chars(const VTermScreen *screen, uint32_t *chars, size_t len, const VTermRect rect);
|
/haiku/src/system/libroot/posix/stdlib/ |
H A D | strfmon.c | 271 /* fill left_prec with amount of padding chars */ 490 int chars = 0; local 496 chars++; 503 chars += (size - 1) / *(grouping - 1); 507 return chars;
|
/haiku/src/system/libroot/os/ |
H A D | driver_settings.cpp | 519 put_chars(char **_buffer, ssize_t *_bufferSize, const char *chars) argument 524 if (chars == NULL) 527 length = strlen(chars); 533 memcpy(buffer, chars, length);
|
/haiku/src/system/boot/loader/file_systems/fat/ |
H A D | Directory.cpp | 118 bool AddNameChars(const uint16* chars, uint32 count); 132 dir_cookie::AddNameChars(const uint16* chars, uint32 count) argument 136 if (chars[i] == 0) { 148 chars, count * 2); 281 // check the chars
|