Lines Matching refs:charset
92 static unsigned int get_codepoint(char *buf, size_t size, const char *charset)
99 cd = iconv_open("UCS-4LE", charset);
129 "charset", then convert it back again and ensure we get the same
133 uint8_t *inbuf, size_t size, const char *charset)
154 cd = iconv_open(charset, "UTF-16LE");
159 charset));
161 cd2 = smb_iconv_open_ex(test, charset, "UTF-16LE", lp_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
162 cd3 = smb_iconv_open_ex(test, "UTF-16LE", charset, lp_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
163 last_charset = charset;
166 /* internal convert to charset - placing result in buf1 */
177 /* system convert to charset - placing result in buf2 */
194 get_codepoint((char *)(buf2+len1), len2-len1, charset) >= (1<<20)) {
199 get_codepoint((char *)(buf1+len2), len1-len2, charset) >= (1<<20)) {
227 get_codepoint((char *)(buf2+len1), len2-len1, charset));
231 get_codepoint((char *)(buf1+len2),len1-len2, charset));
258 if (strncmp(charset, "UTF", 3) != 0) {