📄 ucpgba.man
字号:
.\".\" $Id: ucpgba.man,v 1.1 1999/11/19 16:08:34 mleisher Exp $.\".TH ucpgba 3 "19 November 1999".SH NAME ucpgba \- functions for doing bidirectional reordering of Unicode text andlogical and visual cursor motion.SH SYNOPSIS.nf#include <ucdata.h>#include <ucpgba.h>ucstring_t *ucstring_create(unsigned long *source, unsigned long start, unsigned long end, int default_direction, int cursor_motion).spvoid ucstring_free(ucstring_t *string).spint ucstring_set_cursor_motion(ucstring_t *string, int cursor_motion).spint ucstring_cursor_right(ucstring_t *string, int count).spint ucstring_cursor_left(ucstring_t *string, int count).spvoid ucstring_cursor_info(ucstring_t *string, int *direction, unsigned long *position).SH DESCRIPTION.TP 4.BR MacrosUCPGBA_LTR.brUCPGBA_RTL.brUCPGBA_CURSOR_VISUAL.brUCPGBA_CURSOR_LOGICAL.TP 4.BR ucstring_create()This function will create a reordered string by using the implicitdirectionality of the characters in the specified substring..spThe `default_direction' parameter should be one of UCPGBA_LTR or UCPGBA_RTLand is used only in cases where a string contains no characters with strongdirectionality..spThe `cursor_motion' parameter should be one of UCPGBA_CURSOR_VISUAL orUCPGBA_CURSOR_LOGICAL, and is used to specify the initial cursor motionbehavior. This behavior can be switched at any time usingustring_set_cursor_motion()..TP 4.BR ucstring_free()This function will deallocate the memory used by the string, incuding thestring itself..TP 4.BR ucstring_cursor_info()This function will return the text position of the internal cursor and thedirectionality of the text at that position. The position returned is theoriginal text position of the character..TP 4.BR ucstring_set_cursor_motion()This function will change the cursor motion type and return the previouscursor motion type..TP 4.BR ucstring_cursor_right()This function will move the internal cursor to the right according to thetype of cursor motion set for the string..spIf no cursor motion is performed, it returns 0. Otherwise it will return a 1..TP 4.BR ucstring_cursor_left()This function will move the internal cursor to the left according to thetype of cursor motion set for the string..spIf no cursor motion is performed, it returns 0. Otherwise it will return a 1..SH "SEE ALSO"ucdata(3).SH ACKNOWLEDGMENTSThese are people who have helped with patches or alerted me about problems..SH AUTHORMark Leisher.brComputing Research Lab.brNew Mexico State University.brEmail: mleisher@crl.nmsu.edu
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -