Lines Matching refs:string
30 #include <string.h>
241 /* Converts a string from ISO-8859-1 encoding to UTF-8 encoding. */
243 conv_from_iso_8859_1 (char *string)
245 if (is_ascii_string (string))
246 return string;
249 size_t length = strlen (string);
253 const char *str = string;
271 /* Converts a string from JAVA encoding (with \uxxxx sequences) to UTF-8
272 encoding. May destructively modify the argument string. */
274 conv_from_java (char *string)
276 /* This conversion can only shrink the string, never increase its size.
278 const char *p = string;
279 unsigned char *q = (unsigned char *) string;
352 return string;
356 /* Reads a key or value string.
357 Returns the string in UTF-8 encoding, or NULL if the end of the logical
362 separator that follows after the string,
373 /* Skip whitespace before the string. */
379 /* Empty string. */
382 /* Start accumulating the string. We store the string in UTF-16 before
384 UTF-8? Because a string can contain surrogates like \uD800\uDF00, and
392 /* Skip whitespace after the string. */