Home
last modified time | relevance | path

Searched refs:NumToString (Results 1 – 22 of 22) sorted by relevance

/external/flatbuffers/src/
Didl_gen_php.cpp127 code += NumToString(ev.value) + ";\n"; in EnumMember()
186 code += NumToString(field.value.offset) + ");\n"; in GetVectorLen()
203 code += NumToString(field.value.offset) + ");\n"; in GetUByte()
225 code += NumToString(field.value.offset) + ")"; in GetScalarFieldOfStruct()
244 NumToString(field.value.offset) + ");\n" + Indent + Indent + in GetScalarFieldOfTable()
266 code += NumToString(field.value.offset) + ", $this->bb);"; in GetStructFieldOfStruct()
283 NumToString(field.value.offset) + ");\n"; in GetStructFieldOfTable()
303 NumToString(field.value.offset) + ");\n"; in GetStringField()
321 NumToString(field.value.offset) + ");\n"; in GetUnionField()
341 NumToString(field.value.offset) + ");\n"; in GetMemberOfVectorOfStruct()
[all …]
Didl_gen_lobster.cpp59 auto bits = NumToString(SizeOf(type.base_type) * 8); in GenTypeName()
98 auto offsets = NumToString(field.value.offset); in GenStructAccessor()
135 ") + i * " + NumToString(InlineSize(vectortype)); in GenStructAccessor()
147 ") + i * " + NumToString(InlineSize(vectortype)) + ")\n"; in GenStructAccessor()
179 NumToString(struct_def.fields.vec.size()) + ")\n"; in GenTableBuilders()
189 NumToString(offset) + ", " + NormalizedName(field) + ", " + in GenTableBuilders()
198 code += NumToString(elem_size) + ", n_, " + NumToString(alignment) + in GenTableBuilders()
206 NumToString(elem_size) + ", v_.length, " + in GenTableBuilders()
207 NumToString(alignment) + in GenTableBuilders()
267 NumToString(ev.value); in GenEnum()
[all …]
Didl_gen_general.cpp477 return NumToString(static_cast<int64_t>(defaultValue)) + longSuffix; in GenDefaultValue()
556 code += NumToString(ev.value); in GenEnum()
690 code += NumToString(struct_def.minalign) + ", "; in GenStructBody()
691 code += NumToString(struct_def.bytesize) + ");\n"; in GenStructBody()
697 code += NumToString(field.padding) + ");\n"; in GenStructBody()
727 NumToString(key_field->value.offset) + ", "; in GenOffsetGetter()
921 NumToString(field.value.offset) + in GenStruct()
976 code += NumToString(field.value.offset) + ")"; in GenStruct()
995 code += "bb_pos + " + NumToString(field.value.offset) + ", "; in GenStruct()
1040 NumToString(InlineSize(vectortype)); in GenStruct()
[all …]
Didl_gen_dart.cpp245 NumToString(enum_def.vals.vec.front()->value) + ";\n"; in GenEnum()
247 NumToString(enum_def.vals.vec.back()->value) + ";\n"; in GenEnum()
263 code += "const " + name + "._(" + NumToString(ev.value) + ");\n"; in GenEnum()
270 code += NumToString(ev.value) + ": " + ev.name + ","; in GenEnum()
511 code += " case " + NumToString(ev.value) + ": return " + in GenImplementationGetters()
513 NumToString(field.value.offset) + ", null);\n"; in GenImplementationGetters()
532 ".read(_bc, _bcOffset + " + NumToString(field.value.offset) + ")"; in GenImplementationGetters()
535 NumToString(field.value.offset) + ", "; in GenImplementationGetters()
595 code += " int get size => " + NumToString(struct_def.bytesize) + ";\n\n"; in GenReader()
652 code += " fbBuilder.pad(" + NumToString(field.padding) + ");\n"; in StructBuilderBody()
[all …]
Didl_gen_go.cpp122 NumToString(field.value.offset) + "))\n\tif o != 0 {\n"; in OffsetPrefix()
165 code += NumToString(ev.value) + "\n"; in EnumMember()
280 code += NumToString(field.value.offset) + "))\n}\n"; in GetScalarFieldOfStruct()
313 code += NumToString(field.value.offset) + ")"; in GetStructFieldOfStruct()
382 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct()
407 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct()
464 code += "\tbuilder.Prep(" + NumToString(struct_def.minalign) + ", "; in StructBuilderBody()
465 code += NumToString(struct_def.bytesize) + ")\n"; in StructBuilderBody()
470 code += "\tbuilder.Pad(" + NumToString(field.padding) + ")\n"; in StructBuilderBody()
493 code += NumToString(struct_def.fields.vec.size()); in GetStartOfTable()
[all …]
Didl_gen_python.cpp84 "(self._tab.Offset(" + NumToString(field.value.offset) + "))\n" + in OffsetPrefix()
120 code += NumToString(ev.value) + "\n"; in EnumMember()
181 code += NumToString(field.value.offset) + "))\n"; in GetScalarFieldOfStruct()
221 code += NumToString(field.value.offset) + ")"; in GetStructFieldOfStruct()
297 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct()
325 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct()
406 code += " builder.Prep(" + NumToString(struct_def.minalign) + ", "; in StructBuilderBody()
407 code += NumToString(struct_def.bytesize) + ")\n"; in StructBuilderBody()
412 code += " builder.Pad(" + NumToString(field.padding) + ")\n"; in StructBuilderBody()
435 code += NumToString(struct_def.fields.vec.size()); in GetStartOfTable()
[all …]
Didl_gen_lua.cpp77 "local o = " + SelfData + ":Offset(" + NumToString(field.value.offset) + ")\n" + in OffsetPrefix()
114 code += std::string(Indent) + NormalizedName(ev) + " = " + NumToString(ev.value) + ",\n"; in EnumMember()
182 code += std::string(SelfDataPos) + " + " + NumToString(field.value.offset) + ")\n"; in GetScalarFieldOfStruct()
224 code += NumToString(field.value.offset) + ")\n"; in GetStructFieldOfStruct()
302 code += NumToString(InlineSize(vectortype)) + ")\n"; in GetMemberOfVectorOfStruct()
329 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct()
382 code += std::string(Indent) + "builder:Prep(" + NumToString(struct_def.minalign) + ", "; in StructBuilderBody()
383 code += NumToString(struct_def.bytesize) + ")\n"; in StructBuilderBody()
388 code += std::string(Indent) + "builder:Pad(" + NumToString(field.padding) + ")\n"; in StructBuilderBody()
413 code += NumToString(struct_def.fields.vec.size()); in GetStartOfTable()
[all …]
Didl_gen_js_ts.cpp359 code += NumToString(ev.value); in GenEnum()
366 code += NumToString(ev.value); in GenEnum()
460 NumToString(static_cast<int32_t>(constant)) + ", " + in GenDefaultValue()
461 NumToString(static_cast<int32_t>(constant >> 32)) + ")"; in GenDefaultValue()
513 return value != 0 ? " + " + NumToString(value) : ""; in MaybeAdd()
517 return value != 1 ? " * " + NumToString(value) : ""; in MaybeScale()
585 *body += NumToString(struct_def.minalign) + ", "; in GenStructBody()
586 *body += NumToString(struct_def.bytesize) + ");\n"; in GenStructBody()
592 *body += " builder.pad(" + NumToString(field.padding) + ");\n"; in GenStructBody()
738 NumToString(field.value.offset) + ");\n return offset ? "; in GenStruct()
[all …]
Didl_parser.cpp106 "(" + NumToString(line_) + ", " + NumToString(CursorPosition()) + ")"; in Message()
109 error_ += NumToString(line_) + ": " + NumToString(CursorPosition()); in Message()
126 NumToString(FLATBUFFERS_MAX_PARSING_DEPTH) + " reached"); in RecurseError()
151 NumToString(flatbuffers::numeric_limits<T>::lowest()) + "; " + in atot()
152 NumToString(flatbuffers::numeric_limits<T>::max()) + "]")); in atot()
226 return Error("escape code must be followed by " + NumToString(nibbles) + in ParseHexNum()
479 if (false == check_in_range(c, ' ', '~')) ch = "code: " + NumToString(c); in Next()
823 val->constant = NumToString(id - 1); in ParseField()
835 val.constant = NumToString(builder_.CreateString(s).o); in ParseString()
900 val.constant = NumToString(builder_.GetSize()); in ParseAnyValue()
[all …]
Didl_gen_rust.cpp600 code_.SetValue("VALUE", NumToString(ev.value)); in GenEnum()
615 code_.SetValue("ENUM_MIN_BASE_VALUE", NumToString(minv->value)); in GenEnum()
616 code_.SetValue("ENUM_MAX_BASE_VALUE", NumToString(maxv->value)); in GenEnum()
658 auto num_fields = NumToString(enum_def.vals.vec.size()); in GenEnum()
685 NumToString(range) + "] = ["; in GenEnum()
1234 code_.SetValue("OFFSET_VALUE", NumToString(field.value.offset)); in GenTable()
1438 code_.SetValue("NUM_FIELDS", NumToString(struct_def.fields.vec.size())); in GenTable()
1587 *code_ptr += " padding" + NumToString((*id)++) + "__: u" + \ in PaddingDefinition()
1588 NumToString(bits) + ","; in PaddingDefinition()
1593 *code_ptr += "padding" + NumToString((*id)++) + "__: 0,"; in PaddingInitializer()
[all …]
Didl_gen_cpp.cpp772 code_.SetValue("NUM_FIELDS", NumToString(num_fields)); in GenMiniReflect()
824 NumToString(is_vector) + ", " + NumToString(ref_idx) + " }"; in GenMiniReflect()
842 vs += NumToString(ev.value); in GenMiniReflect()
848 vs += NumToString(field.value.offset); in GenMiniReflect()
851 vs += NumToString(struct_def->bytesize); in GenMiniReflect()
911 code_.SetValue("VALUE", NumToString(ev.value)); in GenEnum()
930 code_.SetValue("VALUE", NumToString(anyv)); in GenEnum()
951 auto num_fields = NumToString(enum_def.vals.vec.size()); in GenEnum()
1727 code_.SetValue("OFFSET_VALUE", NumToString(field.value.offset)); in GenTable()
2567 *code_ptr += " int" + NumToString(bits) + "_t padding" + in PaddingDefinition()
[all …]
Didl_gen_fbs.cpp106 schema += " " + ev.name + " = " + NumToString(ev.value) + ",\n"; in GenerateFBS()
Dreflection.cpp68 case reflection::Double: return NumToString(GetAnyValueF(type, data)); in GetAnyValueS()
112 default: return NumToString(GetAnyValueI(type, data)); in GetAnyValueS()
Didl_gen_text.cpp66 text += NumToString(val); in Print()
/external/flatbuffers/include/flatbuffers/
Dutil.h113 template<typename T> std::string NumToString(T t) { in NumToString() function
127 template<> inline std::string NumToString<signed char>(signed char t) {
128 return NumToString(static_cast<int>(t));
130 template<> inline std::string NumToString<unsigned char>(unsigned char t) {
131 return NumToString(static_cast<int>(t));
133 template<> inline std::string NumToString<char>(char t) {
134 return NumToString(static_cast<int>(t));
137 template<> inline std::string NumToString<long long>(long long t) {
144 inline std::string NumToString<unsigned long long>(unsigned long long t) {
179 template<> inline std::string NumToString<double>(double t) {
[all …]
Dminireflect.h332 s += NumToString(x); in Named()
343 void Long(int64_t x) { s += NumToString(x); } in Long()
344 void ULong(uint64_t x) { s += NumToString(x); } in ULong()
345 void Float(float x) { s += NumToString(x); } in Float()
346 void Double(double x) { s += NumToString(x); } in Double()
Dflexbuffers.h523 s += flatbuffers::NumToString(AsInt64()); in ToString()
525 s += flatbuffers::NumToString(AsUInt64()); in ToString()
527 s += flatbuffers::NumToString(AsDouble()); in ToString()
/external/flatbuffers/tests/
Dtest_assert.h63 TestFail(flatbuffers::NumToString(expval).c_str(),
64 flatbuffers::NumToString(val).c_str(), exp, file, line, func);
Dtest.cpp1090 std::string definition_name = "D" + flatbuffers::NumToString(definition); in FuzzTest2()
1107 std::string field_name = "f" + flatbuffers::NumToString(field); in FuzzTest2()
1139 ("D" + flatbuffers::NumToString(defref)).c_str(), in FuzzTest2()
1161 ? flatbuffers::NumToString<double>(lcg_rand() % 128) in FuzzTest2()
1163 : flatbuffers::NumToString<int>(lcg_rand() % 128).c_str(); in FuzzTest2()
1172 schema += "root_type D" + flatbuffers::NumToString(num_definitions - 1); in FuzzTest2()
/external/pdfium/xfa/fgas/crt/
Dcfgas_formatstring.cpp557 WideString NumToString(size_t fmt_size, int32_t value) { in NumToString() function
591 wsResult += NumToString(symbol.GetLength(), day); in DateFormat()
597 wsResult += NumToString(symbol.GetLength(), nDays); in DateFormat()
599 wsResult += NumToString(symbol.GetLength(), month); in DateFormat()
604 wsResult += NumToString( in DateFormat()
612 wsResult += NumToString(2, year % 100); in DateFormat()
614 wsResult += NumToString(1, year); in DateFormat()
616 wsResult += NumToString(1, GetWeekOfMonth(year, month, day)); in DateFormat()
618 wsResult += NumToString(2, GetWeekOfYear(year, month, day)); in DateFormat()
663 wsResult += NumToString(symbol.GetLength(), wHour == 0 ? 12 : wHour); in TimeFormat()
[all …]
/external/flatbuffers/grpc/src/compiler/
Dcpp_generator.cc1667 flatbuffers::NumToString(3 + async_prefix.extra_method_param_count); in PrintMockClientMethods()
1685 flatbuffers::NumToString(3 + async_prefix.extra_method_param_count); in PrintMockClientMethods()
1704 flatbuffers::NumToString(2 + async_prefix.extra_method_param_count); in PrintMockClientMethods()
Djava_generator.cc29 #define to_string flatbuffers::NumToString