fix buffer
Some checks failed
android / build (push) Successful in 4m9s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 3m55s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 9m2s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 8m50s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 6m58s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 14m19s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 11m1s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 5m42s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 11m28s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 3m37s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 3m56s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 15m29s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 15m27s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 15m9s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 15m7s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 7m30s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 10m59s

This commit is contained in:
tqcq 2024-06-13 16:10:09 +08:00
parent e4b13e116a
commit b881ba6efc
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

View File

@ -364,10 +364,10 @@ PolymorphicBuffer MakeForeignBuffer(std::string buffer);
template <typename T>
PolymorphicBuffer MakeForeignBuffer(std::vector<T> buffer);
bool StartsWith(const NoncontiguousBuffer &buffer, Slice prefix);
bool EndsWith(const NoncontiguousBuffer &buffer, Slice suffix);
bool StartsWithIgnoreCase(const NoncontiguousBuffer &buffer, Slice prefix);
bool EndsWithIgnoreCase(const NoncontiguousBuffer &buffer, Slice suffix);
bool StartsWith(NoncontiguousBuffer buffer, Slice prefix);
bool EndsWith(NoncontiguousBuffer buffer, Slice suffix);
bool StartsWithIgnoreCase(NoncontiguousBuffer buffer, Slice prefix);
bool EndsWithIgnoreCase(NoncontiguousBuffer buffer, Slice suffix);
} // namespace tile
#endif // TILE_BASE_BUFFER_H