Home | History | Annotate | Download | only in conversions.string

Lines Matching refs:bs

40     std::string bs = myconv.to_bytes(ws[0]);
41 assert(bs == "\xE1\x80\x85\x00");
42 bs = myconv.to_bytes(ws.c_str());
43 assert(bs == "\xE1\x80\x85\x00");
44 bs = myconv.to_bytes(ws);
45 assert(bs == "\xE1\x80\x85\x00");
46 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size());
47 assert(bs == "\xE1\x80\x85\x00");
48 bs = myconv.to_bytes(L"");
49 assert(bs.size() == 0);
59 std::string bs = myconv.to_bytes(ws[0]);
60 assert(bs == "\xF1\x80\x80\x83");
61 bs = myconv.to_bytes(ws.c_str());
62 assert(bs == "\xF1\x80\x80\x83");
63 bs = myconv.to_bytes(ws);
64 assert(bs == "\xF1\x80\x80\x83");
65 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size());
66 assert(bs == "\xF1\x80\x80\x83");
67 bs = myconv.to_bytes(L"");
68 assert(bs.size() == 0);