Re: Problem with using char* to return string by reference
- From: Tamas Demjen <tdemjen@xxxxxxxxx>
- Date: Mon, 16 Jun 2008 17:19:55 -0700
Hendrik Schober wrote:
There is, however, one problem with all this:
'std::basic_string<>' was not designed for multi-byte
encodings. Therefor, when you put multi-byte encoded
strings into it (and if we're talking Unicode, except
for UTF-32 all encodings are multi-byte, since Unicode
specifies >2^16 characters), you're on your own.
Indeed, the situation is very complicated:
http://d-type.com/layout/index.htm
Consider bi-directional caret and selection handling in Arabic and Hebrew, ligature reordering substitutions in Hindi/Telugu, etc.
Tom
.
- Follow-Ups:
- Re: Problem with using char* to return string by reference
- From: Hendrik Schober
- Re: Problem with using char* to return string by reference
- References:
- Problem with using char* to return string by reference
- From: swtbase
- Re: Problem with using char* to return string by reference
- From: Giovanni Dicanio
- Re: Problem with using char* to return string by reference
- From: Norbert Unterberg
- Re: Problem with using char* to return string by reference
- From: Doug Harrison [MVP]
- Re: Problem with using char* to return string by reference
- From: Alf P. Steinbach
- Re: Problem with using char* to return string by reference
- From: Ben Voigt [C++ MVP]
- Re: Problem with using char* to return string by reference
- From: swtbase
- Re: Problem with using char* to return string by reference
- From: Hendrik Schober
- Re: Problem with using char* to return string by reference
- From: Giovanni Dicanio
- Re: Problem with using char* to return string by reference
- From: Hendrik Schober
- Re: Problem with using char* to return string by reference
- From: Giovanni Dicanio
- Re: Problem with using char* to return string by reference
- From: Hendrik Schober
- Re: Problem with using char* to return string by reference
- From: swtbase
- Re: Problem with using char* to return string by reference
- From: Hendrik Schober
- Re: Problem with using char* to return string by reference
- From: David Wilkinson
- Re: Problem with using char* to return string by reference
- From: Hendrik Schober
- Re: Problem with using char* to return string by reference
- From: David Wilkinson
- Re: Problem with using char* to return string by reference
- From: Hendrik Schober
- Re: Problem with using char* to return string by reference
- From: swtbase
- Re: Problem with using char* to return string by reference
- From: Hendrik Schober
- Problem with using char* to return string by reference
- Prev by Date: SetWindowsHookEx - CBTProc
- Next by Date: Re: SetWindowsHookEx - CBTProc
- Previous by thread: Re: Problem with using char* to return string by reference
- Next by thread: Re: Problem with using char* to return string by reference
- Index(es):
Relevant Pages
|