Home
last modified time | relevance | path

Searched refs:bytepos (Results 1 – 25 of 642) sorted by relevance

12345678910>>...26

/dports/editors/emacs-devel/emacs-4d1968b/src/
H A Dmarker.c324 eassert (BUF_BEG_BYTE (b) <= bytepos && bytepos <= BUF_Z_BYTE (b)); in buf_bytepos_to_charpos()
333 return bytepos; in buf_bytepos_to_charpos()
368 if (bytepos - best_below_byte < best_above_byte - bytepos) in buf_bytepos_to_charpos()
473 m->bytepos = bytepos; in attach_marker()
520 m->bytepos = XMARKER (position)->bytepos; in set_marker_internal()
539 bytepos = -1; in set_marker_internal()
547 bytepos = XMARKER (position)->bytepos; in set_marker_internal()
558 if (bytepos == -1 in set_marker_internal()
562 bytepos = clip_to_bounds in set_marker_internal()
712 eassert (BUF_BEG_BYTE (buf) <= m->bytepos && m->bytepos <= BUF_Z_BYTE (buf)); in marker_byte_position()
[all …]
H A Dinsdel.c94 if (bytepos < GPT_BYTE) in move_gap_both()
126 i = new_s1 - bytepos; in gap_left()
137 bytepos = new_s1; in gap_left()
157 GPT_BYTE = bytepos; in gap_left()
199 bytepos = new_s1; in gap_right()
212 GPT_BYTE = bytepos; in gap_right()
309 m->bytepos += nbytes; in adjust_markers_for_insert()
380 eassert (BEG_BYTE <= bytepos && bytepos <= Z_BYTE in count_bytes()
385 bytepos += next_char_len (bytepos); in count_bytes()
388 bytepos -= prev_char_len (bytepos); in count_bytes()
[all …]
H A Dcomposite.c1041 if (bytepos < 0) in composition_compute_stop_pos()
1044 bytepos = CHAR_TO_BYTE (charpos); in composition_compute_stop_pos()
1109 p = BYTE_POS_ADDR (bytepos); in composition_compute_stop_pos()
1111 p = SDATA (string) + bytepos; in composition_compute_stop_pos()
1113 limit = bytepos + len; in composition_compute_stop_pos()
1128 bpos = bytepos; in composition_compute_stop_pos()
1167 p--, bytepos--; in composition_compute_stop_pos()
1169 p--, bytepos--; in composition_compute_stop_pos()
1345 bytepos += next_char_len (bytepos); in composition_reseat_it()
1347 bytepos += BYTES_BY_CHAR_HEAD (*(SDATA (string) + bytepos)); in composition_reseat_it()
[all …]
H A Dbidi.c1141 if (bytepos >= 0) in bidi_init_it()
1142 bidi_it->bytepos = bytepos; in bidi_init_it()
1239 s += bytepos; in bidi_char_at_pos()
1417 bytepos += *ch_len; in bidi_fetch_char_skip_isolates()
1621 bytepos += *ch_len; in find_first_strong_char()
1653 bytepos += *ch_len; in find_first_strong_char()
1676 ptrdiff_t bytepos = bidi_it->bytepos; in bidi_paragraph_init() local
1729 if (bytepos > begbyte in bidi_paragraph_init()
1732 bytepos++; in bidi_paragraph_init()
1752 bytepos = pstartbyte; in bidi_paragraph_init()
[all …]
H A Dsyntax.h162 SYNTAX_TABLE_BYTE_TO_CHAR (ptrdiff_t bytepos) in SYNTAX_TABLE_BYTE_TO_CHAR() argument
167 ? string_byte_to_char (gl_state.object, bytepos) in SYNTAX_TABLE_BYTE_TO_CHAR()
171 (bytepos + BUF_BEGV_BYTE (XBUFFER (gl_state.object)) - 1))) in SYNTAX_TABLE_BYTE_TO_CHAR()
174 ? BYTE_TO_CHAR (bytepos + BEGV_BYTE - 1) - BEGV + 1 in SYNTAX_TABLE_BYTE_TO_CHAR()
175 : bytepos); in SYNTAX_TABLE_BYTE_TO_CHAR()
/dports/editors/emacs/emacs-27.2/src/
H A Dmarker.c324 eassert (BUF_BEG_BYTE (b) <= bytepos && bytepos <= BUF_Z_BYTE (b)); in buf_bytepos_to_charpos()
333 return bytepos; in buf_bytepos_to_charpos()
368 if (bytepos - best_below_byte < best_above_byte - bytepos) in buf_bytepos_to_charpos()
473 m->bytepos = bytepos; in attach_marker()
520 m->bytepos = XMARKER (position)->bytepos; in set_marker_internal()
539 bytepos = -1; in set_marker_internal()
547 bytepos = XMARKER (position)->bytepos; in set_marker_internal()
558 if (bytepos == -1 in set_marker_internal()
562 bytepos = clip_to_bounds in set_marker_internal()
713 eassert (BUF_BEG_BYTE (buf) <= m->bytepos && m->bytepos <= BUF_Z_BYTE (buf)); in marker_byte_position()
[all …]
H A Dbidi.c1141 if (bytepos >= 0) in bidi_init_it()
1142 bidi_it->bytepos = bytepos; in bidi_init_it()
1239 s += bytepos; in bidi_char_at_pos()
1415 bytepos += *ch_len; in bidi_fetch_char_skip_isolates()
1619 bytepos += *ch_len; in find_first_strong_char()
1651 bytepos += *ch_len; in find_first_strong_char()
1674 ptrdiff_t bytepos = bidi_it->bytepos; in bidi_paragraph_init() local
1727 if (bytepos > begbyte in bidi_paragraph_init()
1730 bytepos++; in bidi_paragraph_init()
1750 bytepos = pstartbyte; in bidi_paragraph_init()
[all …]
H A Dinsdel.c94 if (bytepos < GPT_BYTE) in move_gap_both()
126 i = new_s1 - bytepos; in gap_left()
137 bytepos = new_s1; in gap_left()
157 GPT_BYTE = bytepos; in gap_left()
199 bytepos = new_s1; in gap_right()
212 GPT_BYTE = bytepos; in gap_right()
309 m->bytepos += nbytes; in adjust_markers_for_insert()
380 eassert (BEG_BYTE <= bytepos && bytepos <= Z_BYTE in count_bytes()
385 INC_POS (bytepos); in count_bytes()
388 DEC_POS (bytepos); in count_bytes()
[all …]
H A Dcomposite.c1001 if (bytepos < 0) in composition_compute_stop_pos()
1004 bytepos = CHAR_TO_BYTE (charpos); in composition_compute_stop_pos()
1070 p = BYTE_POS_ADDR (bytepos); in composition_compute_stop_pos()
1072 p = SDATA (string) + bytepos; in composition_compute_stop_pos()
1074 limit = bytepos + len; in composition_compute_stop_pos()
1089 bpos = bytepos; in composition_compute_stop_pos()
1128 p--, bytepos--; in composition_compute_stop_pos()
1130 p--, bytepos--; in composition_compute_stop_pos()
1306 INC_POS (bytepos); in composition_reseat_it()
1308 bytepos += BYTES_BY_CHAR_HEAD (*(SDATA (string) + bytepos)); in composition_reseat_it()
[all …]
/dports/security/base/base-1.4.5/contrib/SnortUnified/
H A DSnortUnified.pm1190 my $bytepos = 0;
1199 while ( $bytepos < $optionlen ) {
1216 $bytepos = $length;
1221 $bytepos = $bytepos + $IP_OPT_MAP->{$number}->{'length'};
1236 $bytepos = $length;
1256 my $bytepos = 0;
1265 $number = @bytes[$bytepos];
1282 $bytepos += $length;
1289 $bytepos += $length;
1294 $bytepos += 1;
[all …]
/dports/editors/bvi/bvi-1.4.0/
H A Dbmore.c643 ++bytepos;
653 ++bytepos;
706 bytepos += num;
771 bytepos++;
778 bytepos++;
810 bytepos--;
814 bytepos++;
852 bytepos--;
854 bytepos++;
899 oldpos = bytepos;
[all …]
/dports/net-im/climm/climm-0.7.1/src/
H A Dutil_alias.c117 const char *AliasExpand (const char *string, UDWORD bytepos, char autoexpand) in AliasExpand() argument
124 if (!bytepos) in AliasExpand()
127 bytepos = p - string; in AliasExpand()
129 bytepos = strlen (string); in AliasExpand()
133 if ((!autoexpand || e->autoexpand) && strlen (e->command) == bytepos in AliasExpand()
134 && !strncmp (string, e->command, bytepos)) in AliasExpand()
158 s_cat (&al_exp, string + bytepos); in AliasExpand()
166 if (!found_s && string[bytepos]) in AliasExpand()
168 if (string[bytepos] != ' ') in AliasExpand()
170 s_cat (&al_exp, string + bytepos); in AliasExpand()
/dports/astro/oskar/OSKAR-2.8.0/extern/cfitsio/
H A Dbuffers.c29 if (bytepos < 0) in ffmbyt()
43 (fptr->Fptr)->bytepos = bytepos; /* save new file position */ in ffmbyt()
154 (fptr->Fptr)->bytepos = filepos + nwrite + ntodo; in ffpbyt()
277 (fptr->Fptr)->bytepos = (fptr->Fptr)->bytepos + (ngroups * gsize) in ffpbytoff()
466 (fptr->Fptr)->bytepos = (fptr->Fptr)->bytepos + (ngroups * gsize) in ffgbytoff()
789 LONGLONG bytepos, endrow; in ffgtbb() local
812 bytepos = (fptr->Fptr)->datastart + in ffgtbb()
816 ffmbyt(fptr, bytepos, REPORT_EOF, status); in ffgtbb()
1134 LONGLONG bytepos, endrow, nrows; in ffptbb() local
1185 bytepos = (fptr->Fptr)->datastart + in ffptbb()
[all …]
/dports/astro/cfitsio/cfitsio-3.49/
H A Dbuffers.c29 if (bytepos < 0) in ffmbyt()
43 (fptr->Fptr)->bytepos = bytepos; /* save new file position */ in ffmbyt()
154 (fptr->Fptr)->bytepos = filepos + nwrite + ntodo; in ffpbyt()
277 (fptr->Fptr)->bytepos = (fptr->Fptr)->bytepos + (ngroups * gsize) in ffpbytoff()
466 (fptr->Fptr)->bytepos = (fptr->Fptr)->bytepos + (ngroups * gsize) in ffgbytoff()
789 LONGLONG bytepos, endrow; in ffgtbb() local
812 bytepos = (fptr->Fptr)->datastart + in ffgtbb()
816 ffmbyt(fptr, bytepos, REPORT_EOF, status); in ffgtbb()
1134 LONGLONG bytepos, endrow, nrows; in ffptbb() local
1185 bytepos = (fptr->Fptr)->datastart + in ffptbb()
[all …]
/dports/science/healpix/Healpix_3.50/src/healpy/cfitsio/
H A Dbuffers.c29 if (bytepos < 0) in ffmbyt()
43 (fptr->Fptr)->bytepos = bytepos; /* save new file position */ in ffmbyt()
154 (fptr->Fptr)->bytepos = filepos + nwrite + ntodo; in ffpbyt()
277 (fptr->Fptr)->bytepos = (fptr->Fptr)->bytepos + (ngroups * gsize) in ffpbytoff()
466 (fptr->Fptr)->bytepos = (fptr->Fptr)->bytepos + (ngroups * gsize) in ffgbytoff()
789 LONGLONG bytepos, endrow; in ffgtbb() local
812 bytepos = (fptr->Fptr)->datastart + in ffgtbb()
816 ffmbyt(fptr, bytepos, REPORT_EOF, status); in ffgtbb()
1134 LONGLONG bytepos, endrow, nrows; in ffptbb() local
1185 bytepos = (fptr->Fptr)->datastart + in ffptbb()
[all …]
/dports/astro/py-astropy/astropy-5.0/cextern/cfitsio/lib/
H A Dbuffers.c29 if (bytepos < 0) in ffmbyt()
43 (fptr->Fptr)->bytepos = bytepos; /* save new file position */ in ffmbyt()
154 (fptr->Fptr)->bytepos = filepos + nwrite + ntodo; in ffpbyt()
277 (fptr->Fptr)->bytepos = (fptr->Fptr)->bytepos + (ngroups * gsize) in ffpbytoff()
466 (fptr->Fptr)->bytepos = (fptr->Fptr)->bytepos + (ngroups * gsize) in ffgbytoff()
789 LONGLONG bytepos, endrow; in ffgtbb() local
812 bytepos = (fptr->Fptr)->datastart + in ffgtbb()
816 ffmbyt(fptr, bytepos, REPORT_EOF, status); in ffgtbb()
1134 LONGLONG bytepos, endrow, nrows; in ffptbb() local
1185 bytepos = (fptr->Fptr)->datastart + in ffptbb()
[all …]
/dports/deskutils/recoll/recoll-1.31.2/common/
H A Dtextsplitko.cpp239 STRSZT bytepos{0}; in ko_to_words() local
258 bytepos += word.size() + 1; in ko_to_words()
263 STRSZT newpos = inputdata.find(word, bytepos); in ko_to_words()
265 bytepos = newpos; in ko_to_words()
269 STRSZT abspos = orgbytepos + bytepos - pagefix; in ko_to_words()
274 return e.first == bytepos; in ko_to_words()
279 " bytepos " << bytepos << "\n"); in ko_to_words()
293 " bytepos " << bytepos << "\n"); in ko_to_words()
305 bytepos += word.size(); in ko_to_words()
309 int sizediff = inputdata.size() - (bytepos - orgbytepos); in ko_to_words()
[all …]
/dports/graphics/netpbm/netpbm-10.91.01/converter/other/fiasco/lib/
H A Dbit-io.c154 bitfile->bytepos = 0; in open_bitfile()
161 bitfile->bytepos = BUFFER_SIZE - 1; in open_bitfile()
194 if (!bitfile->bytepos--) /* no more bytes left in the buffer? */ in get_bit()
204 bitfile->bytepos = bytes; in get_bit()
254 if (!bitfile->bytepos--) /* no more bytes left ? */ in put_bit()
263 bitfile->bytepos = BUFFER_SIZE - 1; in put_bit()
308 BUFFER_SIZE - bitfile->bytepos, bitfile->file); in close_bitfile()
309 if (bytes != BUFFER_SIZE - bitfile->bytepos) in close_bitfile()
312 BUFFER_SIZE - bitfile->bytepos, bytes); in close_bitfile()
/dports/security/py-pyvex/pyvex-9.0.5405/pyvex/lifting/util/
H A Dlifter_helper.py66 bytepos = self.bitstrm.bytepos
74 addr += self.bitstrm.bytepos - bytepos
75 bytepos = self.bitstrm.bytepos
80 … l.exception("Error decoding block at offset {:#x} (address {:#x}):".format(bytepos, addr))
/dports/emulators/mess/mame-mame0226/src/devices/imagedev/
H A Dmfmhd.cpp809 bytepos = cell / 16; in find_position()
812 if (bytepos >= m_trackimage_size) in find_position()
817 bytepos = cell / 16; in find_position()
820 if (bytepos < 0) in find_position()
823 bytepos = 0; in find_position()
849 int bytepos = 0; in read() local
858 cdata = ((track[bytepos] << bitpos) & 0x8000) >> 15; in read()
865 cdata = track[bytepos]; in read()
885 int bytepos = 0; in write() local
897 else track[bytepos] &= ~(0x8000 >> bitpos); in write()
[all …]
/dports/emulators/mame/mame-mame0226/src/devices/imagedev/
H A Dmfmhd.cpp809 bytepos = cell / 16; in find_position()
812 if (bytepos >= m_trackimage_size) in find_position()
817 bytepos = cell / 16; in find_position()
820 if (bytepos < 0) in find_position()
823 bytepos = 0; in find_position()
849 int bytepos = 0; in read() local
858 cdata = ((track[bytepos] << bitpos) & 0x8000) >> 15; in read()
865 cdata = track[bytepos]; in read()
885 int bytepos = 0; in write() local
897 else track[bytepos] &= ~(0x8000 >> bitpos); in write()
[all …]
/dports/emulators/mess/mame-mame0226/src/lib/formats/
H A Dmfm_hd.cpp442 int bytepos = 0; in save() local
507 while (bytepos < tracksize) in save()
512 byte = mfm_decode(trackimage[bytepos]); in save()
514 else byte = (trackimage[bytepos] & 0xff); in save()
538 if (((m_param.encoding==MFM_BITS || m_param.encoding==MFM_BYTE) && trackimage[bytepos]==0x4489) in save()
539 || (m_param.encoding==SEPARATED && trackimage[bytepos]==0x0aa1) in save()
540 || (m_param.encoding==SEPARATED_SIMPLE && trackimage[bytepos]==0xffa1)) in save()
547 bytepos++; in save()
561 gap1 = bytepos-1; in save()
667 bytepos++; in save()
[all …]
/dports/emulators/mame/mame-mame0226/src/lib/formats/
H A Dmfm_hd.cpp442 int bytepos = 0; in save() local
507 while (bytepos < tracksize) in save()
512 byte = mfm_decode(trackimage[bytepos]); in save()
514 else byte = (trackimage[bytepos] & 0xff); in save()
538 if (((m_param.encoding==MFM_BITS || m_param.encoding==MFM_BYTE) && trackimage[bytepos]==0x4489) in save()
539 || (m_param.encoding==SEPARATED && trackimage[bytepos]==0x0aa1) in save()
540 || (m_param.encoding==SEPARATED_SIMPLE && trackimage[bytepos]==0xffa1)) in save()
547 bytepos++; in save()
561 gap1 = bytepos-1; in save()
667 bytepos++; in save()
[all …]
/dports/lang/parrot/parrot-8.1.0/src/string/encoding/
H A Dutf16.c482 const utf16_t *ptr = (utf16_t *)(str->strstart + i->bytepos); in utf16_iter_get()
510 const utf16_t *ptr = (utf16_t *)(str->strstart + i->bytepos); in utf16_iter_skip()
521 i->bytepos = (const char *)ptr - (const char *)str->strstart; in utf16_iter_skip()
523 PARROT_ASSERT(i->bytepos <= str->bufused); in utf16_iter_skip()
543 const utf16_t *ptr = (utf16_t *)(str->strstart + i->bytepos); in utf16_iter_get_and_advance()
549 i->bytepos += 4; in utf16_iter_get_and_advance()
551 i->bytepos += 2; in utf16_iter_get_and_advance()
553 PARROT_ASSERT(i->bytepos <= str->bufused); in utf16_iter_get_and_advance()
575 utf16_t * const ptr = (utf16_t *)(str->strstart + i->bytepos); in utf16_iter_set_and_advance()
579 i->bytepos += (char *)end - (char *)ptr; in utf16_iter_set_and_advance()
[all …]
/dports/irc/ngircd/ngircd-26.1/src/ngircd/
H A Darray.c304 size_t bytepos; in array_moveleft() local
309 if (!safemult_sizet(membersize, pos, &bytepos)) { in array_moveleft()
314 if (!bytepos) in array_moveleft()
320 a->used, bytepos); in array_moveleft()
322 if (a->used <= bytepos) { in array_moveleft()
327 a->used -= bytepos; in array_moveleft()
328 memmove(a->mem, a->mem + bytepos, a->used); in array_moveleft()

12345678910>>...26