DBCS/MBCS aware string handling functions

DBCS/MBCS aware string handling functions

Post by Adrian Ch » Thu, 13 Jul 2000 04:00:00

Does anybody out there know what the DBCS equivalents of strchr, etc. are
for Linux?

Win32 for example has _mbschr, and other DBCS equivalents of string

I do not want wide character (Unicode) functions but rather DBCS.  If there
are none available then I at least need the equivalent of the Win32
IsLeadByte which allows you to check whether a character is a leadbyte of a
multi-byte sequence.

It would also be good to know what the current codepage or character
encoding scheme is and whether that it requires more than one byte to
represent a character.



1. String handling in sh

Change your awk command to look something like this:
    awk '$1 ~ /dsk50|dsk53|dsk29/{print $1}'

    Cal Dunigan                       My opinions *ARE* the company's

    Consulting, Modeling, Training

2. Is there a Kanji/Japanese ver of LINUX?

3. in 'getopt()', how to handle multiple options in the 'optarg' string?

4. Unix - Frequently Asked Questions (Contents) [Frequent posting]

5. sparse tool handling of escaped characters in strings

6. Simple sendmail or DNS problem.

7. Q: Can dip handle complex strings ?

8. Question about TCP/IP and OutOfBand bytes (MSG_OOB)

9. Q: ksh - how to handle strings with spaces

10. String handling on VAC compiler (version 5) on AIX

11. String handling

12. C string handling question

13. DBCS on Solaris 2.6