ik wrote:
On Mon, Nov 26, 2012 at 10:29 AM, Vincent Snijders
<vincent.snijd...@gmail.com> wrote:
2012/11/26 ik <ido...@gmail.com>
Hello,
Is there a way to convert endian of a string (from little to big and
vice versa) ?
What kind of string you want to convert? For example a PChar is trivial.
ShortString, AnsiString, UTF8String, WideString and UnicodeString :)
If I understand things correctly: ShortString, AnsiString and UTF8String
don't convert since they're simply byte sequences. As a particular case,
it's unwise to try to map multiple bytes from a UTFxString into a cardinal.
Converting WideString and UnicodeString is a fair question. Are you
handling text files with multibyte encoding?
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal