Hi Rich
Thanks a lot for your response.
I am going to test it. Thanks.

Best Regards
Ali

On 4/17/07, Rich Felker <[EMAIL PROTECTED]> wrote:

On Tue, Apr 17, 2007 at 10:46:44AM +0430, Ali Majdzadeh wrote:
> Hello Rich
> Thanks for your response.
> About your question, I should say "yes", I need some text processing
> capabilities.

OK.

> Do you mean that I should use common stdio functions? (like, fgets(),
...)

Yes, they'll work fine.

> And what about UTF-8 strings? Do you mean that these strings should be
> stored in common char*

Yes.

> variables? So, what about the character size defference (Unicode and
ASCII)?
> And also, string functions? (like, strtok())

strtok, strsep, strchr, strrchr, strpbrk, strspn, and strcspn will all
work just fine on UTF-8 strings as long as the separator characters
you're looking for are ASCII.

strstr always works on UTF-8, and can be used in place of strchr to
search for single non-ascii characters or longer substrings.

Rich

--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/


Reply via email to