Convert unichar to HID key code on iOS

I need to convert user input to HID key codes, and while for English it's pretty easily done, for other languages not so much. On Mac there is UCKeyTranslate function, but on iOS I couldn't find anything like this. Is there a good way to achieve this?

Convert unichar to HID key code on iOS
 
 
Q