Skip to content

Commit

Permalink
strfsong: use IsLowerAlphaASCII()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Sep 1, 2024
1 parent 77cc59c commit a596731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/strfsong.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "strfsong.hxx"
#include "charset.hxx"
#include "time_format.hxx"
#include "util/CharUtil.hxx"
#include "util/UriUtil.hxx"
#include "TagMask.hxx"

Expand Down Expand Up @@ -152,7 +153,7 @@ _strfsong(char *const s0, char *const end,

/* find the extent of this format specifier (stop at \0, ' ', or esc) */
const char *name_end = p + 1;
while (*name_end >= 'a' && *name_end <= 'z')
while (IsLowerAlphaASCII(*name_end))
++name_end;
size_t n = name_end - p + 1;

Expand Down

0 comments on commit a596731

Please sign in to comment.