Home
last modified time | relevance | path

Searched refs:mbclen (Results 1 – 3 of 3) sorted by relevance

/ndk/sources/host-tools/sed-4.2.1/lib/
Dregex_internal.c215 size_t mbclen; in build_wcs_buffer() local
241 mbclen = __mbrtowc (&wc, p, remain_len, &pstr->cur_state); in build_wcs_buffer()
242 if (BE (mbclen == (size_t) -2, 0)) in build_wcs_buffer()
248 else if (BE (mbclen == (size_t) -1 || mbclen == 0, 0)) in build_wcs_buffer()
251 mbclen = 1; in build_wcs_buffer()
261 for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;) in build_wcs_buffer()
277 size_t mbclen; in build_wcs_upper_buffer() local
311 mbclen = __mbrtowc (&wc, in build_wcs_upper_buffer()
314 if (BE (mbclen < (size_t) -2, 1)) in build_wcs_upper_buffer()
323 if (BE (mbclen == mbcdlen, 1)) in build_wcs_upper_buffer()
[all …]
/ndk/sources/host-tools/sed-4.2.1/sed/
Dcompile.c1312 size_t mbclen; local
1319 mbclen = MBRLEN (src_buf + i, len - i, &cur_stat);
1322 if (mbclen == (size_t) -1 || mbclen == (size_t) -2
1323 || mbclen == 0)
1324 mbclen = 1;
1325 src_lens[j++] = mbclen;
1326 i += mbclen;
1351 mbclen = MBRLEN (dest_buf + idx, dest_len - idx, &cur_stat);
1354 if (mbclen == (size_t) -1 || mbclen == (size_t) -2
1355 || mbclen == 0)
[all …]
Dexecute.c1677 int mbclen, i; local
1678 mbclen = MBRLEN (line.active + idx, line.length - idx,
1683 if (mbclen == (size_t) -1 || mbclen == (size_t) -2
1684 || mbclen == 0)
1685 mbclen = 1;
1691 if (strncmp(line.active + idx, trans[2*i], mbclen) == 0)
1696 if (mbclen < trans_len)
1699 new_len = line.length + 1 + trans_len - mbclen;
1708 else if (mbclen > trans_len)
1719 move_from = line.active + idx + mbclen;
[all …]