bool al_ustr_remove_range(ALLEGRO_USTR *us, int start_pos, int end_pos)
Introduced in 5.0.0

Remove the interval [start_pos, end_pos) (in bytes) from a string. start_pos and end_pos may both be past the end of the string but cannot be less than 0 (the start of the string).

Returns true on success, false on error.

See also: al_ustr_remove_chr, al_ustr_truncate

Examples: ex_utf8

Most helpful discussions: