2 .\" $Id: ucpgba.man,v 1.1.1.1 2000/01/25 21:38:34 lukem Exp $
4 .TH ucpgba 3 "19 November 1999"
6 ucpgba \- functions for doing bidirectional reordering of Unicode text and
7 logical and visual cursor motion
14 ucstring_t *ucstring_create(unsigned long *source, unsigned long start,
15 unsigned long end, int default_direction,
18 void ucstring_free(ucstring_t *string)
20 int ucstring_set_cursor_motion(ucstring_t *string, int cursor_motion)
22 int ucstring_cursor_right(ucstring_t *string, int count)
24 int ucstring_cursor_left(ucstring_t *string, int count)
26 void ucstring_cursor_info(ucstring_t *string, int *direction,
27 unsigned long *position)
42 This function will create a reordered string by using the implicit
43 directionality of the characters in the specified substring.
45 The `default_direction' parameter should be one of UCPGBA_LTR or UCPGBA_RTL
46 and is used only in cases where a string contains no characters with strong
49 The `cursor_motion' parameter should be one of UCPGBA_CURSOR_VISUAL or
50 UCPGBA_CURSOR_LOGICAL, and is used to specify the initial cursor motion
51 behavior. This behavior can be switched at any time using
52 ustring_set_cursor_motion().
56 This function will deallocate the memory used by the string, incuding the
60 .BR ucstring_cursor_info()
61 This function will return the text position of the internal cursor and the
62 directionality of the text at that position. The position returned is the
63 original text position of the character.
66 .BR ucstring_set_cursor_motion()
67 This function will change the cursor motion type and return the previous
71 .BR ucstring_cursor_right()
72 This function will move the internal cursor to the right according to the
73 type of cursor motion set for the string.
75 If no cursor motion is performed, it returns 0. Otherwise it will return a 1.
78 .BR ucstring_cursor_left()
79 This function will move the internal cursor to the left according to the
80 type of cursor motion set for the string.
82 If no cursor motion is performed, it returns 0. Otherwise it will return a 1.
88 These are people who have helped with patches or alerted me about problems.
93 Computing Research Lab
95 New Mexico State University
97 Email: mleisher@crl.nmsu.edu