Lines Matching refs:state
47 /* Sets the state to the initial state.
51 XPointer state)
59 XPointer state,
70 XPointer state)
74 /* Returns the name of the state's locale, as a static string. */
77 XPointer state)
79 return ((UbState) state)->lcd->core->name;
82 /* Frees the state, which was allocated by _XrmDefaultInitParseInfo. */
85 XPointer state)
87 _XCloseLC(((UbState) state)->lcd);
88 Xfree(state);
107 /* Sets the state to the initial state.
111 XPointer state)
113 _XlcResetConverter(((MbState) state)->conv);
120 XPointer state,
124 XlcConv conv = ((MbState) state)->conv;
129 cur_max = XLC_PUBLIC(((MbState) state)->lcd, mb_cur_max);
161 XPointer state)
165 /* Returns the name of the state's locale, as a static string. */
168 XPointer state)
170 return ((MbState) state)->lcd->core->name;
173 /* Frees the state, which was allocated by _XrmDefaultInitParseInfo. */
176 XPointer state)
178 _XlcCloseConverter(((MbState) state)->conv);
179 _XCloseLC(((MbState) state)->lcd);
180 Xfree(state);
200 UbState state = Xmalloc(sizeof(UbStateRec));
201 if (state == NULL)
204 state->lcd = lcd;
206 *rm_state = (XPointer) state;
210 MbState state = Xmalloc(sizeof(MbStateRec));
211 if (state == NULL)
214 state->lcd = lcd;
215 state->conv = _XlcOpenConverter(lcd, XlcNMultiByte, lcd, XlcNWideChar);
216 if (state->conv == NULL) {
217 Xfree(state);
221 *rm_state = (XPointer) state;