Namespaces | Functions
protobuf/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc File Reference
#include <unistd.h>
#include <climits>
#include <errno.h>
#include <fcntl.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <unordered_set>
#include <vector>
#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/objectivec/objectivec_helpers.h>
#include <google/protobuf/compiler/objectivec/objectivec_nsobject_methods.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/io/io_win32.h>
#include <google/protobuf/port.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/strutil.h>
Include dependency graph for protobuf/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:

Go to the source code of this file.

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::compiler
 
 google::protobuf::compiler::objectivec
 
 google::protobuf::compiler::objectivec::posix
 

Functions

string google::protobuf::compiler::objectivec::BaseFileName (const FileDescriptor *file)
 
string google::protobuf::compiler::objectivec::BuildCommentsString (const SourceLocation &location, bool prefer_single_line)
 
std::string google::protobuf::compiler::objectivec::BuildFlagsString (const FlagType flag_type, const std::vector< std::string > &strings)
 
string google::protobuf::compiler::objectivec::ClassName (const Descriptor *descriptor)
 
std::string google::protobuf::compiler::objectivec::ClassName (const Descriptor *descriptor, std::string *out_suffix_added)
 
string google::protobuf::compiler::objectivec::ClassNameWorker (const Descriptor *descriptor)
 
string google::protobuf::compiler::objectivec::ClassNameWorker (const EnumDescriptor *descriptor)
 
string google::protobuf::compiler::objectivec::DefaultValue (const FieldDescriptor *field)
 
string google::protobuf::compiler::objectivec::EnumName (const EnumDescriptor *descriptor)
 
string google::protobuf::compiler::objectivec::EnumValueName (const EnumValueDescriptor *descriptor)
 
string google::protobuf::compiler::objectivec::EnumValueShortName (const EnumValueDescriptor *descriptor)
 
std::string google::protobuf::compiler::objectivec::EscapeTrigraphs (const std::string &to_escape)
 
string google::protobuf::compiler::objectivec::ExtensionMethodName (const FieldDescriptor *descriptor)
 
string google::protobuf::compiler::objectivec::FieldName (const FieldDescriptor *field)
 
string google::protobuf::compiler::objectivec::FieldNameCapitalized (const FieldDescriptor *field)
 
string google::protobuf::compiler::objectivec::FileClassName (const FileDescriptor *file)
 
string google::protobuf::compiler::objectivec::FileClassPrefix (const FileDescriptor *file)
 
string google::protobuf::compiler::objectivec::FilePath (const FileDescriptor *file)
 
string google::protobuf::compiler::objectivec::FilePathBasename (const FileDescriptor *file)
 
string google::protobuf::compiler::objectivec::GetCapitalizedType (const FieldDescriptor *field)
 
ObjectiveCType google::protobuf::compiler::objectivec::GetObjectiveCType (FieldDescriptor::Type field_type)
 
std::string google::protobuf::compiler::objectivec::GetProtoPackagePrefixExceptionList ()
 
string google::protobuf::compiler::objectivec::GPBGenericValueFieldName (const FieldDescriptor *field)
 
static std::string google::protobuf::compiler::objectivec::HandleExtremeFloatingPoint (std::string val, bool add_float_suffix)
 
bool google::protobuf::compiler::objectivec::HasNonZeroDefaultValue (const FieldDescriptor *field)
 
bool google::protobuf::compiler::objectivec::IsInitName (const std::string &name)
 
bool google::protobuf::compiler::objectivec::IsPrimitiveType (const FieldDescriptor *field)
 
bool google::protobuf::compiler::objectivec::IsProtobufLibraryBundledProtoFile (const FileDescriptor *file)
 
bool google::protobuf::compiler::objectivec::IsReferenceType (const FieldDescriptor *field)
 
bool google::protobuf::compiler::objectivec::IsRetainedName (const std::string &name)
 
std::string google::protobuf::compiler::objectivec::ObjCClass (const std::string &class_name)
 
std::string google::protobuf::compiler::objectivec::ObjCClassDeclaration (const std::string &class_name)
 
string google::protobuf::compiler::objectivec::OneofEnumName (const OneofDescriptor *descriptor)
 
string google::protobuf::compiler::objectivec::OneofName (const OneofDescriptor *descriptor)
 
string google::protobuf::compiler::objectivec::OneofNameCapitalized (const OneofDescriptor *descriptor)
 
bool google::protobuf::compiler::objectivec::ParseSimpleFile (const std::string &path, LineConsumer *line_consumer, std::string *out_error)
 
bool google::protobuf::compiler::objectivec::ParseSimpleStream (io::ZeroCopyInputStream &input_stream, const std::string &stream_name, LineConsumer *line_consumer, std::string *out_error)
 
std::string google::protobuf::compiler::objectivec::ProtobufFrameworkImportSymbol (const std::string &framework_name)
 
bool google::protobuf::compiler::objectivec::ReadLine (StringPiece *input, StringPiece *line)
 
void google::protobuf::compiler::objectivec::RemoveComment (StringPiece *input)
 
void google::protobuf::compiler::objectivec::SetProtoPackagePrefixExceptionList (const std::string &file_path)
 
void google::protobuf::compiler::objectivec::SetUseProtoPackageAsDefaultPrefix (bool on_or_off)
 
void google::protobuf::compiler::objectivec::TrimWhitespace (StringPiece *input)
 
std::string google::protobuf::compiler::objectivec::UnCamelCaseEnumShortName (const std::string &name)
 
std::string google::protobuf::compiler::objectivec::UnCamelCaseFieldName (const std::string &name, const FieldDescriptor *field)
 
bool google::protobuf::compiler::objectivec::UseProtoPackageAsDefaultPrefix ()
 
bool google::protobuf::compiler::objectivec::ValidateObjCClassPrefixes (const std::vector< const FileDescriptor * > &files, const Options &generation_options, std::string *out_error)
 

Variable Documentation

◆ decode_data_

std::string decode_data_
private

◆ exception_path_

std::string exception_path_
private

◆ exceptions_

std::unordered_set<std::string> exceptions_
private

◆ is_all_upper_

bool is_all_upper_
private

◆ kAddUnderscore

constexpr uint8_t kAddUnderscore = 0x80
staticconstexprprivate

◆ kMaxSegmentLen

constexpr int kMaxSegmentLen = 0x1f
staticconstexprprivate

◆ kOpAllUpper

constexpr uint8_t kOpAllUpper = 0x60
staticconstexprprivate

◆ kOpAsIs

constexpr uint8_t kOpAsIs = 0x00
staticconstexprprivate

◆ kOpFirstLower

constexpr uint8_t kOpFirstLower = 0x20
staticconstexprprivate

◆ kOpFirstUpper

constexpr uint8_t kOpFirstUpper = 0x40
staticconstexprprivate

◆ leftover_

std::string leftover_
private

◆ line_

int line_
private

◆ line_consumer_

LineConsumer* line_consumer_
private

◆ need_underscore_

bool need_underscore_
private

◆ op_

uint8_t op_
private

◆ prefix_map_

std::map<std::string, std::string>* prefix_map_
private

◆ segment_len_

int segment_len_
private

◆ set_

std::unordered_set<std::string>* set_
private

◆ use_package_name_

bool use_package_name_
private


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:24