|
|
|||
File indexing completed on 2026-07-13 08:23:16
0001 // Protocol Buffers - Google's data interchange format 0002 // Copyright 2008-2024 Google Inc. All rights reserved. 0003 // 0004 // Use of this source code is governed by a BSD-style 0005 // license that can be found in the LICENSE file or at 0006 // https://developers.google.com/open-source/licenses/bsd 0007 0008 #ifndef GOOGLE_PROTOBUF_COMPILER_CODE_GENERATOR_LITE_H__ 0009 #define GOOGLE_PROTOBUF_COMPILER_CODE_GENERATOR_LITE_H__ 0010 0011 #include <string> 0012 #include <utility> 0013 #include <vector> 0014 0015 #include "absl/strings/string_view.h" 0016 0017 // Must be included last. 0018 #include "google/protobuf/port_def.inc" 0019 0020 namespace google { 0021 namespace protobuf { 0022 namespace compiler { 0023 0024 // Several code generators treat the parameter argument as holding a 0025 // list of options separated by commas. This helper function parses 0026 // a set of comma-delimited name/value pairs: e.g., 0027 // "foo=bar,baz,moo=corge" 0028 // parses to the pairs: 0029 // ("foo", "bar"), ("baz", ""), ("moo", "corge") 0030 PROTOC_EXPORT void ParseGeneratorParameter( 0031 absl::string_view, std::vector<std::pair<std::string, std::string> >*); 0032 0033 // Strips ".proto" or ".protodevel" from the end of a filename. 0034 PROTOC_EXPORT std::string StripProto(absl::string_view filename); 0035 0036 // Returns true if the proto path corresponds to a known feature file. 0037 PROTOC_EXPORT bool IsKnownFeatureProto(absl::string_view filename); 0038 0039 } // namespace compiler 0040 } // namespace protobuf 0041 } // namespace google 0042 0043 #include "google/protobuf/port_undef.inc" 0044 0045 #endif // GOOGLE_PROTOBUF_COMPILER_CODE_GENERATOR_LITE_H__
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|