Mercurial > vim
comparison src/mbyte.c @ 99:04f2e519ab18
updated for version 7.0038
author | vimboss |
---|---|
date | Fri, 14 Jan 2005 21:48:43 +0000 |
parents | c75153d791d0 |
children | 2983cde45542 |
comparison
equal
deleted
inserted
replaced
98:98435a8ddb09 | 99:04f2e519ab18 |
---|---|
2406 | 2406 |
2407 return (int)(p - q); | 2407 return (int)(p - q); |
2408 } | 2408 } |
2409 | 2409 |
2410 /* | 2410 /* |
2411 * Copy a character from "*fp" to "*tp" and advance the pointers. | |
2412 */ | |
2413 void | |
2414 mb_copy_char(fp, tp) | |
2415 char_u **fp; | |
2416 char_u **tp; | |
2417 { | |
2418 int l = (*mb_ptr2len_check)(*fp); | |
2419 | |
2420 mch_memmove(*tp, *fp, (size_t)l); | |
2421 *tp += l; | |
2422 *fp += l; | |
2423 } | |
2424 | |
2425 /* | |
2411 * Return the offset from "p" to the first byte of a character. When "p" is | 2426 * Return the offset from "p" to the first byte of a character. When "p" is |
2412 * at the start of a character 0 is returned, otherwise the offset to the next | 2427 * at the start of a character 0 is returned, otherwise the offset to the next |
2413 * character. Can start anywhere in a stream of bytes. | 2428 * character. Can start anywhere in a stream of bytes. |
2414 */ | 2429 */ |
2415 int | 2430 int |