Re: Need help on string manipulation
- From: "Richard G. Riley" <rgrdev@xxxxxxxxx>
- Date: Mon, 27 Mar 2006 14:43:32 +0200
On 2006-03-27, WaterWalk <toolmaster@xxxxxxx> wrote:
Hello, I'm currently learning string manipulation. I'm curious about
what is the favored way for string manipulation in C, expecially when
strings contain non-ASCII characters. For example, if substrings need
be replaced, or one character needs be changed, what shall I do? Is it
better to convert strings to UCS-32 before manipulation?
But on Windows, wchar_t is 16 bits which isn't enough for characters
which can't be simply encoded using 16 bits.
On Linux, I hear wchar_t is 32 bit. Maybe on Linux, strings can be
simply converted to wchar_t and then handle them without worrying? I'm
not sure.
What is a "good" way to handle all this mess? Are there any good
examples? I'll be very thankful for your help.
I was looking up some similar stuff recently : here is an ok start -
http://www.chemie.fu-berlin.de/chemnet/use/info/libc/libc_18.html
This concentrates more on "big chars" as I call them : characters
encoded in more that that standard char.
At the end of the day, do you really need dbcs or mbcs support?
good luck. hope the link helps.
--
Debuggers : you know it makes sense.
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Debug.html#tth_sEc
.
- References:
- Need help on string manipulation
- From: WaterWalk
- Need help on string manipulation
- Prev by Date: need to convert a char to an hexadecmial value
- Next by Date: checking constant conditions on compile time
- Previous by thread: Need help on string manipulation
- Next by thread: Re: Need help on string manipulation
- Index(es):
Relevant Pages
|