Home
last modified time | relevance | path

Searched refs:pos_byte (Results 1 – 25 of 72) sorted by relevance

123

/dports/devel/R-cran-fansi/fansi/src/
H A Dread.c177 state.pos_byte += res.len; in parse_colors()
189 state.pos_byte -= (res.len); in parse_colors()
198 state.pos_byte -= (res.len); in parse_colors()
214 state.pos_byte += res.len; in parse_colors()
251 ++state.pos_byte; in read_ascii()
336 ++state.pos_byte; // advance ESC in read_esc()
338 if(!state.string[state.pos_byte]) { in read_esc()
362 ++state.pos_byte; in read_esc()
376 state.pos_byte += tok_res.len; in read_esc()
538 int byte_offset = state.pos_byte - state_prev.pos_byte; in read_esc()
[all …]
H A Dwrap.c141 (state_bound.pos_byte < state_start.pos_byte) || in FANSI_writeline()
150 size_t target_size = state_bound.pos_byte - state_start.pos_byte; in FANSI_writeline()
238 state_bound.pos_byte - state_start.pos_byte in FANSI_writeline()
240 buff_track += state_bound.pos_byte - state_start.pos_byte; in FANSI_writeline()
355 if(!state.string[state.pos_byte]){ in strwrap()
368 state.string[state.pos_byte] == ' ' || in strwrap()
370 state.string[state.pos_byte] == '\n' in strwrap()
386 !state.string[state.pos_byte] || in strwrap()
402 !state.string[state.pos_byte] || in strwrap()
425 state_bound.pos_byte < state.pos_byte in strwrap()
[all …]
H A Dtabs.c30 if(*(state.string + state.pos_byte) != '\t') in FANSI_tab_width()
124 int last_byte = state.pos_byte; in FANSI_tabs_as_spaces()
128 cur_chr = state.string[state.pos_byte]; in FANSI_tabs_as_spaces()
139 int write_bytes = state.pos_byte - last_byte; in FANSI_tabs_as_spaces()
148 cur_chr = state.string[state.pos_byte]; in FANSI_tabs_as_spaces()
150 last_byte = state.pos_byte; in FANSI_tabs_as_spaces()
/dports/editors/emacs-devel/emacs-4d1968b/src/
H A Dsearch.c375 ptrdiff_t pos_byte, i; in string_match_1() local
385 pos = 0, pos_byte = 0; in string_match_1()
533 if (pos_byte < 0) in fast_looking_at()
545 if (pos_byte < 0) in fast_looking_at()
1211 pos_byte - BEGV_BYTE, lim_byte - pos_byte, in search_buffer_re()
1258 pos_byte - BEGV_BYTE, lim_byte - pos_byte, in search_buffer_re()
1587 pos_byte += match_byte; in simple_search()
2463 &pos, &pos_byte);
2530 for (pos_byte = 0, pos = 0; pos_byte < length;)
2598 pos, pos_byte);
[all …]
H A Dindent.c890 p = BYTE_POS_ADDR (pos_byte); in position_indentation()
908 if (pos_byte == ZV_BYTE) in position_indentation()
918 if (pos_byte >= ceiling) in position_indentation()
953 pos_byte += next_char_len (pos_byte); in position_indentation()
974 -1, NULL, &pos_byte, 0); in indented_beyond_p()
1131 ptrdiff_t pos_byte; in compute_motion() local
1245 pos_byte = prev_pos_byte; in compute_motion()
1401 pos_byte = prev_pos_byte; in compute_motion()
1533 c = FETCH_BYTE (pos_byte); in compute_motion()
1534 pos++, pos_byte++; in compute_motion()
[all …]
H A Ddecompress.c238 ptrdiff_t istart, iend, pos_byte; variable
290 pos_byte = istart;
298 ptrdiff_t avail_in = min (iend - pos_byte, UINT_MAX);
304 stream.next_in = BYTE_POS_ADDR (pos_byte);
309 pos_byte += avail_in - stream.avail_in;
321 ret = make_int (iend - pos_byte);
H A Deditfns.c966 ptrdiff_t pos_byte; variable
970 if (pos_byte < BEG_BYTE || pos_byte > Z_BYTE)
978 pos_byte--;
1064 if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)
1070 if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)
1104 if (pos_byte <= BEGV_BYTE || pos_byte > ZV_BYTE)
1119 pos_byte -= prev_char_len (pos_byte);
1124 pos_byte--;
2465 pos_byte += len1; in check_translation()
2606 pos_byte += len;
[all …]
H A Dcasefiddle.c469 ptrdiff_t pos = *startp, pos_byte = CHAR_TO_BYTE (pos), size = *endp - pos; in do_casify_multibyte_region() local
474 int len, ch = string_char_and_length (BYTE_POS_ADDR (pos_byte), &len); in do_casify_multibyte_region()
477 size > 1 ? BYTE_POS_ADDR (pos_byte + len) : NULL)) in do_casify_multibyte_region()
479 pos_byte += len; in do_casify_multibyte_region()
489 memcpy (BYTE_POS_ADDR (pos_byte), buf.data, len); in do_casify_multibyte_region()
494 replace_range_2 (pos, pos_byte, pos + 1, pos_byte + len, in do_casify_multibyte_region()
503 pos_byte += buf.len_bytes; in do_casify_multibyte_region()
H A Dcmds.c116 ptrdiff_t opoint = PT, pos, pos_byte, count; variable
134 ptrdiff_t counted = scan_newline_from_point (count, &pos, &pos_byte);
136 SET_PT_BOTH (pos, pos_byte);
369 ptrdiff_t pos_byte = PT_BYTE; in internal_self_insert() local
401 SET_PT_BOTH (pos, pos_byte); in internal_self_insert()
H A Dinsdel.c768 ptrdiff_t pos, ptrdiff_t pos_byte) in count_combining_before() argument
782 if (pos_byte == BEG_BYTE) /* case (2) */ in count_combining_before()
785 p = BYTE_POS_ADDR (pos_byte - 1); in count_combining_before()
815 ptrdiff_t opos_byte = pos_byte; in count_combining_after()
830 if (pos_byte == Z_BYTE) /* case (2) */ in count_combining_after()
832 bufp = BYTE_POS_ADDR (pos_byte); in count_combining_after()
847 i = pos_byte - 2; in count_combining_after()
856 : bytes - (pos_byte - 1 - i + length)); in count_combining_after()
862 bufp++, pos_byte++; in count_combining_after()
865 return (bytes <= pos_byte - opos_byte ? bytes : pos_byte - opos_byte); in count_combining_after()
[all …]
/dports/editors/emacs/emacs-27.2/src/
H A Dsearch.c373 ptrdiff_t pos_byte, i; in string_match_1() local
382 pos = 0, pos_byte = 0; in string_match_1()
522 if (pos_byte < 0) in fast_looking_at()
534 if (pos_byte < 0) in fast_looking_at()
1198 pos_byte - BEGV_BYTE, lim_byte - pos_byte, in search_buffer_re()
1245 pos_byte - BEGV_BYTE, lim_byte - pos_byte, in search_buffer_re()
1576 pos_byte += match_byte; in simple_search()
2087 pos_byte -= direction; in boyer_moore()
2518 for (pos_byte = 0, pos = 0; pos_byte < length;)
2586 pos, pos_byte);
[all …]
H A Dcharacter.h474 #define INC_POS(pos_byte) \ argument
477 pos_byte += BYTES_BY_CHAR_HEAD (*chp); \
484 #define DEC_POS(pos_byte) \ argument
488 pos_byte--; \
489 if (pos_byte < GPT_BYTE) \
496 pos_byte--; \
533 #define BUF_INC_POS(buf, pos_byte) \ argument
543 #define BUF_DEC_POS(buf, pos_byte) \ argument
546 pos_byte--; \
547 if (pos_byte < BUF_GPT_BYTE (buf)) \
[all …]
H A Dindent.c900 if (pos_byte == ZV_BYTE) in position_indentation()
910 if (pos_byte >= ceiling) in position_indentation()
945 INC_POS (pos_byte); in position_indentation()
966 -1, NULL, &pos_byte, 0); in indented_beyond_p()
1013 DEC_POS (pos_byte);
1125 ptrdiff_t pos_byte; in compute_motion() local
1239 pos_byte = prev_pos_byte; in compute_motion()
1395 pos_byte = prev_pos_byte; in compute_motion()
1527 c = FETCH_BYTE (pos_byte); in compute_motion()
1528 pos++, pos_byte++; in compute_motion()
[all …]
H A Ddecompress.c136 ptrdiff_t istart, iend, pos_byte; variable
188 pos_byte = istart;
196 ptrdiff_t avail_in = min (iend - pos_byte, UINT_MAX);
202 stream.next_in = BYTE_POS_ADDR (pos_byte);
207 pos_byte += avail_in - stream.avail_in;
219 ret = make_int (iend - pos_byte);
H A Deditfns.c954 ptrdiff_t pos_byte; variable
958 if (pos_byte < BEG_BYTE || pos_byte > Z_BYTE)
966 pos_byte--;
1051 pos_byte = PT_BYTE;
1052 if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)
1058 if (pos_byte < BEGV_BYTE || pos_byte >= ZV_BYTE)
1092 if (pos_byte <= BEGV_BYTE || pos_byte > ZV_BYTE)
1112 pos_byte--;
2484 pos_byte += len1; in check_translation()
2625 pos_byte += len;
[all …]
H A Dcasefiddle.c431 ptrdiff_t pos = *startp, pos_byte = CHAR_TO_BYTE (pos), size = *endp - pos; in do_casify_multibyte_region() local
437 int ch = STRING_CHAR_AND_LENGTH (BYTE_POS_ADDR (pos_byte), len); in do_casify_multibyte_region()
440 size > 1 ? BYTE_POS_ADDR (pos_byte + len) : NULL)) in do_casify_multibyte_region()
442 pos_byte += len; in do_casify_multibyte_region()
452 memcpy (BYTE_POS_ADDR (pos_byte), buf.data, len); in do_casify_multibyte_region()
457 replace_range_2 (pos, pos_byte, pos + 1, pos_byte + len, in do_casify_multibyte_region()
466 pos_byte += buf.len_bytes; in do_casify_multibyte_region()
H A Dinsdel.c769 ptrdiff_t pos, ptrdiff_t pos_byte) in count_combining_before() argument
783 if (pos_byte == BEG_BYTE) /* case (2) */ in count_combining_before()
786 p = BYTE_POS_ADDR (pos_byte - 1); in count_combining_before()
816 ptrdiff_t opos_byte = pos_byte; in count_combining_after()
831 if (pos_byte == Z_BYTE) /* case (2) */ in count_combining_after()
833 bufp = BYTE_POS_ADDR (pos_byte); in count_combining_after()
848 i = pos_byte - 2; in count_combining_after()
857 : bytes - (pos_byte - 1 - i + length)); in count_combining_after()
863 bufp++, pos_byte++; in count_combining_after()
866 return (bytes <= pos_byte - opos_byte ? bytes : pos_byte - opos_byte); in count_combining_after()
[all …]
H A Dcmds.c125 ptrdiff_t opoint = PT, pos, pos_byte, count; variable
143 ptrdiff_t counted = scan_newline_from_point (count, &pos, &pos_byte);
145 SET_PT_BOTH (pos, pos_byte);
378 ptrdiff_t pos_byte = PT_BYTE; in internal_self_insert() local
410 SET_PT_BOTH (pos, pos_byte); in internal_self_insert()
/dports/devel/m17n-lib/m17n-lib-1.8.0/src/
H A Dmtext.h35 #define POS_BYTE_TO_CHAR(mt, pos_byte) \ argument
36 (mtext_nchars (mt) == mtext_nbytes (mt) ? (pos_byte) \
37 : (pos_byte) == (mt)->cache_byte_pos ? (mt)->cache_char_pos \
38 : mtext__byte_to_char ((mt), (pos_byte)))
45 extern int mtext__byte_to_char (MText *mt, int pos_byte);
/dports/security/liboqs/liboqs-0.7.0/src/kem/bike/additional_r3/
H A Dgf2x_ksqr_portable.c40 size_t pos_byte = pos >> 3; in k_sqr_port() local
42 uint8_t bit = (a->val.raw[pos_byte] >> pos_bit) & 1; in k_sqr_port()
/dports/security/s2n/s2n-tls-1.1.2/pq-crypto/bike_r3/
H A Dgf2x_ksqr_portable.c40 size_t pos_byte = pos >> 3; in k_sqr_port() local
42 uint8_t bit = (a->val.raw[pos_byte] >> pos_bit) & 1; in k_sqr_port()
/dports/devel/arm-none-eabi-gcc492/gcc-4.9.2/gcc/testsuite/gcc.dg/
H A Dpr50908.c68 long pos_byte; local
99 *(((((pos_byte)) >=
102 ((pos_byte)) + (current_buffer->text->beg) - ((1))));
/dports/lang/gcc48/gcc-4.8.5/gcc/testsuite/gcc.dg/
H A Dpr50908.c68 long pos_byte; local
99 *(((((pos_byte)) >=
102 ((pos_byte)) + (current_buffer->text->beg) - ((1))));
/dports/devel/mingw32-gcc/gcc-4.8.1/gcc/testsuite/gcc.dg/
H A Dpr50908.c68 long pos_byte; local
99 *(((((pos_byte)) >=
102 ((pos_byte)) + (current_buffer->text->beg) - ((1))));
/dports/lang/gcc10/gcc-10.3.0/gcc/testsuite/gcc.dg/
H A Dpr50908.c72 long pos_byte; local
103 *(((((pos_byte)) >=
106 ((pos_byte)) + (current_buffer->text->beg) - ((1))));

123