Lines Matching refs:substring_t

27  * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
34 static int match_one(char *s, const char *p, substring_t args[])
107 * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
115 int match_token(char *s, const match_table_t table, substring_t args[])
127 * match_number - scan a number in the given base from a substring_t
132 * Description: Given a &substring_t and a base, attempts to parse the substring
138 static int match_number(substring_t *s, int *result, int base)
159 * match_u64int - scan a number in the given base from a substring_t
164 * Description: Given a &substring_t and a base, attempts to parse the substring
170 static int match_u64int(substring_t *s, u64 *result, int base)
185 * match_int - scan a decimal representation of an integer from a substring_t
186 * @s: substring_t to be scanned
189 * Description: Attempts to parse the &substring_t @s as a decimal integer.
194 int match_int(substring_t *s, int *result)
201 * match_uint - scan a decimal representation of an integer from a substring_t
202 * @s: substring_t to be scanned
205 * Description: Attempts to parse the &substring_t @s as a decimal integer.
210 int match_uint(substring_t *s, unsigned int *result)
223 * a substring_t
224 * @s: substring_t to be scanned
227 * Description: Attempts to parse the &substring_t @s as a long decimal
233 int match_u64(substring_t *s, u64 *result)
240 * match_octal - scan an octal representation of an integer from a substring_t
241 * @s: substring_t to be scanned
244 * Description: Attempts to parse the &substring_t @s as an octal integer.
249 int match_octal(substring_t *s, int *result)
256 * match_hex - scan a hex representation of an integer from a substring_t
257 * @s: substring_t to be scanned
260 * Description: Attempts to parse the &substring_t @s as a hexadecimal integer.
265 int match_hex(substring_t *s, int *result)
325 * match_strlcpy - Copy the characters from a substring_t to a sized buffer
327 * @src: &substring_t to copy
330 * Description: Copy the characters in &substring_t @src to the
336 size_t match_strlcpy(char *dest, const substring_t *src, size_t size)
350 * match_strdup - allocate a new string with the contents of a substring_t
351 * @s: &substring_t to copy
354 * the &substring_t @s. The caller is responsible for freeing the returned
360 char *match_strdup(const substring_t *s)