Lines Matching refs:string
51 #include <string.h>
319 * utils_parse_size - Convert a string representing a size
324 * Read a string and convert it to a number. Strings may be suffixed to scale
339 * 0 Error, the string was malformed
393 * utils_parse_range - Convert a string representing a range of numbers
394 * @string: The string to be parsed
398 * Read a string of the form n-m. If the lower end is missing, zero will be
400 * string cannot be parsed correctly, @start and @finish will not be changed.
402 * Return: 1 Success, a valid string was found
403 * 0 Error, the string was not a valid range
405 int utils_parse_range(const char *string, s64 *start, s64 *finish, BOOL scale)
410 if (!string || !start || !finish) {
415 middle = strchr(string, '-');
416 if (string == middle) {
420 if (!utils_parse_size(string, &a, scale))
437 ntfs_log_debug("Range '%s' = %lld - %lld\n", string, (long long)a,