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()
35 EXPECT_EQ("123", Twine(123U).str()); in TEST()
36 EXPECT_EQ("123", Twine(123).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()
41 EXPECT_EQ("7b", Twine::utohexstr(123).str()); in TEST()
45 EXPECT_EQ("x", Twine('x').str()); in TEST()
46 EXPECT_EQ("x", Twine(static_cast<unsigned char>('x')).str()); in TEST()
47 EXPECT_EQ("x", Twine(static_cast<signed char>('x')).str()); in TEST()
56 repr(Twine("hi").concat(Twine::createNull()))); in TEST()
58 repr(Twine::createNull().concat(Twine("hi")))); in TEST()
62 repr(Twine("hi").concat(Twine()))); in TEST()
64 repr(Twine().concat(Twine("hi")))); in TEST()
68 repr(Twine("a").concat(Twine("b")))); in TEST()
72 repr(Twine("a").concat(Twine("b")).concat(Twine("c")))); in TEST()
74 repr(Twine("a").concat(Twine("b").concat(Twine("c"))))); in TEST()
79 EXPECT_EQ(0, *Twine("hello").toNullTerminatedStringRef(storage).end()); in TEST()
81 *Twine(StringRef("hello")).toNullTerminatedStringRef(storage).end()); in TEST()