0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.0038

This commit is contained in:
Bram Moolenaar
2005-01-14 21:48:43 +00:00
parent fd371684fa
commit d8b0273231
11 changed files with 247 additions and 58 deletions

View File

@@ -2407,6 +2407,21 @@ utf_head_off(base, p)
return (int)(p - q);
}
/*
* Copy a character from "*fp" to "*tp" and advance the pointers.
*/
void
mb_copy_char(fp, tp)
char_u **fp;
char_u **tp;
{
int l = (*mb_ptr2len_check)(*fp);
mch_memmove(*tp, *fp, (size_t)l);
*tp += l;
*fp += l;
}
/*
* Return the offset from "p" to the first byte of a character. When "p" is
* at the start of a character 0 is returned, otherwise the offset to the next