Remove duplicate function
This commit is contained in:
1 parent
e7388929c4
commit
d898d6d4cc
3 files changed
+4
-22
No files matched your search
+3
-13
@@ -701,7 +701,9 @@ string_right(string_t v, size_t index)
|
||||
STRINGI_CONTRACT (v);
|
||||
}
|
||||
|
||||
/* Return the string from position index to size bytes */
|
||||
/* Return the string from position index to size bytes.
|
||||
See also string_set_n
|
||||
*/
|
||||
static inline void
|
||||
string_mid (string_t v, size_t index, size_t size)
|
||||
{
|
||||
@@ -709,18 +711,6 @@ string_mid (string_t v, size_t index, size_t size)
|
||||
string_left(v, size);
|
||||
}
|
||||
|
||||
/* Set the string 'v' to the substring of org from position index to size bytes */
|
||||
static inline void
|
||||
string_subset (string_t v, const string_t org, size_t index, size_t size)
|
||||
{
|
||||
// The substring shall fully exist within the string org
|
||||
assert(index + size <= string_size(org) );
|
||||
assert(v != org);
|
||||
|
||||
const char *str = string_get_cstr(org);
|
||||
string_set_strn(v, &str[index], size);
|
||||
}
|
||||
|
||||
/* Return in the string the C string str1 into the C string str2 from start
|
||||
By default, start is zero.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user