| OLD | NEW |
| 1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
| 2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
| 3 // http://code.google.com/p/protobuf/ | 3 // https://developers.google.com/protocol-buffers/ |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
| 10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
| 11 // * Redistributions in binary form must reproduce the above | 11 // * Redistributions in binary form must reproduce the above |
| 12 // copyright notice, this list of conditions and the following disclaimer | 12 // copyright notice, this list of conditions and the following disclaimer |
| 13 // in the documentation and/or other materials provided with the | 13 // in the documentation and/or other materials provided with the |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void Print(const char* text); | 79 void Print(const char* text); |
| 80 // Like the first Print(), except the substitutions are given as parameters. | 80 // Like the first Print(), except the substitutions are given as parameters. |
| 81 void Print(const char* text, const char* variable, const string& value); | 81 void Print(const char* text, const char* variable, const string& value); |
| 82 // Like the first Print(), except the substitutions are given as parameters. | 82 // Like the first Print(), except the substitutions are given as parameters. |
| 83 void Print(const char* text, const char* variable1, const string& value1, | 83 void Print(const char* text, const char* variable1, const string& value1, |
| 84 const char* variable2, const string& value2); | 84 const char* variable2, const string& value2); |
| 85 // Like the first Print(), except the substitutions are given as parameters. | 85 // Like the first Print(), except the substitutions are given as parameters. |
| 86 void Print(const char* text, const char* variable1, const string& value1, | 86 void Print(const char* text, const char* variable1, const string& value1, |
| 87 const char* variable2, const string& value2, | 87 const char* variable2, const string& value2, |
| 88 const char* variable3, const string& value3); | 88 const char* variable3, const string& value3); |
| 89 // TODO(kenton): Overloaded versions with more variables? Three seems | 89 // Like the first Print(), except the substitutions are given as parameters. |
| 90 // to be enough. | 90 void Print(const char* text, const char* variable1, const string& value1, |
| 91 const char* variable2, const string& value2, |
| 92 const char* variable3, const string& value3, |
| 93 const char* variable4, const string& value4); |
| 94 // Like the first Print(), except the substitutions are given as parameters. |
| 95 void Print(const char* text, const char* variable1, const string& value1, |
| 96 const char* variable2, const string& value2, |
| 97 const char* variable3, const string& value3, |
| 98 const char* variable4, const string& value4, |
| 99 const char* variable5, const string& value5); |
| 100 // Like the first Print(), except the substitutions are given as parameters. |
| 101 void Print(const char* text, const char* variable1, const string& value1, |
| 102 const char* variable2, const string& value2, |
| 103 const char* variable3, const string& value3, |
| 104 const char* variable4, const string& value4, |
| 105 const char* variable5, const string& value5, |
| 106 const char* variable6, const string& value6); |
| 107 // Like the first Print(), except the substitutions are given as parameters. |
| 108 void Print(const char* text, const char* variable1, const string& value1, |
| 109 const char* variable2, const string& value2, |
| 110 const char* variable3, const string& value3, |
| 111 const char* variable4, const string& value4, |
| 112 const char* variable5, const string& value5, |
| 113 const char* variable6, const string& value6, |
| 114 const char* variable7, const string& value7); |
| 115 // Like the first Print(), except the substitutions are given as parameters. |
| 116 void Print(const char* text, const char* variable1, const string& value1, |
| 117 const char* variable2, const string& value2, |
| 118 const char* variable3, const string& value3, |
| 119 const char* variable4, const string& value4, |
| 120 const char* variable5, const string& value5, |
| 121 const char* variable6, const string& value6, |
| 122 const char* variable7, const string& value7, |
| 123 const char* variable8, const string& value8); |
| 91 | 124 |
| 92 // Indent text by two spaces. After calling Indent(), two spaces will be | 125 // Indent text by two spaces. After calling Indent(), two spaces will be |
| 93 // inserted at the beginning of each line of text. Indent() may be called | 126 // inserted at the beginning of each line of text. Indent() may be called |
| 94 // multiple times to produce deeper indents. | 127 // multiple times to produce deeper indents. |
| 95 void Indent(); | 128 void Indent(); |
| 96 | 129 |
| 97 // Reduces the current indent level by two spaces, or crashes if the indent | 130 // Reduces the current indent level by two spaces, or crashes if the indent |
| 98 // level is zero. | 131 // level is zero. |
| 99 void Outdent(); | 132 void Outdent(); |
| 100 | 133 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 127 bool failed_; | 160 bool failed_; |
| 128 | 161 |
| 129 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Printer); | 162 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Printer); |
| 130 }; | 163 }; |
| 131 | 164 |
| 132 } // namespace io | 165 } // namespace io |
| 133 } // namespace protobuf | 166 } // namespace protobuf |
| 134 | 167 |
| 135 } // namespace google | 168 } // namespace google |
| 136 #endif // GOOGLE_PROTOBUF_IO_PRINTER_H__ | 169 #endif // GOOGLE_PROTOBUF_IO_PRINTER_H__ |
| OLD | NEW |