Replace the surrounding text of an IMContext. The string reffered as "the surrounding text" here is the string gotten by get_surrounding_text () previously.
Parameters
imcontext
The IMContext.
cursor_position
The cursor position (in wchar) in the new surrounding string.