Lines Matching defs:string
7 #include <string>
27 void AppendStringHeader(const std::string& header_name,
28 const std::string& header_value,
29 std::string* output) {
37 void AppendUint32Header(const std::string& header_name,
39 std::string* output) {
76 std::string Message::GetMessageTypeAsString() {
90 return std::string();
93 std::string Message::ToStringInternal(const std::string& indent,
96 std::string output;
163 case STRING: {
164 std::string value;
167 // Truncate if the string is longer than the limit.
170 output += indent + "string \"" + value + "\"\n";
172 std::string truncated;
176 output += indent + "string \"" + truncated + "\"\n";
239 // The returned string consists of message headers such as
248 // string \"payload\"
250 std::string Message::ToString() {
252 return std::string();
255 std::string headers;
269 return headers + "\n" + ToStringInternal(std::string(), &reader);
272 bool Message::SetDestination(const std::string& destination) {
280 bool Message::SetInterface(const std::string& interface) {
284 bool Message::SetMember(const std::string& member) {
288 bool Message::SetErrorName(const std::string& error_name) {
292 bool Message::SetSender(const std::string& sender) {
304 std::string Message::GetDestination() {
314 std::string Message::GetInterface() {
319 std::string Message::GetMember() {
324 std::string Message::GetErrorName() {
329 std::string Message::GetSender() {
334 std::string Message::GetSignature() {
351 MethodCall::MethodCall(const std::string& interface_name,
352 const std::string& method_name)
374 Signal::Signal(const std::string& interface_name,
375 const std::string& method_name)
440 const std::string& error_name,
441 const std::string& error_message) {
506 void MessageWriter::AppendString(const std::string& value) {
507 // D-Bus Specification (0.19) says a string "must be valid UTF-8".
512 // input string can be large. If needed, we could add something like
522 // Ideally, client shouldn't need to supply the signature string, but
530 void MessageWriter::OpenArray(const std::string& signature,
543 void MessageWriter::OpenVariant(const std::string& signature,
603 const std::vector<std::string>& strings) {
626 std::string serialized_proto;
674 void MessageWriter::AppendVariantOfString(const std::string& value) {
696 const std::string signature(1u, // length
777 bool MessageReader::PopString(std::string* value) {
830 std::vector<std::string> *strings) {
836 std::string string;
837 if (!array_reader.PopString(&string))
839 strings->push_back(string);
916 bool MessageReader::PopVariantOfString(std::string* value) {
937 std::string MessageReader::GetDataSignature() {
938 std::string signature;