feat/update_config #10

Merged
tqcq merged 26 commits from feat/update_config into master 2024-10-14 10:15:01 +08:00
Showing only changes of commit 64b25815a2 - Show all commits

View File

@ -43,7 +43,7 @@ Slice TrimLeft(Slice s, Slice cutset);
Slice TrimRight(Slice s, Slice cutset); Slice TrimRight(Slice s, Slice cutset);
Slice Trim(Slice s, Slice cutset); Slice Trim(Slice s, Slice cutset);
template<typename Pred = decltype(isspace)> template<typename Pred = int(int)>
Slice Slice
TrimLeft(Slice s, Pred pred = isspace) TrimLeft(Slice s, Pred pred = isspace)
{ {
@ -51,7 +51,7 @@ TrimLeft(Slice s, Pred pred = isspace)
return s; return s;
} }
template<typename Pred = decltype(isspace)> template<typename Pred = int(int)>
Slice Slice
TrimRight(Slice s, Pred pred = isspace) TrimRight(Slice s, Pred pred = isspace)
{ {
@ -59,7 +59,7 @@ TrimRight(Slice s, Pred pred = isspace)
return s; return s;
} }
template<typename Pred = decltype(isspace)> template<typename Pred = int(int)>
Slice Slice
Trim(Slice s, Pred pred = isspace) Trim(Slice s, Pred pred = isspace)
{ {