Lines Matching refs:pos
53 static void strbuf_splice(struct strbuf *sb, size_t pos, size_t len,
56 if (pos + len < pos)
58 if (pos > sb->len)
59 die("`pos' is too far after the end of the buffer");
60 if (pos + len > sb->len)
61 die("`pos + len' is too far after the end of the buffer");
65 memmove(sb->buf + pos + dlen,
66 sb->buf + pos + len,
67 sb->len - pos - len);
68 memcpy(sb->buf + pos, data, dlen);
72 void strbuf_remove(struct strbuf *sb, size_t pos, size_t len)
74 strbuf_splice(sb, pos, len, NULL, 0);