Lines Matching defs:string

9 #include <string>
40 std::string Rot13(const std::string& s) {
41 std::string text = s;
59 std::string c;
62 TestType(int a, float b, const std::string& c) : a(a), b(b), c(c) {}
106 std::string c;
117 std::string c;
157 PDX_REMOTE_METHOD(Foo, kOpFoo, int(int, const std::string&));
159 std::string(const std::string&, const std::string&));
161 PDX_REMOTE_METHOD(StringLength, kOpStringLength, int(const std::string&));
166 std::string(const std::vector<TestType>&));
167 PDX_REMOTE_METHOD(Rot13, kOpRot13, std::string(const std::string&));
170 PDX_REMOTE_METHOD(GetFile, kOpGetFile, LocalHandle(const std::string&, int));
172 TestFdType(int, const std::string&, int));
175 const std::vector<std::pair<std::string, int>>&));
178 const std::string&, int, std::size_t));
196 int Foo(int a, const std::string& b) {
200 std::string Concatenate(const std::string& a, const std::string& b) {
201 std::string return_value;
203 Status<std::string> status =
206 return std::string("[Error]");
221 int StringLength(const char* string, std::size_t size) {
223 WrapString(string, size)));
226 int StringLength(const std::string& string) {
228 InvokeRemoteMethod<TestInterface::StringLength>(string));
249 std::string SendVector(const std::vector<TestType>& v) {
250 Status<std::string> status =
258 std::string Rot13(const std::string& string) {
259 Status<std::string> status =
260 InvokeRemoteMethod<TestInterface::Rot13>(string);
261 return status ? status.get() : string;
272 LocalHandle GetFile(const std::string& path, int mode) {
281 int GetFile(const std::string& path, int mode, LocalHandle* fd_out) {
287 TestFdType GetTestFdType(int a, const std::string& path, int mode) {
297 const std::vector<std::pair<std::string, int>>& file_specs) {
306 int ReadFile(void* buffer, std::size_t size, const std::string& path,
441 int OnFoo(Message&, int a, const std::string& b) { return a + b.length(); }
443 std::string OnConcatenate(Message&, const std::string& a,
444 const std::string& b) {
452 int OnStringLength(Message&, const std::string& string) {
453 return string.length();
460 std::string OnSendVector(Message&, const std::vector<TestType>& v) {
461 std::string return_value = "";
469 Status<std::string> OnRot13(Message&, const std::string& s) {
477 LocalHandle OnGetFile(Message& message, const std::string& path, int mode) {
484 TestFdType OnGetTestFdType(Message& message, int a, const std::string& path,
493 Message&, const std::vector<std::pair<std::string, int>>& file_specs) {
506 Message& message, const std::string& path, int mode, std::size_t length) {
600 const auto cat = client->Concatenate("This is a string", ", that it is.");
601 EXPECT_EQ("This is a string, that it is.", cat);
603 std::string alphabet = "abcdefghijklmnopqrstuvwxyz";
616 const auto string_length1 = client->StringLength("This is a string");
622 std::string string = "1234567890";
624 client->StringLength(string.c_str(), string.length());
627 TestType tt{10, 0.0, "string"};
633 const std::string string_result = client->SendVector(ttv);
839 std::vector<std::string>>::value));
860 EXPECT_TRUE((IsConvertible<std::map<int, std::string>,
863 (IsConvertible<std::map<std::tuple<int, int>, std::string>,
864 std::map<std::pair<int, int>, std::string>>::value));
868 (IsConvertible<std::unordered_map<int, std::string>,
871 std::unordered_map<std::tuple<int, int>, std::string>,
872 std::unordered_map<std::pair<int, int>, std::string>>::value));
874 // std::string.
875 EXPECT_TRUE((IsConvertible<std::string, std::string>::value));
876 EXPECT_FALSE((IsConvertible<std::string, int>::value));
877 EXPECT_FALSE((IsConvertible<int, std::string>::value));
879 // Nested std::string.
880 EXPECT_TRUE((IsConvertible<std::pair<std::string, std::string>,
881 std::pair<std::string, std::string>>::value));
882 EXPECT_FALSE((IsConvertible<std::pair<std::string, std::string>,
883 std::pair<std::string, int>>::value));
884 EXPECT_FALSE((IsConvertible<std::pair<std::string, std::string>,
885 std::pair<int, std::string>>::value));
886 EXPECT_FALSE((IsConvertible<std::pair<std::string, std::string>,
891 EXPECT_TRUE((IsConvertible<StringWrapper<char>, std::string>::value));
892 EXPECT_TRUE((IsConvertible<std::string, StringWrapper<char>>::value));