Lines Matching refs:substr
74 EXPECT_EQ(StringView().substr(0, 0).ToStdString(), ""); in TEST()
75 EXPECT_EQ(StringView().substr(3, 1).ToStdString(), ""); in TEST()
76 EXPECT_EQ(StringView("foo").substr(3, 1).ToStdString(), ""); in TEST()
77 EXPECT_EQ(StringView("foo").substr(4, 0).ToStdString(), ""); in TEST()
78 EXPECT_EQ(StringView("foo").substr(4, 1).ToStdString(), ""); in TEST()
79 EXPECT_EQ(StringView("foo").substr(0, 1).ToStdString(), "f"); in TEST()
80 EXPECT_EQ(StringView("foo").substr(0, 3).ToStdString(), "foo"); in TEST()
81 EXPECT_EQ(StringView("foo").substr(0, 99).ToStdString(), "foo"); in TEST()
82 EXPECT_EQ(StringView("foo").substr(1, 2).ToStdString(), "oo"); in TEST()
83 EXPECT_EQ(StringView("foo").substr(1, 3).ToStdString(), "oo"); in TEST()
84 EXPECT_EQ(StringView("foo").substr(1, 99).ToStdString(), "oo"); in TEST()
85 EXPECT_EQ(StringView("xyz").substr(0).ToStdString(), "xyz"); in TEST()
86 EXPECT_EQ(StringView("xyz").substr(2).ToStdString(), "z"); in TEST()
87 EXPECT_EQ(StringView("xyz").substr(3).ToStdString(), ""); in TEST()