home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xsupportslocale.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  4.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XSupportsLocal(3X11)      XLIB FUNCTIONS     XSupportsLocal(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XSupportsLocale, XSetLocaleModifiers - determine locale
  9.        support and configure locale modifiers
  10.  
  11. SSYYNNTTAAXX
  12.        Bool XSupportsLocale()
  13.  
  14.        char *XSetLocaleModifiers(_m_o_d_i_f_i_e_r___l_i_s_t)
  15.          char *_m_o_d_i_f_i_e_r___l_i_s_t;
  16.  
  17. AARRGGUUMMEENNTTSS
  18.        _m_o_d_i_f_i_e_r___l_i_s_t
  19.          Specifies the modifiers.
  20.  
  21. DDEESSCCRRIIPPTTIIOONN
  22.        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-
  23.        tions are capable of operating under the current locale.
  24.        If it returns _F_a_l_s_e, Xlib locale-dependent functions for
  25.        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
  26.        will return _X_L_o_c_a_l_e_N_o_t_S_u_p_p_o_r_t_e_d.     Other Xlib locale-
  27.        dependent routines will operate in the ``C'' locale.
  28.  
  29.        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
  30.        the current locale setting.  The modifier_list argument is
  31.        a null-terminated string of the form
  32.        ``{@_c_a_t_e_g_o_r_y=_v_a_l_u_e}'', that is, having zero or more con-
  33.        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
  34.        category name and _v_a_l_u_e is the (possibly empty) setting
  35.        for that category.  The values are encoded in the current
  36.        locale.    Category names are restricted to the POSIX
  37.        Portable Filename Character Set.
  38.  
  39.        The local host X locale modifiers announcer (on POSIX-
  40.        compliant systems, the XMODIFIERS environment variable) is
  41.        appended to the modifier_list to provide default values on
  42.        the local host.    If a given category appears more than
  43.        once in the list, the first setting in the list is used.
  44.        If a given category is not included in the full modifier
  45.        list, the category is set to an implementation-dependent
  46.        default for the current locale.    An empty value for a cat-
  47.        egory explicitly specifies the implementation-dependent
  48.        default.
  49.  
  50.        If the function is successful, it returns a pointer to a
  51.        string.    The contents of the string are such that a subse-
  52.        quent call with that string (in the same locale) will
  53.        restore the modifiers to the same settings.  If modi-
  54.        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
  55.        returns a pointer to such a string, and the current locale
  56.        modifiers are not changed.
  57.  
  58.        If invalid values are given for one or more modifier cate-
  59.        gories supported by the locale, a NULL pointer is
  60.        returned, and none of the current modifiers are changed.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XSupportsLocal(3X11)      XLIB FUNCTIONS     XSupportsLocal(3X11)
  71.  
  72.  
  73.        At program startup, the modifiers that are in effect are
  74.        unspecified until the first successful call to set them.
  75.        Whenever the locale is changed, the modifiers that are in
  76.        effect become unspecified until the next successful call
  77.        to set them.  Clients should always call _X_S_e_t_L_o_c_a_l_e_M_o_d_i_-
  78.        _f_i_e_r_s with a non-NULL modifier_list after setting the
  79.        locale before they call any locale-dependent Xlib routine.
  80.  
  81.        The only standard modifier category currently defined is
  82.        ``im'', which identifies the desired input method.  The
  83.        values for input method are not standardized.  A single
  84.        locale may use multiple input methods, switching input
  85.        method under user control.  The modifier may specify the
  86.        initial input method in effect or an ordered list of input
  87.        methods.     Multiple input methods may be specified in a
  88.        single im value string in an implementation-dependent man-
  89.        ner.
  90.  
  91.        The returned modifiers string is owned by Xlib and should
  92.        not be modified or freed by the client.    It may be freed
  93.        by Xlib after the current locale or modifiers are changed.
  94.        Until freed, it will not be modified by Xlib.
  95.  
  96. SSEEEE AALLSSOO
  97.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.