• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/glib/

Lines Matching defs:string

44 #include <string.h>
167 * @src: source string.
169 * Copies a nul-terminated string into the dest buffer, include the
202 gchar *string = NULL;
204 g_vasprintf (&string, format, args);
206 return string;
265 * @nptr: the string to convert to a numeric value.
269 * Converts a string to a #gdouble value.
271 * if the string is not completely converted it attempts the conversion
318 * @nptr: the string to convert to a numeric value.
322 * Converts a string to a #gdouble value.
333 * To convert from a #gdouble to a string in a locale-insensitive
499 * @buffer: A buffer to place the resulting string in
503 * Converts a #gdouble to a string, using the '.' as
507 * the string back using g_ascii_strtod() gives the same machine-number
509 * guaranteed that the size of the resulting string will never
512 * Return value: The pointer to the buffer with the converted string.
524 * @buffer: A buffer to place the resulting string in
530 * Converts a #gdouble to a string, using the '.' as
532 * a printf()-style format string. Allowed conversion
536 * string, use g_ascii_dtostr().
538 * Return value: The pointer to the buffer with the converted string.
746 * @nptr: the string to convert to a numeric value.
751 * Converts a string to a #guint64 value.
765 * in %errno. If the string conversion fails, zero is returned, and
788 * @nptr: the string to convert to a numeric value.
793 * Converts a string to a #gint64 value.
807 * in %errno. If the string conversion fails, zero is returned, and
1317 /* this is declared differently (const) in string.h on BeOS */
1456 * See ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/strlcpy.3
1487 * Copy string src to buffer dest (of buffer size dest_size). At most
1532 * Appends string src to buffer dest (of buffer size dest_size).
1581 * @str: a string.
1586 * Return value: a newly-allocated string, with all the upper case
1590 * the string in place.)
1614 * @str: a string.
1619 * Return value: a newly allocated string, with all the lower case
1623 * the string in place.)
1647 * @string: the string to convert.
1649 * Converts a string to lower case.
1651 * Return value: the string
1658 g_strdown (gchar *string)
1662 g_return_val_if_fail (string != NULL, NULL);
1664 s = (guchar *) string;
1673 return (gchar *) string;
1678 * @string: the string to convert.
1680 * Converts a string to upper case.
1682 * Return value: the string
1688 g_strup (gchar *string)
1692 g_return_val_if_fail (string != NULL, NULL);
1694 s = (guchar *) string;
1703 return (gchar *) string;
1707 g_strreverse (gchar *string)
1709 g_return_val_if_fail (string != NULL, NULL);
1711 if (*string)
1715 h = string;
1716 t = string + strlen (string) - 1;
1730 return string;
1829 * @s1: string to compare with @s2.
1830 * @s2: string to compare with @s1.
1872 * @s1: string to compare with @s2.
1873 * @s2: string to compare with @s1.
1877 * characters after the first @n in each string.
1918 * @s1: a string.
1919 * @s2: a string to compare with @s1.
1921 * A case-insensitive string comparison, corresponding to the standard
1963 * @s1: a string.
1964 * @s2: a string to compare with @s1.
1967 * A case-insensitive string comparison, corresponding to the standard
1980 * broken if your string is guaranteed to be ASCII, since it's
1981 * locale-sensitive, and it's broken if your string is localized, since
2023 g_strdelimit (gchar *string,
2029 g_return_val_if_fail (string != NULL, NULL);
2034 for (c = string; *c; c++)
2040 return string;
2044 g_strcanon (gchar *string,
2050 g_return_val_if_fail (string != NULL, NULL);
2053 for (c = string; *c; c++)
2059 return string;
2204 g_strchug (gchar *string)
2208 g_return_val_if_fail (string != NULL, NULL);
2210 for (start = (guchar*) string; *start && g_ascii_isspace (*start); start++)
2213 g_memmove (string, start, strlen ((gchar *) start) + 1);
2215 return string;
2219 g_strchomp (gchar *string)
2223 g_return_val_if_fail (string != NULL, NULL);
2225 len = strlen (string);
2228 if (g_ascii_isspace ((guchar) string[len]))
2229 string[len] = '\0';
2234 return string;
2239 * @string: a string to split.
2240 * @delimiter: a string which specifies the places at which to split the string.
2243 * @max_tokens: the maximum number of pieces to split @string into. If this is
2244 * less than 1, the string is split completely.
2246 * Splits a string into a maximum of @max_tokens pieces, using the given
2247 * @delimiter. If @max_tokens is reached, the remainder of @string is appended
2250 * As a special case, the result of splitting the empty string "" is an empty
2251 * vector, not a vector containing a single string. The reason for this
2254 * to represent empty elements, you'll need to check for the empty string
2261 g_strsplit (const gchar *string,
2270 g_return_val_if_fail (string != NULL, NULL);
2277 remainder = string;
2298 if (*string)
2317 * @string: The string to be tokenized
2318 * @delimiters: A nul-terminated string containing bytes that are used
2319 * to split the string.
2320 * @max_tokens: The maximum number of tokens to split @string into.
2321 * If this is less than 1, the string is split completely
2323 * Splits @string into a number of tokens not containing any of the characters
2324 * in @delimiter. A token is the (possibly empty) longest string that does not
2335 * As a special case, the result of splitting the empty string "" is an empty
2336 * vector, not a vector containing a single string. The reason for this
2339 * to represent empty elements, you'll need to check for the empty string
2351 g_strsplit_set (const gchar *string,
2363 g_return_val_if_fail (string != NULL, NULL);
2369 if (*string == '\0')
2383 s = current = string;
2441 * the new array should be freed by first freeing each string, then
2479 gchar *string;
2500 /* Second part, building string */
2501 string = g_new (gchar, len);
2502 ptr = g_stpcpy (string, *str_array);
2510 string = g_strdup ("");
2512 return string;
2519 gchar *string, *s;
2547 /* Second part, building string */
2548 string = g_new (gchar, len);
2553 ptr = g_stpcpy (string, s);
2564 string = g_strdup ("");
2568 return string;
2575 * @haystack: a string.
2577 * @needle: the string to search for.
2579 * Searches the string @haystack for the first occurrence
2580 * of the string @needle, limiting the length of the search
2631 * @haystack: a nul-terminated string.
2632 * @needle: the nul-terminated string to search for.
2634 * Searches the string @haystack for the last occurrence
2635 * of the string @needle.
2680 * @haystack: a nul-terminated string.
2682 * @needle: the nul-terminated string to search for.
2684 * Searches the string @haystack for the last occurrence
2685 * of the string @needle, limiting the length of the search
2735 * @str: a nul-terminated string.
2738 * Looks whether the string @str ends with @suffix.
2765 * @str: a nul-terminated string.
2768 * Looks whether the string @str begins with @prefix.
2796 * @msgid: a string
2797 * @msgval: another string
2827 * string array @str_array.