- Copyright (C) 2011, 2012 Free Software Foundation, Inc.
+ Copyright (C) 2011, 2012, 2020 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
{
const uint8_t *s = CHAR_CAST (const uint8_t *, ds_cstr (&line->s));
size_t length = ds_length (&line->s);
{
const uint8_t *s = CHAR_CAST (const uint8_t *, ds_cstr (&line->s));
size_t length = ds_length (&line->s);
char *
u8_line_reserve (struct u8_line *line, int x0, int x1, int n)
{
char *
u8_line_reserve (struct u8_line *line, int x0, int x1, int n)
{
return ds_splice_uninit (&line->s, p0.ofs0, p1.ofs1 - p0.ofs0, n);
}
return ds_splice_uninit (&line->s, p0.ofs0, p1.ofs1 - p0.ofs0, n);
}
return ds_splice_uninit (&line->s, p0.ofs0, p1.ofs0 - p0.ofs0, n);
}
}
return ds_splice_uninit (&line->s, p0.ofs0, p1.ofs0 - p0.ofs0, n);
}
}