Lines Matching refs:c_str
88 if (!LoadBinarySchema(filename.c_str(), &string_schema)) { in CreateBinarySchemaBundle()
89 fprintf(stderr, "Unable to load binary schema from filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
94 fprintf(stderr, "Failed verification on binary schema filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
100 … fprintf(stderr, "Unable to find root table for binary flatbuffer schema:%s\n", filename.c_str()); in CreateBinarySchemaBundle()
110 fprintf(stdout, "Bundled binary schema file:%s\n", schema->root_table()->name()->c_str()); in CreateBinarySchemaBundle()
152 …n(), namespaces.end(), [fp](const std::string& s) { fprintf(fp, "namespace %s {\n", s.c_str()); }); in WriteHeaderFile()
159 fprintf(fp, "} // namespace %s\n", s.c_str()); in WriteHeaderFile()
165 namespace_prefix.c_str()); in WriteHeaderFile()
180 namespace_prefix.c_str(), in WriteHeaderFile()
181 namespace_prefix.c_str(), in WriteHeaderFile()
182 namespace_prefix.c_str(), in WriteHeaderFile()
183 namespace_prefix.c_str()); in WriteHeaderFile()
185 fprintf(fp, "const unsigned char* %s::data = %sdata_;\n", opts.ns_name, namespace_prefix.c_str()); in WriteHeaderFile()
191 namespace_prefix.c_str()); in WriteHeaderFile()
204 auto bundle_schema = flatbuffers::GetRoot<BundledSchema>(flatfile_data.c_str()); in ReadBundledSchema()
207 fprintf(stdout, "Bundle schema title:%s\n", bundle_schema->title()->c_str()); in ReadBundledSchema()
208 fprintf(stdout, "Bundle schema root_name:%s\n", bundle_schema->root_name()->c_str()); in ReadBundledSchema()
211 fprintf(stdout, " %d name:%s schema:%s\n", cnt, it->name()->c_str(), "schema"); in ReadBundledSchema()
248 fprintf(stderr, " bundled schema name:%s\n", name.c_str()); in WriteBundledSchema()
261 …final_filename.c_str(), (const char*)builder.GetBufferPointer(), builder.GetSize(), helper::AsBina… in WriteBundledSchema()
262 fprintf(stderr, "Unable to save file:%s\n", final_filename.c_str()); in WriteBundledSchema()
268 FILE* fp = fopen(header.c_str(), "w+"); in WriteBundledSchema()
270 fprintf(stdout, "Unable to open for writing header file:%s\n", header.c_str()); in WriteBundledSchema()