~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to src/google/protobuf/io/printer.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-05-31 14:41:47 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110531144147-s41g5fozgvyo462l
Tags: 2.4.0a-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix linking with -lpthread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
  Print(vars, text);
133
133
}
134
134
 
 
135
void Printer::Print(const char* text,
 
136
                    const char* variable1, const string& value1,
 
137
                    const char* variable2, const string& value2,
 
138
                    const char* variable3, const string& value3) {
 
139
  map<string, string> vars;
 
140
  vars[variable1] = value1;
 
141
  vars[variable2] = value2;
 
142
  vars[variable3] = value3;
 
143
  Print(vars, text);
 
144
}
 
145
 
135
146
void Printer::Indent() {
136
147
  indent_ += "  ";
137
148
}