Searched refs:trimmed_len (Results 1 – 3 of 3) sorted by relevance
85 const size_t trimmed_len = trimmed_value_str.size(); in SetValueFromString() local86 if (trimmed_len == 1 || value_str[trimmed_len - 1] != first_char) { in SetValueFromString()90 value_str = trimmed_value_str.substr(1, trimmed_len - 2); in SetValueFromString()
103 size_t trimmed_len, name_len; in open_partition() local108 trimmed_len = end_slash - record->blk_device.c_str() + 1; in open_partition()110 path = static_cast<char*>(calloc(trimmed_len + name_len + 1, 1)); in open_partition()111 strncpy(path, record->blk_device.c_str(), trimmed_len); in open_partition()112 strncpy(path + trimmed_len, name, name_len); in open_partition()
156 const size_t trimmed_len = strnlen(cstr, cstr_len); in GetConstTrimmedCStringWithLength() local157 return GetConstCStringWithLength(cstr, trimmed_len); in GetConstTrimmedCStringWithLength()