Lines Matching refs:std

35 JavaClassGenerator::JavaClassGenerator(const std::shared_ptr<const ResourceTable>& table,  in JavaClassGenerator()
40 static void generateHeader(std::ostream& out, const StringPiece16& package) { in generateHeader()
48 << std::endl in generateHeader()
49 << std::endl; in generateHeader()
52 static const std::set<StringPiece16> sJavaIdentifiers = {
73 static std::u16string transform(const StringPiece16& symbol) { in transform()
74 std::u16string output = symbol.toString(); in transform()
84 GenArgs(std::ostream* o, const std::u16string* p, std::u16string* e) : in GenArgs()
88 std::ostream* out;
89 const std::u16string* package;
90 std::u16string* entryName;
95 std::ostream* out = static_cast<GenArgs&>(a).out; in visit()
96 const std::u16string* package = static_cast<GenArgs&>(a).package; in visit()
97 std::u16string* entryName = static_cast<GenArgs&>(a).entryName; in visit()
100 std::vector<std::pair<ResourceId, ResourceNameRef>> sortedAttributes; in visit()
109 std::sort(sortedAttributes.begin(), sortedAttributes.end()); in visit()
118 *out << std::endl << " "; in visit()
126 *out << std::endl << " };" << std::endl; in visit()
140 *out << "_" << transform(itemName.entry) << " = " << i << ";" << std::endl; in visit()
144 bool JavaClassGenerator::generateType(const std::u16string& package, size_t packageId, in generateType()
145 const ResourceTableType& type, std::ostream& out) { in generateType()
148 std::u16string unmangledPackage; in generateType()
149 std::u16string unmangledName; in generateType()
172 std::stringstream err; in generateType()
183 << " int " << transform(unmangledName) << " = " << id << ";" << std::endl; in generateType()
189 bool JavaClassGenerator::generate(const std::u16string& package, std::ostream& out) { in generate()
194 out << "public final class R {" << std::endl; in generate()
197 out << " public static final class " << type->type << " {" << std::endl; in generate()
201 out << " }" << std::endl; in generate()
204 out << "}" << std::endl; in generate()