diff options
author | wm4 <wm4@mplayer2.org> | 2012-01-01 17:28:01 +0100 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-01-18 04:24:38 +0100 |
commit | f88674509e0a4f90180f26a9b8aa6879df38b056 (patch) | |
tree | 6e231b0d533c2b4fc5525b4e3bfaf800097d8cdd /libmpdemux | |
parent | bba96eca428711fa16aac0a9af096dc65fe6701f (diff) | |
download | mpv-f88674509e0a4f90180f26a9b8aa6879df38b056.tar.bz2 mpv-f88674509e0a4f90180f26a9b8aa6879df38b056.tar.xz |
bstr: add some utility functions
bstr_strip_ext and bstr_get_ext were taken from find_subfiles.c.
bstr_cut is extended to work like bstr_splice: passing a negative
argument will start counting from the end of the string, e.g.
bstr_cut("abc", -2) == "bc"
Diffstat (limited to 'libmpdemux')
0 files changed, 0 insertions, 0 deletions