Searched refs:chars (Results 1 - 25 of 41) sorted by last modified time

12

/haiku/src/kits/tracker/
H A DWidgetAttributeText.cpp1837 BString chars(separator + 1);
1839 const char* c = chars.CharAt(0, &length);
1842 c = chars.CharAt(1, &length);
/haiku/src/system/kernel/debug/
H A Ddebug.cpp251 const char* chars, int32 charCount)
253 // move the following chars to make room for the ones to insert
259 // insert chars
260 memcpy(buffer + position, chars, charCount);
265 // print the new chars (and the following ones)
291 // move the subsequent chars
490 // clear chars
250 insert_chars_into_line(char* buffer, int32& position, int32& length, const char* chars, int32 charCount) argument
H A Ddebug_builtin_commands.cpp277 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/src/apps/icon-o-matic/import_export/styled_text/
H A DStyledTextImporter.cpp297 int32 chars = str.CountChars(); local
301 for (int32 i = 0, c = 0; i < len && c < chars; c++) {
/haiku/src/apps/serialconnect/
H A DTermView.cpp165 if (newCell.chars[0] == 0) {
171 wcstombs(buffer, (wchar_t*)newCell.chars,
449 cell.chars[0] = 0;
/haiku/src/system/boot/loader/file_systems/fat/
H A DDirectory.cpp118 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
/haiku/src/apps/terminal/
H A DTermView.cpp340 // TODO: Make the special word chars user-settable!
769 TermView::SetKeymap(const key_map* keymap, const char* chars) argument
772 fKeymapChars = chars;
1420 // No chars to draw : we just fill the rectangle with the
H A DTermView.h107 const char* chars);
H A DHistoryBuffer.cpp85 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/system/libroot/os/
H A Ddriver_settings.cpp519 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/libroot/posix/stdlib/
H A Dstrfmon.c271 /* 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/add-ons/input_server/devices/virtio/
H A DVirtioInputDevice.cpp321 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/tools/fs_shell/
H A Ddriver_settings.cpp484 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/kits/shared/
H A DKeymap.cpp347 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/tests/kits/shared/
H A DKeymapTest.cpp103 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/support/
H A Dstring_utf8_tests.cpp9 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/bin/unzip/
H A Dfileio.c872 /* 2: ready to read VMS_line_length chars */
1289 ((Uz_Globs *)pG)->chars = 0;
1327 ((Uz_Globs *)pG)->chars = 0;
1331 ((Uz_Globs *)pG)->chars +=
1332 (TABSIZE - (((Uz_Globs *)pG)->chars % TABSIZE));
1335 ++((Uz_Globs *)pG)->chars;
1337 if (((Uz_Globs *)pG)->chars >= ((Uz_Globs *)pG)->width)
1343 ((Uz_Globs *)pG)->chars = 0;
1937 char tmp_fnote[2 * AMIGA_FILENOTELEN]; /* extra room for squozen chars */
2208 /* convert multi-line text into single line with no ctl-chars
[all...]
/haiku/src/preferences/keymap/
H A DKeymap.cpp31 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/apps/serialconnect/libvterm/src/
H A Dencoding.c182 const uint32_t chars[128]; member in struct:StaticTableEncoding
198 if(table->chars[c])
199 cp[(*cpi)++] = table->chars[c];
H A Dstate.c20 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...]
H A Dscreen.c35 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...]
/haiku/src/bin/keymap/
H A DKeymap.cpp757 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]);
H A DKeymap.h44 static bool GetKey(const char* chars, int32 offset,
/haiku/src/tests/kits/locale/
H A DUnicodeCharTest.cpp82 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/apps/serialconnect/libvterm/include/
H A Dvterm.h99 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);

Completed in 145 milliseconds

12