mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
utf8_to_unicode: Let the end parameter point to const.
This commit is contained in:
parent
bb340aae06
commit
2ac31b6144
@ -632,7 +632,7 @@ unicode_fold_label_case(unicode_val_T c)
|
||||
}
|
||||
|
||||
inline unicode_val_T
|
||||
utf8_to_unicode(unsigned char **string, unsigned char *end)
|
||||
utf8_to_unicode(unsigned char **string, const unsigned char *end)
|
||||
{
|
||||
unsigned char *str = *string;
|
||||
unicode_val_T u;
|
||||
|
@ -140,7 +140,7 @@ unsigned char *utf8_step_backward(unsigned char *, unsigned char *,
|
||||
inline int unicode_to_cell(unicode_val_T);
|
||||
unicode_val_T unicode_fold_label_case(unicode_val_T);
|
||||
inline int strlen_utf8(unsigned char **);
|
||||
inline unicode_val_T utf8_to_unicode(unsigned char **, unsigned char *);
|
||||
inline unicode_val_T utf8_to_unicode(unsigned char **, const unsigned char *);
|
||||
unicode_val_T cp_to_unicode(int, unsigned char **, unsigned char *);
|
||||
#endif /* CONFIG_UTF8 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user