renamed moo_count_bcstrl() to moo_count_bcstr_with_limit()

renamed moo_count_ucstrl() to moo_count_ucstr_with_limit()
This commit is contained in:
hyunghwan.chung 2019-11-25 07:03:13 +00:00
parent beef17caf6
commit c5f6a70e2d
2 changed files with 4 additions and 4 deletions

View File

@ -511,7 +511,7 @@ MOO_EXPORT moo_oow_t moo_count_ucstr (
const moo_uch_t* str
);
MOO_EXPORT moo_oow_t moo_count_ucstrl (
MOO_EXPORT moo_oow_t moo_count_ucstr_with_limit (
const moo_uch_t* str,
moo_oow_t maxlen
);
@ -520,7 +520,7 @@ MOO_EXPORT moo_oow_t moo_count_bcstr (
const moo_bch_t* str
);
MOO_EXPORT moo_oow_t moo_count_bcstrl (
MOO_EXPORT moo_oow_t moo_count_bcstr_with_limit (
const moo_bch_t* str,
moo_oow_t maxlen
);

View File

@ -315,7 +315,7 @@ moo_oow_t moo_count_ucstr (const moo_uch_t* str)
return ptr - str;
}
moo_oow_t moo_count_ucstrl (const moo_uch_t* str, moo_oow_t maxlen)
moo_oow_t moo_count_ucstr_with_limit (const moo_uch_t* str, moo_oow_t maxlen)
{
moo_oow_t i;
for (i = 0; i < maxlen; i++)
@ -332,7 +332,7 @@ moo_oow_t moo_count_bcstr (const moo_bch_t* str)
return ptr - str;
}
moo_oow_t moo_count_bcstrl (const moo_bch_t* str, moo_oow_t maxlen)
moo_oow_t moo_count_bcstr_with_limit (const moo_bch_t* str, moo_oow_t maxlen)
{
moo_oow_t i;
for (i = 0; i < maxlen; i++)