• Home
  • Raw
  • Download

Lines Matching refs:Twine

18 std::string repr(const Twine &Value) {  in repr()
26 EXPECT_EQ("", Twine().str()); in TEST()
27 EXPECT_EQ("hi", Twine("hi").str()); in TEST()
28 EXPECT_EQ("hi", Twine(std::string("hi")).str()); in TEST()
29 EXPECT_EQ("hi", Twine(StringRef("hi")).str()); in TEST()
30 EXPECT_EQ("hi", Twine(StringRef(std::string("hi"))).str()); in TEST()
31 EXPECT_EQ("hi", Twine(StringRef("hithere", 2)).str()); in TEST()
32 EXPECT_EQ("hi", Twine(SmallString<4>("hi")).str()); in TEST()
36 EXPECT_EQ("123", Twine(123U).str()); in TEST()
37 EXPECT_EQ("123", Twine(123).str()); in TEST()
38 EXPECT_EQ("-123", Twine(-123).str()); in TEST()
39 EXPECT_EQ("123", Twine(123).str()); in TEST()
40 EXPECT_EQ("-123", Twine(-123).str()); in TEST()
42 EXPECT_EQ("7b", Twine::utohexstr(123).str()); in TEST()
46 EXPECT_EQ("x", Twine('x').str()); in TEST()
47 EXPECT_EQ("x", Twine(static_cast<unsigned char>('x')).str()); in TEST()
48 EXPECT_EQ("x", Twine(static_cast<signed char>('x')).str()); in TEST()
57 repr(Twine("hi").concat(Twine::createNull()))); in TEST()
59 repr(Twine::createNull().concat(Twine("hi")))); in TEST()
63 repr(Twine("hi").concat(Twine()))); in TEST()
65 repr(Twine().concat(Twine("hi")))); in TEST()
67 repr(Twine().concat(Twine(SmallString<5>("hi"))))); in TEST()
69 repr(Twine(SmallString<7>("hey")).concat(Twine("there")))); in TEST()
73 repr(Twine("a").concat(Twine("b")))); in TEST()
77 repr(Twine("a").concat(Twine("b")).concat(Twine("c")))); in TEST()
79 repr(Twine("a").concat(Twine("b").concat(Twine("c"))))); in TEST()
81 repr(Twine("a").concat(Twine(SmallString<3>("b")).concat(Twine("c"))))); in TEST()
86 EXPECT_EQ(0, *Twine("hello").toNullTerminatedStringRef(storage).end()); in TEST()
88 *Twine(StringRef("hello")).toNullTerminatedStringRef(storage).end()); in TEST()
89 EXPECT_EQ(0, *Twine(SmallString<11>("hello")) in TEST()