#include "src/base/SkStringView.h"
#include "tests/Test.h"
#include <string>
#include <string_view>
Go to the source code of this file.
◆ DEF_TEST() [1/2]
DEF_TEST |
( |
SkStringViewContains |
, |
|
|
r |
|
|
) |
| |
Definition at line 53 of file SkStringViewTest.cpp.
53 {
69}
#define REPORTER_ASSERT(r, cond,...)
constexpr bool contains(std::string_view str, std::string_view needle)
◆ DEF_TEST() [2/2]
DEF_TEST |
( |
SkStringViewStartsAndEnds |
, |
|
|
r |
|
|
) |
| |
Definition at line 14 of file SkStringViewTest.cpp.
14 {
15 std::string_view
empty(
"");
23
24 std::string_view xyz("xyz");
29
34
47
51}
EMSCRIPTEN_KEEPALIVE void empty()
constexpr bool starts_with(std::string_view str, std::string_view prefix)
constexpr bool ends_with(std::string_view str, std::string_view suffix)