diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2017-04-01 10:55:04 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2017-04-01 10:55:04 +0800 |
commit | 99e5d81ef997cb88b1a40e6f253f37f7cbf251d9 (patch) | |
tree | 95e9b8937d46182e7066f5314f2f092b34323e51 /libavutil/avstring.h | |
parent | 6171f178e70ebe75e5964531f47ccc32455d5557 (diff) | |
download | ffmpeg-99e5d81ef997cb88b1a40e6f253f37f7cbf251d9.tar.gz |
avutil/avstring: add av_strreplace API into avstring
refer to: http://creativeandcritical.net/str-replace-c
add av_strreplace API for replace string operations.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r-- | libavutil/avstring.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h index dd2876990f..33be8bf484 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -266,6 +266,11 @@ int av_strcasecmp(const char *a, const char *b); */ int av_strncasecmp(const char *a, const char *b, size_t n); +/** + * Locale-independent strings replace. + * @note This means only ASCII-range characters are replace + */ +char *av_strreplace(const char *str, const char *from, const char *to); /** * Thread safe basename. |