Lines Matching defs:string
69 (they remain as part of the string). For example:
75 parses to two tokens, including the single literal-string token "John
80 A special case occurs if a newline character in a string is preceded
176 underscore (_). The value can be either a string, an integer, a real number,
294 the string names of the arguments:
308 type string
354 type string
379 'snd_func_' is prefixed to the string and code from the ALSA library is used.
452 char *string;
591 * \return The top-level config directory path string
593 * This function returns the string of the top-level config directory path.
788 static int get_delimstring(char **string, int delim, input_t *input);
1001 static int get_freestring(char **string, int id, input_t *input)
1011 *string = copy_local_string(&str);
1012 if (! *string)
1040 *string = copy_local_string(&str);
1041 if (! *string)
1061 static int get_delimstring(char **string, int delim, input_t *input)
1078 *string = copy_local_string(&str);
1079 if (! *string)
1094 /* Return 0 for free string, 1 for delimited string */
1095 static int get_string(char **string, int id, input_t *input)
1113 err = get_delimstring(string, c, input);
1119 err = get_freestring(string, id, input);
1245 SNDERR("%s is not a string", *id);
1254 free(n->u.string);
1255 n->u.string = s;
1644 string_print(n->u.string, 0, out);
1750 free(dst->u.string);
1759 * \brief Converts an ASCII string to a configuration node type.
1760 * \param[in] ascii A string containing a configuration node type.
1769 * <dt>string<dt>#SND_CONFIG_TYPE_STRING
1793 if (!strcmp(ascii, "string")) {
1873 * \param[out] id The function puts the pointer to the id string at the
1877 * The returned string is owned by the configuration node; the application
1878 * must not modify or delete it, and the string becomes invalid when the
1993 str = "Unterminated string";
2061 * \brief Loads a configuration tree from a string.
2066 * \param[in] size String size, if zero, a C string is expected (with termination)
2069 * The definitions loaded from the string are put to \a config, which
2405 free(config->u.string);
2561 * \brief Creates a string configuration node.
2841 * \brief Creates a string configuration node with the given initial value.
2849 * with a copy of the string \c value.
2868 tmp->u.string = strdup(value);
2869 if (!tmp->u.string) {
2874 tmp->u.string = NULL;
2881 * \brief Creates a string configuration node with the given initial value.
2889 * contains with a copy of the string \c value, replacing any character other
2910 tmp->u.string = strdup(value);
2911 if (!tmp->u.string) {
2916 for (c = tmp->u.string; *c; c++) {
2925 tmp->u.string = NULL;
3026 * \brief Changes the value of a string configuration node.
3031 * This function deletes the old string in the node and stores a copy of
3032 * \a value string in the node.
3036 * <dt>-EINVAL<dd>\a config is not a string node.
3055 free(config->u.string);
3056 config->u.string = new_string;
3085 * \param ascii The new value for the node, as an ASCII string.
3089 * from the string \a ascii. \a ascii must not be \c NULL, not even for
3090 * a string node.
3092 * The node's type does not change, i.e., the string must contain a
3093 * valid value with the same type as the node's type. For a string
3098 * <dt>-EINVAL<dd>\a config is not a number or string node.
3143 free(config->u.string);
3144 config->u.string = ptr;
3248 * \brief Returns the value of a string configuration node.
3254 * The returned string is owned by the configuration node; the
3255 * application must not modify or delete it, and the string becomes
3258 * The string may be \c NULL.
3262 * <dt>-EINVAL<dd>\a config is not a string node.
3273 *ptr = config->u.string;
3286 * <dt>-EINVAL<dd>\a config is not a string node.
3299 * \brief Returns the value of a configuration node as a string.
3302 * string at the address specified by \a ascii.
3305 * This function dynamically allocates the returned string. The
3309 * For a string node with \c NULL value, the returned string is \c NULL.
3318 * string node.
3362 if (res[0]) { /* trim the string */
3375 if (config->u.string)
3376 *ascii = strdup(config->u.string);
3391 * \brief Compares the id of a configuration node to a given string.
3645 * identified by an alias, which is a string node whose value is taken
3679 * not a compound or string node.
3744 * not a compound or string node.
3775 * not a compound or string node.
3935 * \warning Whenever the configuration tree is updated, all string
4337 err = snd_config_imake_string(&v, "string", driver);
4506 * \warning If the configuration tree is reread, all string pointers and
4662 * \warning Whenever #snd_config is updated, all string pointers and
5374 SNDERR("Unterminated string");
5601 } else if (strcmp(tmp, "string") == 0) {
5646 * this function replaces any string node beginning with $ with the
5673 * \param[in] args Arguments string, can be \c NULL.
5681 * this function replaces any string node beginning with $ with the
5752 * If \a name contains a colon (:), the rest of the string after the