summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-11-05 12:16:48 -0600
committerDudemanguy <random342@airmail.cc>2023-12-08 18:14:06 +0000
commitb7d85f0d4a5330cb3f433cd0cb4c977e10a168f7 (patch)
tree8072f3f11fecbc91f786c5b93869cbf515cc2afe /options/options.h
parent2193893be7ed5d9ea5089552b5c2e18c8ffb0f84 (diff)
downloadmpv-b7d85f0d4a5330cb3f433cd0cb4c977e10a168f7.tar.bz2
mpv-b7d85f0d4a5330cb3f433cd0cb4c977e10a168f7.tar.xz
filter_sdh: combine skip_bracketed and skip_parenthesized
These two functions are almost exactly the same. The parenthesis variant is essentially just a special case with more conditions to not remove text. These can easily be combined together into one generic skip_enclosed function to handle both cases. We also use char * instead of char for the character comparison here since not everything is neccesarily 1 byte and can fit into a char. This will be useful for the following commits where we extend this logic further.
Diffstat (limited to 'options/options.h')
0 files changed, 0 insertions, 0 deletions