home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XSupportsLocal(3X11) XLIB FUNCTIONS XSupportsLocal(3X11)
-
-
- NNAAMMEE
- XSupportsLocale, XSetLocaleModifiers - determine locale
- support and configure locale modifiers
-
- SSYYNNTTAAXX
- Bool XSupportsLocale()
-
- char *XSetLocaleModifiers(_m_o_d_i_f_i_e_r___l_i_s_t)
- char *_m_o_d_i_f_i_e_r___l_i_s_t;
-
- AARRGGUUMMEENNTTSS
- _m_o_d_i_f_i_e_r___l_i_s_t
- Specifies the modifiers.
-
- DDEESSCCRRIIPPTTIIOONN
- The _X_S_u_p_p_o_r_t_s_L_o_c_a_l_e function returns _T_r_u_e if Xlib func-
- tions are capable of operating under the current locale.
- If it returns _F_a_l_s_e, Xlib locale-dependent functions for
- which the _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d return status is defined
- will return _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d. Other Xlib locale-
- dependent routines will operate in the ``C'' locale.
-
- The _X_S_e_t_L_o_c_a_l_e_M_o_d_i_f_i_e_r_s function sets the X modifiers for
- the current locale setting. The modifier_list argument is
- a null-terminated string of the form
- ``{@_c_a_t_e_g_o_r_y=_v_a_l_u_e}'', that is, having zero or more con-
- catenated ``@_c_a_t_e_g_o_r_y=_v_a_l_u_e'' entries, where _c_a_t_e_g_o_r_y is a
- category name and _v_a_l_u_e is the (possibly empty) setting
- for that category. The values are encoded in the current
- locale. Category names are restricted to the POSIX
- Portable Filename Character Set.
-
- The local host X locale modifiers announcer (on POSIX-
- compliant systems, the XMODIFIERS environment variable) is
- appended to the modifier_list to provide default values on
- the local host. If a given category appears more than
- once in the list, the first setting in the list is used.
- If a given category is not included in the full modifier
- list, the category is set to an implementation-dependent
- default for the current locale. An empty value for a cat-
- egory explicitly specifies the implementation-dependent
- default.
-
- If the function is successful, it returns a pointer to a
- string. The contents of the string are such that a subse-
- quent call with that string (in the same locale) will
- restore the modifiers to the same settings. If modi-
- fier_list is a NULL pointer, _X_S_e_t_L_o_c_a_l_e_M_o_d_i_f_i_e_r_s also
- returns a pointer to such a string, and the current locale
- modifiers are not changed.
-
- If invalid values are given for one or more modifier cate-
- gories supported by the locale, a NULL pointer is
- returned, and none of the current modifiers are changed.
-
-
-
- X Version 11 Release 6.1 1
-
-
-
-
-
- XSupportsLocal(3X11) XLIB FUNCTIONS XSupportsLocal(3X11)
-
-
- At program startup, the modifiers that are in effect are
- unspecified until the first successful call to set them.
- Whenever the locale is changed, the modifiers that are in
- effect become unspecified until the next successful call
- to set them. Clients should always call _X_S_e_t_L_o_c_a_l_e_M_o_d_i_-
- _f_i_e_r_s with a non-NULL modifier_list after setting the
- locale before they call any locale-dependent Xlib routine.
-
- The only standard modifier category currently defined is
- ``im'', which identifies the desired input method. The
- values for input method are not standardized. A single
- locale may use multiple input methods, switching input
- method under user control. The modifier may specify the
- initial input method in effect or an ordered list of input
- methods. Multiple input methods may be specified in a
- single im value string in an implementation-dependent man-
- ner.
-
- The returned modifiers string is owned by Xlib and should
- not be modified or freed by the client. It may be freed
- by Xlib after the current locale or modifiers are changed.
- Until freed, it will not be modified by Xlib.
-
- SSEEEE AALLSSOO
- _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- X Version 11 Release 6.1 2
-
-
-