| /vim-8.2.3635/src/libvterm/src/ |
| H A D | parser.c | 96 size_t vterm_input_write(VTerm *vt, const char *bytes, size_t len) in vterm_input_write() argument 115 string_start = bytes; in vterm_input_write() 125 unsigned char c = bytes[pos]; in vterm_input_write() 132 string_start = bytes + pos + 1; in vterm_input_write() 157 if(pos + 2 < len && bytes[pos + 1] == 0x20 && bytes[pos + 2] == 0x08) in vterm_input_write() 164 string_start = bytes + pos + 1; in vterm_input_write() 169 string_len = bytes + pos - string_start; in vterm_input_write() 259 string_start = bytes + pos + 1; in vterm_input_write() 264 string_start = bytes + pos; in vterm_input_write() 274 string_start = bytes + pos + 1; in vterm_input_write() [all …]
|
| H A D | encoding.c | 30 const char bytes[], size_t *pos, size_t bytelen) in decode_utf8() argument 39 unsigned char c = bytes[*pos]; in decode_utf8() 166 const char bytes[], size_t *pos, size_t bytelen) in decode_usascii() argument 168 int is_gr = bytes[*pos] & 0x80; in decode_usascii() 171 unsigned char c = bytes[*pos] ^ is_gr; in decode_usascii() 192 const char bytes[], size_t *pos, size_t bytelen) in decode_table() argument 195 int is_gr = bytes[*pos] & 0x80; in decode_table() 198 unsigned char c = bytes[*pos] ^ is_gr; in decode_table()
|
| H A D | vterm.c | 142 INTERNAL void vterm_push_output_bytes(VTerm *vt, const char *bytes, size_t len) in vterm_push_output_bytes() argument 145 (vt->outfunc)(bytes, len, vt->outdata); in vterm_push_output_bytes() 154 memcpy(vt->outbuffer + vt->outbuffer_cur, bytes, len); in vterm_push_output_bytes()
|
| H A D | vterm_internal.h | 236 const char bytes[], size_t *pos, size_t len); 247 void vterm_push_output_bytes(VTerm *vt, const char *bytes, size_t len);
|
| H A D | state.c | 276 static int on_text(const char bytes[], size_t len, void *user) in on_text() argument 295 !(bytes[eaten] & 0x80) ? &state->encoding[state->gl_set] : in on_text() 301 bytes, &eaten, len); in on_text() 621 static int on_escape(const char *bytes, size_t len, void *user) in on_escape() argument 628 switch(bytes[0]) { in on_escape() 633 switch(bytes[1]) { in on_escape() 651 switch(bytes[1]) { in on_escape() 696 int setnum = bytes[0] - 0x28; in on_escape() 697 VTermEncoding *newenc = vterm_lookup_encoding(ENC_SINGLE_94, bytes[1]); in on_escape()
|
| /vim-8.2.3635/src/testdir/ |
| H A D | test_wordcount.vim | 12 \ 'bytes': 0, 'cursor_bytes': 0}, wordcount()) 18 \ 'bytes': 15, 'cursor_bytes': 1}, wordcount()) 25 \ 'bytes': 15, 'cursor_bytes': 14}, wordcount()) 33 \ 'bytes': 15, 'cursor_bytes': 15}, wordcount()) 41 \ 'bytes': 43, 'cursor_bytes': 42}, wordcount()) 50 \ 'bytes': 18, 'cursor_bytes': 14}, wordcount()) 60 \ 'bytes': 17, 'cursor_bytes': 16}, wordcount()) 67 \ 'bytes': 36, 'cursor_bytes': 35}, wordcount()) 79 call assert_equal({'chars': 32, 'words': 7, 'bytes': 36, 'visual_chars': 32, 88 call assert_equal({'chars': 32, 'words': 7, 'bytes': 36, 'visual_chars': 1, [all …]
|
| H A D | test_python3.vim | 58 newmsg2 = """'argument must be str, bytes or bytearray, not int'""" 66 msg = repr((TypeError, TypeError('expected bytes with no null'))) 1580 \ 'Vim(py3):TypeError: expected bytes() or str() instance, but got dict') 1639 \ 'Vim(py3):TypeError: expected bytes() or str() instance, but got int') 2668 '"\\0"', # Fail PyString_AsStringAndSize(bytes, , NULL) check 3082 vim.eval("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) 3135 d.get(b"\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) 3136 d.get("\0"):(<class 'TypeError'>, TypeError('expected bytes with no null',)) 3149 d[b"\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',)) 3150 d["\0"] = 1:(<class 'TypeError'>, TypeError('expected bytes with no null',)) [all …]
|
| H A D | test_python2.vim | 2885 vim.command(u"\0"):TypeError:('expected string without null bytes',) 2886 vim.command("\0"):TypeError:('expected string without null bytes',) 2893 vim.eval(u"\0"):TypeError:('expected string without null bytes',) 2894 vim.eval("\0"):TypeError:('expected string without null bytes',) 2926 vim.options["\0"]:TypeError:('expected string without null bytes',) 2947 d.get(u"\0"):TypeError:('expected string without null bytes',) 2948 d.get("\0"):TypeError:('expected string without null bytes',) 2961 d[u"\0"] = 1:TypeError:('expected string without null bytes',) 2962 d["\0"] = 1:TypeError:('expected string without null bytes',) 3434 f({u"\0" : 1}):TypeError:('expected string without null bytes',) [all …]
|
| H A D | test_largefile.vim | 13 " Input 99 'A's. The line becomes 100 bytes including a line break. 16 " Put 39,999,999 times. The file becomes 4,000,000,000 bytes. 25 " Check if the file size is 4,000,000,000 bytes.
|
| H A D | mouse.vim | 29 let bytes = str->iconv('utf-8', 'latin1') 32 let bytes = str 34 return "\<Esc>[M" .. bytes
|
| H A D | test_xxd.vim | 43 " Test 3: Skip the first 0x30 bytes 50 " Test 4: Skip the first 30 bytes 67 " Test 5: Print 120 bytes as continuous hexdump with 20 octets per line
|
| H A D | test_makeencoding.py | 33 if isinstance(s, bytes):
|
| H A D | test_ga.vim | 26 " Test a few multi-bytes characters.
|
| /vim-8.2.3635/src/libvterm/t/ |
| H A D | 03encoding_utf8.test | 14 # Two bytes: 20 # Three bytes: 27 # Four bytes: 46 # + Early termination (back to low bytes too soon) 72 # Two bytes: 77 # Three bytes: 82 # Four bytes:
|
| H A D | harness.c | 104 static int parser_text(const char bytes[], size_t len, void *user UNUSED) in parser_text() argument 110 unsigned char b = bytes[i]; in parser_text() 127 static int parser_escape(const char bytes[], size_t len, void *user UNUSED) in parser_escape() argument 129 if(bytes[0] >= 0x20 && bytes[0] < 0x30) { in parser_escape() 139 printhex(bytes, len); in parser_escape() 660 char *bytes = line + 5; in main() local 661 size_t len = inplace_hex2bytes(bytes); in main() 662 size_t written = vterm_input_write(vt, bytes, len); in main() 676 char *bytes = line + 6; in main() local 677 size_t len = inplace_hex2bytes(bytes); in main() [all …]
|
| /vim-8.2.3635/runtime/doc/ |
| H A D | xxd.man | 58 bytes may be changed using -g. This option only applies to hex‐ 62 -g bytes | -groupsize bytes 63 Separate the output of every <bytes> bytes (two hex characters 101 Start at <seek> bytes abs. (or rel.) infile offset. + indicates 119 filled by null-bytes. 161 Print everything but the first three lines (hex 0x30 bytes) of file. 164 Print 3 lines (hex 0x30 bytes) from the end of file. 167 Print 120 bytes as continuous hexdump with 20 octets per line. 176 Hexdump the first 120 bytes of this man page with 12 octets per line. 193 Copy input_file to output_file and prepend 100 bytes of value 0x00. [all …]
|
| H A D | netbeans.txt | 348 NUL bytes are not allowed! 364 how they appear in the file (CR/LF counts for two bytes). 366 bytes it takes. 633 col = column number of the cursor (in bytes, zero based) 634 off = offset of the cursor in the buffer (in bytes) 637 getLength Return the length of the buffer in bytes. 638 Reply example for a buffer with 5000 bytes: 687 Delete "length" bytes of text at position "off". Both 795 Reports the position of the cursor being at "off" bytes into 883 NUL bytes are not possible. For editor -> IDE they will appear as NL
|
| /vim-8.2.3635/src/ |
| H A D | gui.c | 3425 bytes[0] = CSI; in gui_menu_cb() 3426 bytes[1] = KS_MENU; in gui_menu_cb() 3427 bytes[2] = KE_FILLER; in gui_menu_cb() 4110 bytes[0] = CSI; in gui_drag_scrollbar() 4112 bytes[2] = KE_FILLER; in gui_drag_scrollbar() 4113 bytes[3] = (char_u)sb_num; in gui_drag_scrollbar() 4140 bytes[0] = CSI; in gui_drag_scrollbar() 4142 bytes[2] = KE_FILLER; in gui_drag_scrollbar() 4870 char_u bytes[3]; in gui_focus_change() local 4872 bytes[0] = CSI; in gui_focus_change() [all …]
|
| H A D | term.c | 3296 char_u bytes[sizeof(long_u)]; in get_long_from_buf() local 3347 bytes[i] = c; in get_bytes_from_buf() 5620 char_u bytes[6]; in check_termcode() local 5625 mouse_col = 128 * (bytes[0] - ' ' - 1) + bytes[1] - ' ' - 1; in check_termcode() 5626 mouse_row = 128 * (bytes[2] - ' ' - 1) + bytes[3] - ' ' - 1; in check_termcode() 5707 char_u bytes[6]; in check_termcode() local 5712 current_tab = (int)bytes[0]; in check_termcode() 5720 char_u bytes[6]; in check_termcode() local 5725 current_tab = (int)bytes[0]; in check_termcode() 5726 current_tabmenu = (int)bytes[1]; in check_termcode() [all …]
|
| H A D | mouse.c | 2126 char_u bytes[6]; in check_termcode_mouse() local 2182 num_bytes = get_bytes_from_buf(tp + *slen, bytes, 5); in check_termcode_mouse() 2185 mouse_code = bytes[0]; in check_termcode_mouse() 2186 mouse_col = 128 * (bytes[1] - ' ' - 1) in check_termcode_mouse() 2187 + bytes[2] - ' ' - 1; in check_termcode_mouse() 2188 mouse_row = 128 * (bytes[3] - ' ' - 1) in check_termcode_mouse() 2189 + bytes[4] - ' ' - 1; in check_termcode_mouse() 2194 num_bytes = get_bytes_from_buf(tp + *slen, bytes, 3); in check_termcode_mouse() 2197 mouse_code = bytes[0]; in check_termcode_mouse() 2198 mouse_col = bytes[1] - ' ' - 1; in check_termcode_mouse() [all …]
|
| H A D | screen.c | 1433 bytes[0] = ScreenLines[off]; in screen_getbytes() 1434 bytes[1] = NUL; in screen_getbytes() 1437 bytes[utfc_char2bytes(off, bytes)] = NUL; in screen_getbytes() 1440 bytes[0] = ScreenLines[off]; in screen_getbytes() 1441 bytes[1] = ScreenLines2[off]; in screen_getbytes() 1442 bytes[2] = NUL; in screen_getbytes() 1444 else if (enc_dbcs && MB_BYTE2LEN(bytes[0]) > 1) in screen_getbytes() 1446 bytes[1] = ScreenLines[off + 1]; in screen_getbytes() 1447 bytes[2] = NUL; in screen_getbytes() 4791 int bytes; in get_encoded_char_adv() local [all …]
|
| H A D | gui_haiku.cc | 244 virtual void KeyDown(const char *bytes, int32 numBytes); 1252 memcpy((char *)dest, bytes, numBytes); in KeyDown() 1271 if (((char_u)bytes[0] <= 0x20 || (char_u)bytes[0] == 0x7F) && in KeyDown() 1295 bytes = (char *)newBytes; in KeyDown() 1306 if (numBytes == 0 || bytes[0] == B_FUNCTION_KEY) { in KeyDown() 1310 } else if (*bytes == '\n' && scancode == 0x47) { in KeyDown() 1316 beoskey = K(bytes[0]); in KeyDown() 1332 string[0] = bytes[0]; in KeyDown() 1339 bytes[0] == B_SPACE || bytes[0] == B_TAB || in KeyDown() 1340 bytes[0] == B_RETURN || bytes[0] == '\r' || in KeyDown() [all …]
|
| H A D | if_py_both.h | 131 PyObject *bytes; in StringToChars() local 140 Py_DECREF(bytes); in StringToChars() 144 *todecref = bytes; in StringToChars() 4236 PyObject *bytes = NULL; in StringToLine() local 4256 Py_DECREF(bytes); in StringToLine() 4288 Py_XDECREF(bytes); in StringToLine() 4301 Py_XDECREF(bytes); in StringToLine() 6294 PyObject *bytes; in _ConvertFromPyObject() local 6298 if (bytes == NULL) in _ConvertFromPyObject() 6308 Py_XDECREF(bytes); in _ConvertFromPyObject() [all …]
|
| H A D | hardcopy.c | 1323 static void prt_write_file_len(char_u *buffer, int bytes); 1402 prt_write_file_raw_len(char_u *buffer, int bytes) in prt_write_file_raw_len() argument 1405 && fwrite(buffer, sizeof(char_u), bytes, prt_ps_fd) in prt_write_file_raw_len() 1406 != (size_t)bytes) in prt_write_file_raw_len() 1420 prt_write_file_len(char_u *buffer, int bytes) in prt_write_file_len() argument 1423 ebcdic2ascii(buffer, bytes); in prt_write_file_len() 1425 prt_write_file_raw_len(buffer, bytes); in prt_write_file_len()
|
| /vim-8.2.3635/src/libvterm/include/ |
| H A D | vterm.h | 319 size_t vterm_input_write(VTerm *vt, const char *bytes, size_t len); 372 int (*text)(const char *bytes, size_t len, void *user); 374 int (*escape)(const char *bytes, size_t len, void *user);
|