Home | History | Annotate | Download | only in src

Lines Matching refs:string

19 #include <string>
29 const std::string Indent = " ";
32 PhpGenerator(const Parser &parser, const std::string &path,
33 const std::string &file_name)
46 std::string enumcode;
57 std::string declcode;
65 void BeginFile(const std::string name_space_name,
66 const bool needs_imports, std::string *code_ptr) {
67 std::string &code = *code_ptr;
85 bool SaveType(const Definition &def, const std::string &classcode,
89 std::string code = "";
94 std::string filename = NamespaceDir(*def.defined_namespace) +
100 static void BeginClass(const StructDef &struct_def, std::string *code_ptr) {
101 std::string &code = *code_ptr;
110 static void EndClass(std::string *code_ptr) {
111 std::string &code = *code_ptr;
116 static void BeginEnum(const std::string class_name, std::string *code_ptr) {
117 std::string &code = *code_ptr;
122 static void EnumMember(const EnumVal ev, std::string *code_ptr) {
123 std::string &code = *code_ptr;
131 static void EndEnum(std::string *code_ptr) {
132 std::string &code = *code_ptr;
138 std::string *code_ptr) {
139 std::string &code = *code_ptr;
159 std::string *code_ptr) {
160 std::string &code = *code_ptr;
177 std::string *code_ptr) {
178 std::string &code = *code_ptr;
195 std::string *code_ptr) {
196 std::string &code = *code_ptr;
199 code += Indent + " * @return string\n";
211 std::string *code_ptr) {
212 std::string &code = *code_ptr;
213 std::string getter = GenGetter(field.value.type);
234 void GetScalarFieldOfTable(const FieldDef &field, std::string *code_ptr) {
235 std::string &code = *code_ptr;
236 std::string getter = GenGetter(field.value.type);
257 void GetStructFieldOfStruct(const FieldDef &field, std::string *code_ptr) {
258 std::string &code = *code_ptr;
276 void GetStructFieldOfTable(const FieldDef &field, std::string *code_ptr) {
277 std::string &code = *code_ptr;
301 // Get the value of a string.
302 void GetStringField(const FieldDef &field, std::string *code_ptr) {
303 std::string &code = *code_ptr;
319 void GetUnionField(const FieldDef &field, std::string *code_ptr) {
320 std::string &code = *code_ptr;
339 const FieldDef &field, std::string *code_ptr) {
340 std::string &code = *code_ptr;
402 std::string *code_ptr) {
403 std::string &code = *code_ptr;
437 std::string *code_ptr) {
438 std::string &code = *code_ptr;
463 std::string *code_ptr) {
477 std::string &code = *code_ptr;
478 code += (std::string)", $" + nameprefix;
488 std::string *code_ptr) {
489 std::string &code = *code_ptr;
514 std::string *code_ptr) {
515 std::string &code = *code_ptr;
581 std::string *code_ptr) {
582 std::string &code = *code_ptr;
615 std::string *code_ptr) {
616 std::string &code = *code_ptr;
667 void GetEndOffsetOnTable(const StructDef &struct_def, std::string *code_ptr) {
668 std::string &code = *code_ptr;
711 std::string *code_ptr) {
759 void GenTableBuilders(const StructDef &struct_def, std::string *code_ptr) {
770 std::string &code = *code_ptr;
791 std::string *code_ptr) {
803 std::string &code = *code_ptr;
858 static void GenEnum(const EnumDef &enum_def, std::string *code_ptr) {
871 std::string &code = *code_ptr;
892 static std::string GenGetter(const Type &type) {
904 static std::string GenMethod(const FieldDef &field) {
910 static std::string GenTypeBasic(const Type &type) {
921 std::string GenDefaultValue(const Value &value) {
949 static std::string GenTypePointer(const Type &type) {
952 return "string";
964 static std::string GenTypeGet(const Type &type) {
972 std::string *code_ptr) {
973 std::string &code = *code_ptr;
993 bool GeneratePhp(const Parser &parser, const std::string &path,
994 const std::string &file_name) {