@ -334,7 +334,7 @@ std::string GeneratedMetadataFileName(const FileDescriptor* file,
const Options & options ) {
const std : : string & proto_file = file - > name ( ) ;
int start_index = 0 ;
int first_index = proto_file . find_first_of ( " / " , start_index ) ;
int first_index = proto_file . find_first_of ( ' / ' , start_index ) ;
std : : string result = " " ;
std : : string segment = " " ;
@ -347,7 +347,7 @@ std::string GeneratedMetadataFileName(const FileDescriptor* file,
// Append directory name.
std : : string file_no_suffix ;
int lastindex = proto_file . find_last_of ( " . " ) ;
int lastindex = proto_file . find_last_of ( ' . ' ) ;
if ( proto_file = = kEmptyFile ) {
return kEmptyMetadataFile ;
} else {
@ -371,12 +371,12 @@ std::string GeneratedMetadataFileName(const FileDescriptor* file,
file_no_suffix . substr ( start_index , first_index - start_index ) , true ) ;
result + = ReservedNamePrefix ( segment , file ) + segment + " / " ;
start_index = first_index + 1 ;
first_index = file_no_suffix . find_first_of ( " / " , start_index ) ;
first_index = file_no_suffix . find_first_of ( ' / ' , start_index ) ;
}
}
// Append file name.
int file_name_start = file_no_suffix . find_last_of ( " / " ) ;
int file_name_start = file_no_suffix . find_last_of ( ' / ' ) ;
if ( file_name_start = = std : : string : : npos ) {
file_name_start = 0 ;
} else {
@ -475,7 +475,7 @@ std::string PhpSetterTypeName(const FieldDescriptor* field,
}
if ( field - > is_repeated ( ) ) {
// accommodate for edge case with multiple types.
size_t start_pos = type . find ( " | " ) ;
size_t start_pos = type . find ( ' | ' ) ;
if ( start_pos ! = std : : string : : npos ) {
type . replace ( start_pos , 1 , " >|array< " ) ;
}
@ -1207,7 +1207,7 @@ void GenerateHead(const FileDescriptor* file, io::Printer* printer) {
}
std : : string FilenameToClassname ( const std : : string & filename ) {
int lastindex = filename . find_last_of ( " . " ) ;
int lastindex = filename . find_last_of ( ' . ' ) ;
std : : string result = filename . substr ( 0 , lastindex ) ;
for ( int i = 0 ; i < result . size ( ) ; i + + ) {
if ( result [ i ] = = ' / ' ) {
@ -1227,7 +1227,7 @@ void GenerateMetadataFile(const FileDescriptor* file, const Options& options,
GenerateHead ( file , & printer ) ;
std : : string fullname = FilenameToClassname ( filename ) ;
int lastindex = fullname . find_last_of ( " \\ " ) ;
int lastindex = fullname . find_last_of ( ' \\ ' ) ;
if ( lastindex ! = std : : string : : npos ) {
printer . Print (
@ -1263,7 +1263,7 @@ void GenerateEnumFile(const FileDescriptor* file, const EnumDescriptor* en,
GenerateHead ( file , & printer ) ;
std : : string fullname = FilenameToClassname ( filename ) ;
int lastindex = fullname . find_last_of ( " \\ " ) ;
int lastindex = fullname . find_last_of ( ' \\ ' ) ;
if ( lastindex ! = std : : string : : npos ) {
printer . Print (
@ -1391,7 +1391,7 @@ void GenerateMessageFile(const FileDescriptor* file, const Descriptor* message,
GenerateHead ( file , & printer ) ;
std : : string fullname = FilenameToClassname ( filename ) ;
int lastindex = fullname . find_last_of ( " \\ " ) ;
int lastindex = fullname . find_last_of ( ' \\ ' ) ;
if ( lastindex ! = std : : string : : npos ) {
printer . Print (
@ -1508,7 +1508,7 @@ void GenerateServiceFile(
GenerateHead ( file , & printer ) ;
std : : string fullname = FilenameToClassname ( filename ) ;
int lastindex = fullname . find_last_of ( " \\ " ) ;
int lastindex = fullname . find_last_of ( ' \\ ' ) ;
if ( ! file - > options ( ) . php_namespace ( ) . empty ( ) | |
( ! file - > options ( ) . has_php_namespace ( ) & & ! file - > package ( ) . empty ( ) ) | |