Lines Matching refs:byte
475 For a Blob one byte at a time is used.
683 value of an 8-bit byte, from 0 to 255.
703 A byte in the Blob can be accessed by putting the index in square brackets
704 after the Blob. Indexes are zero-based, thus the first byte has index zero. >
706 :let byte = myblob[0] " get the first byte: 0x00
707 :let byte = myblob[2] " get the third byte: 0x22
709 A negative index is counted from the end. Index -1 refers to the last byte in
710 the Blob, -2 to the last but one byte, etc. >
711 :let last = myblob[-1] " get the last byte: 0x33
721 The |:for| loop executes commands for each byte of a Blob. The loop variable is
722 set to each byte in the Blob. Example: >
723 :for byte in 0z112233
724 : call Doit(byte)
749 :let shortblob = myblob[2:2] " Blob with one byte: 0z22
752 If the first index is beyond the last byte of the Blob or the second index is
763 To change a specific byte of a blob use |:let| this way: >
774 To change part of a blob you can specify the first and last byte to be
881 expr8[expr1] byte of a String or item of a |List|
1077 results in the mathematical difference (comparing byte values), not
1188 expr1'th single byte from expr8. expr8 is used as a String (a number is
1192 byte under the cursor: >
1197 single character (including any composing characters) from expr8. To use byte
1200 Index zero gives the first byte or character. Careful: text column numbers
1205 compatibility). Use [-1:] to get the last byte or character.
1224 In legacy Vim script the indexes are byte indexes. This doesn't recognize
1229 characters. To use byte indexes use |strpart()|. To use character indexes
1245 :let c = name[-1:] " last byte of a string
1247 :let c = name[-2:-2] " last but one byte of a string
1248 :let s = line(".")[4:] " from the fifth byte to the end
1411 \x.. byte specified with two hex numbers (e.g., "\x1f")
1412 \x. byte specified with one hex number (must be followed by non-hex char)
1427 in mappings, the 0x80 byte is escaped.
1435 Note that "\xff" is stored as the byte 255, which may be invalid in some
1771 This is the byte index in the |v:beval_lnum| line.
2537 byte2line({byte}) Number line number at byte count {byte}
2538 byteidx({expr}, {nr}) Number byte index of {nr}'th char in {expr}
2539 byteidxcomp({expr}, {nr}) Number byte index of {nr}'th char in {expr}
2575 Number char index of byte {idx} in {string}
2579 col({expr}) Number column byte index of cursor or mark
2777 line2byte({lnum}) Number byte count of line {lnum}
3033 byte {start}
3167 wordcount() Dict get byte/char/word statistics
3415 Return a List containing the number value of each byte in Blob
3608 byte2line({byte}) *byte2line()*
3609 Return the line number that contains the character at byte
3610 count {byte} in the current buffer. This includes the
3612 for the current buffer. The first character has byte count
3623 Return byte index of the {nr}'th character in the String
3628 Composing characters are not counted separately, their byte
3656 one byte).
3738 position given with {expr} instead of the byte position.
3750 Return the character index of the byte at {idx} in {string}.
3755 are not counted separately, their byte length is
3760 than the index of the last byte in {string}. An error is
3764 See |byteidx()| and |byteidxcomp()| for getting the byte index
3821 col({expr}) The result is a Number, which is the byte index of the column
3866 {startcol} is the byte offset in the line where the completed
4135 Positions the cursor at the column (byte count) {col} in the
4271 {col} (byte index). When the current line does not have a
4884 |Blob| each byte is removed.
4892 current byte.
5301 Get byte {idx} from |Blob| {blob}. When this byte is not
5493 When [expr] is 1 only the first byte is returned. For a
5494 one-byte character it is the character itself as a number.
5570 instead of a byte index.
5629 byte count. The first column is 1.
5724 The first "bufnum" item is always zero. The byte position of
5747 List is a character index instead of a byte index.
6068 The column number in the returned List is the byte position
6094 |FALSE|: "col" is byte index
6903 If {object} is |Blob| return the lowest index where the byte
7364 Return the byte count from the start of the buffer for line
7368 This can also be used to get the byte count for the line just
7451 was affected; this is a byte index, first
7571 {expr2}. For a |Blob| each byte is replaced.
7582 current byte.
7754 Number, which gives the index (byte offset) in {expr} where
7773 If {start} is given, the search starts from byte index
7786 {start} byte are ignored (this is a bit complicated to keep it
7889 column is 1, the value must correspond to the byte index as
8021 use |byteidx()| to convert a character position to a byte
8426 %c single byte
8547 c The Number argument is converted to a byte, and the
8824 "case" sort case sensitive (byte value of
8923 - When 'encoding' is Unicode any UTF-8 byte order mark is
9168 Without {end}: Remove the byte at {idx} from |Blob| {blob} and
9169 return the byte.
9172 byte as {end} a |Blob| with one byte is returned. When {end}
9173 points to a byte before {idx} this is an error.
9175 :echo "last byte: " . remove(myblob, -1)
9284 The character excludes composing characters. For double-byte
9285 encodings it may only be the first byte.
9319 {col}. {col} is a one-based byte index.
9702 is the line number and the second element is the byte index of
9714 is the line number and the second element is the byte index of
9828 character index instead of the byte index in the line.
9864 Set the cursor position in the command line to byte position
9884 character index instead of the byte index in the line.
9914 permission is off, any other character means on. Multi-byte
10013 instead of the byte count, use |setcharpos()|.
10067 when zero: "col" is byte index
10422 character indexes instead of byte indexes, like in
10808 of byte index and length.
10892 index, not a byte index. Composing characters are considered
10900 The result is a Number, which gives the byte index in
10958 byte {start}, with the byte length {len}.
11013 The result is a Number, which gives the byte index in
11441 line number or a line number followed by a byte number.
11841 For the byte position use |col()|.
12207 The result is a dictionary of byte/chars/word statistics for
12262 To copy a file byte for byte: >
13036 This cannot be used to set a byte in a String. You
13040 length of the blob, in which case one byte is