set const on the first parameter to hawk_trim_uchars() and hawk_trim_bchars()
This commit is contained in:
parent
23715c35ef
commit
02aa80e9c2
@ -694,15 +694,15 @@ HAWK_EXPORT hawk_oow_t hawk_rotate_bchars (
|
||||
);
|
||||
|
||||
HAWK_EXPORT hawk_uch_t* hawk_trim_uchars (
|
||||
hawk_uch_t* str,
|
||||
hawk_oow_t* len,
|
||||
int flags
|
||||
const hawk_uch_t* str,
|
||||
hawk_oow_t* len,
|
||||
int flags
|
||||
);
|
||||
|
||||
HAWK_EXPORT hawk_bch_t* hawk_trim_bchars (
|
||||
hawk_bch_t* str,
|
||||
hawk_oow_t* len,
|
||||
int flags
|
||||
const hawk_bch_t* str,
|
||||
hawk_oow_t* len,
|
||||
int flags
|
||||
);
|
||||
|
||||
HAWK_EXPORT int hawk_split_ucstr (
|
||||
|
@ -942,9 +942,9 @@ hawk_oow_t hawk_rotate_bchars (hawk_bch_t* str, hawk_oow_t len, int dir, hawk_oo
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
hawk_uch_t* hawk_trim_uchars (hawk_uch_t* str, hawk_oow_t* len, int flags)
|
||||
hawk_uch_t* hawk_trim_uchars (const hawk_uch_t* str, hawk_oow_t* len, int flags)
|
||||
{
|
||||
hawk_uch_t* p = str, * end = str + *len;
|
||||
const hawk_uch_t* p = str, * end = str + *len;
|
||||
|
||||
if (p < end)
|
||||
{
|
||||
@ -981,12 +981,12 @@ hawk_uch_t* hawk_trim_uchars (hawk_uch_t* str, hawk_oow_t* len, int flags)
|
||||
}
|
||||
}
|
||||
|
||||
return str;
|
||||
return (hawk_uch_t*)str;
|
||||
}
|
||||
|
||||
hawk_bch_t* hawk_trim_bchars (hawk_bch_t* str, hawk_oow_t* len, int flags)
|
||||
hawk_bch_t* hawk_trim_bchars (const hawk_bch_t* str, hawk_oow_t* len, int flags)
|
||||
{
|
||||
hawk_bch_t* p = str, * end = str + *len;
|
||||
const hawk_bch_t* p = str, * end = str + *len;
|
||||
|
||||
if (p < end)
|
||||
{
|
||||
@ -1023,7 +1023,7 @@ hawk_bch_t* hawk_trim_bchars (hawk_bch_t* str, hawk_oow_t* len, int flags)
|
||||
}
|
||||
}
|
||||
|
||||
return str;
|
||||
return (hawk_bch_t*)str;
|
||||
}
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user