added some more string functions

This commit is contained in:
hyung-hwan 2022-06-12 14:47:18 +00:00
parent b740ecbf07
commit 73d60963c8
2 changed files with 92 additions and 8 deletions

View File

@ -543,25 +543,25 @@ HIO_EXPORT const hio_uch_t* hio_find_ucstr_word_in_ucstr (
int ignorecase
);
HIO_EXPORT hio_uch_t* hio_find_uchar_in_chars (
HIO_EXPORT hio_uch_t* hio_find_uchar_in_uchars (
const hio_uch_t* ptr,
hio_oow_t len,
hio_uch_t c
);
HIO_EXPORT hio_bch_t* hio_find_bchar_in_chars (
HIO_EXPORT hio_bch_t* hio_find_bchar_in_bchars (
const hio_bch_t* ptr,
hio_oow_t len,
hio_bch_t c
);
HIO_EXPORT hio_uch_t* hio_rfind_uchar_in_chars (
HIO_EXPORT hio_uch_t* hio_rfind_uchar_in_uchars (
const hio_uch_t* ptr,
hio_oow_t len,
hio_uch_t c
);
HIO_EXPORT hio_bch_t* hio_rfind_bchar_in_chars (
HIO_EXPORT hio_bch_t* hio_rfind_bchar_in_bchars (
const hio_bch_t* ptr,
hio_oow_t len,
hio_bch_t c
@ -577,6 +577,48 @@ HIO_EXPORT hio_bch_t* hio_find_bchar_in_bcstr (
hio_bch_t c
);
HIO_EXPORT hio_uch_t* hio_rfind_uchar_in_ucstr (
const hio_uch_t* ptr,
hio_uch_t c
);
HIO_EXPORT hio_bch_t* hio_rfind_bchar_in_bcstr (
const hio_bch_t* ptr,
hio_bch_t c
);
HIO_EXPORT hio_uch_t* hio_find_uchars_in_uchars (
const hio_uch_t* str,
hio_oow_t strsz,
const hio_uch_t* sub,
hio_oow_t subsz,
int inorecase
);
HIO_EXPORT hio_bch_t* hio_find_bchars_in_bchars (
const hio_bch_t* str,
hio_oow_t strsz,
const hio_bch_t* sub,
hio_oow_t subsz,
int inorecase
);
HIO_EXPORT hio_uch_t* hio_rfind_uchars_in_uchars (
const hio_uch_t* str,
hio_oow_t strsz,
const hio_uch_t* sub,
hio_oow_t subsz,
int inorecase
);
HIO_EXPORT hio_bch_t* hio_rfind_bchars_in_bchars (
const hio_bch_t* str,
hio_oow_t strsz,
const hio_bch_t* sub,
hio_oow_t subsz,
int inorecase
);
/* ------------------------------------ */
HIO_EXPORT hio_oow_t hio_rotate_uchars (

View File

@ -544,25 +544,25 @@ HIO_EXPORT const hio_uch_t* hio_find_ucstr_word_in_ucstr (
int ignorecase
);
HIO_EXPORT hio_uch_t* hio_find_uchar_in_chars (
HIO_EXPORT hio_uch_t* hio_find_uchar_in_uchars (
const hio_uch_t* ptr,
hio_oow_t len,
hio_uch_t c
);
HIO_EXPORT hio_bch_t* hio_find_bchar_in_chars (
HIO_EXPORT hio_bch_t* hio_find_bchar_in_bchars (
const hio_bch_t* ptr,
hio_oow_t len,
hio_bch_t c
);
HIO_EXPORT hio_uch_t* hio_rfind_uchar_in_chars (
HIO_EXPORT hio_uch_t* hio_rfind_uchar_in_uchars (
const hio_uch_t* ptr,
hio_oow_t len,
hio_uch_t c
);
HIO_EXPORT hio_bch_t* hio_rfind_bchar_in_chars (
HIO_EXPORT hio_bch_t* hio_rfind_bchar_in_bchars (
const hio_bch_t* ptr,
hio_oow_t len,
hio_bch_t c
@ -578,6 +578,48 @@ HIO_EXPORT hio_bch_t* hio_find_bchar_in_bcstr (
hio_bch_t c
);
HIO_EXPORT hio_uch_t* hio_rfind_uchar_in_ucstr (
const hio_uch_t* ptr,
hio_uch_t c
);
HIO_EXPORT hio_bch_t* hio_rfind_bchar_in_bcstr (
const hio_bch_t* ptr,
hio_bch_t c
);
HIO_EXPORT hio_uch_t* hio_find_uchars_in_uchars (
const hio_uch_t* str,
hio_oow_t strsz,
const hio_uch_t* sub,
hio_oow_t subsz,
int inorecase
);
HIO_EXPORT hio_bch_t* hio_find_bchars_in_bchars (
const hio_bch_t* str,
hio_oow_t strsz,
const hio_bch_t* sub,
hio_oow_t subsz,
int inorecase
);
HIO_EXPORT hio_uch_t* hio_rfind_uchars_in_uchars (
const hio_uch_t* str,
hio_oow_t strsz,
const hio_uch_t* sub,
hio_oow_t subsz,
int inorecase
);
HIO_EXPORT hio_bch_t* hio_rfind_bchars_in_bchars (
const hio_bch_t* str,
hio_oow_t strsz,
const hio_bch_t* sub,
hio_oow_t subsz,
int inorecase
);
/* ------------------------------------ */
HIO_EXPORT hio_oow_t hio_rotate_uchars (