fix(string): use custom type
Some checks failed
android / build (push) Failing after 10s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 11s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 12s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 9s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 5s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 4s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 4s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 5s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 5s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 5s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 4s
android / build (pull_request) Failing after 5s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (pull_request) Failing after 4s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (pull_request) Failing after 5s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 4s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 4s
linux-arm-gcc / linux-gcc-arm (Debug) (pull_request) Failing after 5s
linux-arm-gcc / linux-gcc-arm (Release) (pull_request) Failing after 4s
linux-arm-gcc / linux-gcc-armhf (Debug) (pull_request) Failing after 5s
linux-arm-gcc / linux-gcc-armhf (Release) (pull_request) Failing after 4s
linux-x64-clang / linux-clang (Debug) (push) Failing after 5s
linux-x64-clang / linux-clang (Release) (push) Failing after 5s
linux-mips-gcc / linux-gcc-mipsel (Debug) (pull_request) Failing after 4s
linux-mips-gcc / linux-gcc-mipsel (Release) (pull_request) Failing after 5s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 4s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 5s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (pull_request) Failing after 5s
linux-mips64-gcc / linux-gcc-mips64el (Release) (pull_request) Failing after 4s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 4s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 5s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (pull_request) Failing after 4s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (pull_request) Failing after 5s
linux-x64-clang / linux-clang (Debug) (pull_request) Failing after 5s
linux-x64-clang / linux-clang (Release) (pull_request) Failing after 4s
linux-x64-gcc / linux-gcc (Debug) (pull_request) Failing after 5s
linux-x64-gcc / linux-gcc (Release) (pull_request) Failing after 4s
linux-x86-gcc / linux-gcc (Debug) (pull_request) Failing after 4s
linux-x86-gcc / linux-gcc (Release) (pull_request) Failing after 4s
Some checks failed
android / build (push) Failing after 10s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 11s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 12s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 9s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 5s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 4s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 4s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 5s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 5s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 5s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 4s
android / build (pull_request) Failing after 5s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (pull_request) Failing after 4s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (pull_request) Failing after 5s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 4s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 4s
linux-arm-gcc / linux-gcc-arm (Debug) (pull_request) Failing after 5s
linux-arm-gcc / linux-gcc-arm (Release) (pull_request) Failing after 4s
linux-arm-gcc / linux-gcc-armhf (Debug) (pull_request) Failing after 5s
linux-arm-gcc / linux-gcc-armhf (Release) (pull_request) Failing after 4s
linux-x64-clang / linux-clang (Debug) (push) Failing after 5s
linux-x64-clang / linux-clang (Release) (push) Failing after 5s
linux-mips-gcc / linux-gcc-mipsel (Debug) (pull_request) Failing after 4s
linux-mips-gcc / linux-gcc-mipsel (Release) (pull_request) Failing after 5s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 4s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 5s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (pull_request) Failing after 5s
linux-mips64-gcc / linux-gcc-mips64el (Release) (pull_request) Failing after 4s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 4s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 5s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (pull_request) Failing after 4s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (pull_request) Failing after 5s
linux-x64-clang / linux-clang (Debug) (pull_request) Failing after 5s
linux-x64-clang / linux-clang (Release) (pull_request) Failing after 4s
linux-x64-gcc / linux-gcc (Debug) (pull_request) Failing after 5s
linux-x64-gcc / linux-gcc (Release) (pull_request) Failing after 4s
linux-x86-gcc / linux-gcc (Debug) (pull_request) Failing after 4s
linux-x86-gcc / linux-gcc (Release) (pull_request) Failing after 4s
This commit is contained in:
parent
729ee8b86c
commit
64b25815a2
@ -43,7 +43,7 @@ Slice TrimLeft(Slice s, Slice cutset);
|
||||
Slice TrimRight(Slice s, Slice cutset);
|
||||
Slice Trim(Slice s, Slice cutset);
|
||||
|
||||
template<typename Pred = decltype(isspace)>
|
||||
template<typename Pred = int(int)>
|
||||
Slice
|
||||
TrimLeft(Slice s, Pred pred = isspace)
|
||||
{
|
||||
@ -51,7 +51,7 @@ TrimLeft(Slice s, Pred pred = isspace)
|
||||
return s;
|
||||
}
|
||||
|
||||
template<typename Pred = decltype(isspace)>
|
||||
template<typename Pred = int(int)>
|
||||
Slice
|
||||
TrimRight(Slice s, Pred pred = isspace)
|
||||
{
|
||||
@ -59,7 +59,7 @@ TrimRight(Slice s, Pred pred = isspace)
|
||||
return s;
|
||||
}
|
||||
|
||||
template<typename Pred = decltype(isspace)>
|
||||
template<typename Pred = int(int)>
|
||||
Slice
|
||||
Trim(Slice s, Pred pred = isspace)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user