flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Andy 03 Dec 2012, 12:40
I tried to search on forum but without any succes, an algorithm to reverse some wide chars. Anyone can point me in the right direction?
|
|||
![]() |
|
baldr 03 Dec 2012, 17:23
Andy,
"Reverse" in what sense? Convert to single- or multi-byte encoding? WideCharToMultiByte(), you may want to pre-condition wide string with FoldString() before conversion (ligatures, accented character composites, digits). Convert to UTF-8? Algorithm is quite straightforward, except for surrogate pairs. WideCharToMultiByte() can be used too. Maybe just reverse wide chars' order in string? wcsrev() will do that. You can write your implementation also, just don't forget surrogate pairs. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.