feat/update_config #10
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user