Lines Matching refs:charset
37 XlcCharSet charset;
43 /* Returns the charset with the given name (including side suffix).
55 if (xrm_name == list->charset->xrm_name)
56 return (XlcCharSet) list->charset;
62 /* Returns the charset with the given encoding (no side suffix) and
76 if (list->charset->xrm_encoding_name == xrm_encoding_name
77 && (list->charset->side == XlcGLGR || list->charset->side == side))
78 return (XlcCharSet) list->charset;
88 XlcCharSet charset)
92 if (_XlcGetCharSet(charset->name))
99 list->charset = charset;
127 XlcCharSet charset,
134 return _XlcGetValues((XPointer) charset, resources, XlcNumber(resources),
142 _XlcGetCSValues(XlcCharSet charset, ...)
149 va_start(var, charset);
153 va_start(var, charset);
160 ret = get_values(charset, args, num_args);
174 XlcCharSet charset;
179 charset = Xcalloc(1, sizeof(XlcCharSetRec));
180 if (charset == NULL)
189 Xfree(charset);
193 charset->name = tmp;
194 charset->xrm_name = XrmStringToQuark(charset->name);
197 if ((colon = strchr(charset->name, ':')) != NULL) {
198 size_t length = (size_t)(colon - charset->name);
201 Xfree((char *) charset->name);
202 Xfree(charset);
205 memcpy(encoding_tmp, charset->name, length);
207 charset->encoding_name = encoding_tmp;
208 charset->xrm_encoding_name = XrmStringToQuark(charset->encoding_name);
210 charset->encoding_name = charset->name;
211 charset->xrm_encoding_name = charset->xrm_name;
217 charset->ct_sequence = tmp;
220 if (!_XlcParseCharSet(charset))
222 charset->ct_sequence = "";
224 return (XlcCharSet) charset;