3

Need help with simple example using C and ICU bidi API. I am newbie in C and official documentation from ICU is hard for me to understand. I do understand that we need some kind of structure (UBiDi *pBiDi) with needed paragraph of text created before any bidi algorithm method execution (probably ubidi_setPara()).

So the question is .. could someone show me how to execute a simple example with passing string "foo ARABIC bar" to method and getting the result like "foo CIBARA bar" or something similar. Thanks in advance.

Oink
  • 121
  • 1
  • 9
  • You are working with unicode strings? – Jiminion Aug 06 '13 at 14:56
  • Yes. I want simple example with code that returns properly reversed unicode or string back. – Oink Aug 06 '13 at 15:10
  • http://stackoverflow.com/questions/198199/how-do-you-reverse-a-string-in-place-in-c-or-c – Jiminion Aug 06 '13 at 15:17
  • It should be done with ICU C api for RTL unicode text (like arabic). Here is the link to library [API](http://www.icu-project.org/apiref/icu4c/ubidi_8h.html) – Oink Aug 06 '13 at 15:30

0 Answers0