mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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
|
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;
|
unsigned char *str = *string;
|
||||||
unicode_val_T u;
|
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);
|
inline int unicode_to_cell(unicode_val_T);
|
||||||
unicode_val_T unicode_fold_label_case(unicode_val_T);
|
unicode_val_T unicode_fold_label_case(unicode_val_T);
|
||||||
inline int strlen_utf8(unsigned char **);
|
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 *);
|
unicode_val_T cp_to_unicode(int, unsigned char **, unsigned char *);
|
||||||
#endif /* CONFIG_UTF8 */
|
#endif /* CONFIG_UTF8 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user