Home
last modified time | relevance | path

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

12

/external/flatbuffers/src/
Didl_gen_json_schema.cpp54 NumToString(std::numeric_limits<int8_t>::min()) + in GenType()
56 NumToString(std::numeric_limits<int8_t>::max()); in GenType()
59 NumToString(std::numeric_limits<uint8_t>::max()); in GenType()
62 NumToString(std::numeric_limits<int16_t>::min()) + in GenType()
64 NumToString(std::numeric_limits<int16_t>::max()); in GenType()
67 NumToString(std::numeric_limits<uint16_t>::max()); in GenType()
70 NumToString(std::numeric_limits<int32_t>::min()) + in GenType()
72 NumToString(std::numeric_limits<int32_t>::max()); in GenType()
75 NumToString(std::numeric_limits<uint32_t>::max()); in GenType()
78 NumToString(std::numeric_limits<int64_t>::min()) + in GenType()
[all …]
Didl_gen_php.cpp187 code += NumToString(field.value.offset) + ");\n"; in GetVectorLen()
204 code += NumToString(field.value.offset) + ");\n"; in GetUByte()
226 code += NumToString(field.value.offset) + ")"; in GetScalarFieldOfStruct()
244 NumToString(field.value.offset) + ");\n" + Indent + Indent + in GetScalarFieldOfTable()
267 code += NumToString(field.value.offset) + ", $this->bb);"; in GetStructFieldOfStruct()
285 NumToString(field.value.offset) + ");\n"; in GetStructFieldOfTable()
305 NumToString(field.value.offset) + ");\n"; in GetStringField()
323 NumToString(field.value.offset) + ");\n"; in GetUnionField()
343 NumToString(field.value.offset) + ");\n"; in GetMemberOfVectorOfStruct()
353 NumToString(field.value.offset) + ", $this->bb) : null;\n"; in GetMemberOfVectorOfStruct()
[all …]
Dbfbs_gen_lua.cpp113 NumToString(enum_val->value()) + ",\n"; in GenerateEnums()
185 NumToString(field->offset()) + ")\n"; in GenerateObjects()
198 "self.view.pos + " + NumToString(field->offset()) + ")\n"; in GenerateObjects()
230 NumToString(field->offset()) + ")\n"; in GenerateObjects()
286 " x = x + ((j-1) * " + NumToString(element_size) + ")\n"; in GenerateObjects()
307 "a + ((j-1) * " + NumToString(element_size) + "))\n"; in GenerateObjects()
326 NumToString(field->offset()) + ", start, stop)\n"; in GenerateObjects()
363 NumToString(object->fields()->size()) + ")\n"; in GenerateObjects()
377 NumToString(field->id()) + ", " + variable_name + ", " + in GenerateObjects()
395 NumToString(element_size) + ", numElems, " + in GenerateObjects()
[all …]
Didl_gen_lobster.cpp62 auto bits = NumToString(SizeOf(type.base_type) * 8); in GenTypeName()
109 auto offsets = NumToString(field.value.offset); in GenStructAccessor()
158 ") + i * " + NumToString(InlineSize(vectortype)); in GenStructAccessor()
174 ") + i * " + NumToString(InlineSize(vectortype)) + ")\n"; in GenStructAccessor()
207 NumToString(struct_def.fields.vec.size()) + in GenTableBuilders()
217 NumToString(offset) + ", " + NormalizedName(field); in GenTableBuilders()
235 NumToString(elem_size) + ", n_, " + NumToString(alignment) + ")\n"; in GenTableBuilders()
242 NumToString(elem_size) + ", v_.length, " + in GenTableBuilders()
243 NumToString(alignment) + ")\n reverse(v_) e_: b_.Prepend" + in GenTableBuilders()
332 code += " b_.Prep(" + NumToString(struct_def.minalign) + ", " + in StructBuilderBody()
[all …]
Didl_gen_csharp.cpp548 code += NumToString(struct_def.minalign) + ", "; in GenStructBody()
549 code += NumToString(struct_def.bytesize) + ");\n"; in GenStructBody()
556 code += NumToString(field.padding) + ");\n"; in GenStructBody()
565 const auto index_var = "_idx" + NumToString(index); in GenStructBody()
568 code += NumToString(field_type.fixed_length); in GenStructBody()
587 code += "_idx" + NumToString(i) + "-1"; in GenStructBody()
601 "Table.__offset(" + NumToString(key_field->value.offset) + ", "; in GenOffsetGetter()
734 : (" { int o = __p.__offset(" + NumToString(field.value.offset) + in GenStruct()
772 code += NumToString(field.value.offset) + ")"; in GenStruct()
787 code += "bb_pos + " + NumToString(field.value.offset) + ", "; in GenStruct()
[all …]
Didl_gen_java.cpp351 return NumToString(static_cast<int64_t>(defaultValue)) + longSuffix; in GenDefaultValue()
533 code += NumToString(struct_def.minalign) + ", "; in GenStructBody()
534 code += NumToString(struct_def.bytesize) + ");\n"; in GenStructBody()
541 code += NumToString(field.padding) + ");\n"; in GenStructBody()
550 const auto index_var = "_idx" + NumToString(index); in GenStructBody()
553 code += NumToString(field_type.fixed_length); in GenStructBody()
570 code += "[_idx" + NumToString(i) + "-1]"; in GenStructBody()
582 key_offset += "__offset(" + NumToString(key_field->value.offset) + ", "; in GenOffsetGetter()
736 : (" { int o = __offset(" + NumToString(field.value.offset) + in GenStruct()
764 code += NumToString(field.value.offset) + ")"; in GenStruct()
[all …]
Didl_gen_lua.cpp58 NumToString(field.value.offset) + ")\n" + Indent + in OffsetPrefix()
176 code += std::string(SelfDataPos) + " + " + NumToString(field.value.offset) + in GetScalarFieldOfStruct()
215 code += NumToString(field.value.offset) + ")\n"; in GetStructFieldOfStruct()
302 code += NumToString(InlineSize(vectortype)) + ")\n"; in GetMemberOfVectorOfStruct()
333 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct()
351 NumToString(field.value.offset) + ", start, stop)\n"; in AccessByteVectorAsString()
398 NumToString(struct_def.minalign) + ", "; in StructBuilderBody()
399 code += NumToString(struct_def.bytesize) + ")\n"; in StructBuilderBody()
405 NumToString(field.padding) + ")\n"; in StructBuilderBody()
431 code += NumToString(struct_def.fields.vec.size()); in GetStartOfTable()
[all …]
Didl_gen_python.cpp89 "(self._tab.Offset(" + NumToString(field.value.offset) + "))\n" + in OffsetPrefix()
182 "(self._tab.Offset(" + NumToString(field.value.offset) + "))"; in GetVectorIsNone()
197 code += NumToString(field.value.offset) + "))\n"; in GetScalarFieldOfStruct()
236 code += NumToString(field.value.offset) + ")"; in GetStructFieldOfStruct()
250 code += NumToString(field.value.offset) + " + i * "; in GetArrayOfStruct()
251 code += NumToString(InlineSize(vec_type)); in GetArrayOfStruct()
257 code += NumToString(field.value.offset) + " + i * "; in GetArrayOfStruct()
258 code += NumToString(InlineSize(vec_type)); in GetArrayOfStruct()
260 code += NumToString(field.value.type.fixed_length) + ")]\n"; in GetArrayOfStruct()
352 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct()
[all …]
Didl_gen_dart.cpp564 std::string offset = NumToString(field.value.offset); in GenStructObjectAPIUnpack()
655 NumToString(field.value.offset) + ");\n"; in GenImplementationGetters()
673 ".read(_bc, _bcOffset + " + NumToString(field.value.offset) + ")"; in GenImplementationGetters()
676 std::string offset = NumToString(field.value.offset); in GenImplementationGetters()
758 code += " int get size => " + NumToString(struct_def.bytesize) + ";\n\n"; in GenReader()
813 code += " fbBuilder.pad(" + NumToString(field.padding) + ");\n"; in StructBuilderBody()
835 NumToString(struct_def.fields.vec.size()) + ");\n"; in TableBuilderBody()
851 NumToString(offset) + ", "; in TableBuilderBody()
858 " fbBuilder.addStruct(" + NumToString(offset) + ", offset);\n"; in TableBuilderBody()
862 " fbBuilder.addOffset(" + NumToString(offset) + ", offset);\n"; in TableBuilderBody()
[all …]
Didl_gen_kotlin.cpp424 writer.SetValue("align", NumToString(struct_def.minalign)); in GenStructBody()
425 writer.SetValue("size", NumToString(struct_def.bytesize)); in GenStructBody()
432 writer.SetValue("pad", NumToString(field.padding)); in GenStructBody()
456 "__offset(" + NumToString(key_field->value.offset) + ", "; in GenOffsetGetter()
525 GenerateAddField(NumToString(field_pos), field, writer, options); in GenStruct()
664 writer.SetValue("offset", NumToString(field.value.offset)); in GenerateEndStructMethod()
680 writer.SetValue("size", NumToString(InlineSize(vector_type))); in GenerateCreateVectorField()
681 writer.SetValue("align", NumToString(InlineAlignment(vector_type))); in GenerateCreateVectorField()
705 writer.SetValue("size", NumToString(InlineSize(vector_type))); in GenerateStartVectorField()
706 writer.SetValue("align", NumToString(InlineAlignment(vector_type))); in GenerateStartVectorField()
[all …]
Didl_gen_rust.cpp663 NumToString(type.fixed_length) + "]"; in GetTypeGet()
756 auto num_fields = NumToString(enum_def.size()); in GenEnum()
1238 NumToString(type.fixed_length) + "]"; in ObjectFieldType()
1243 NumToString(type.fixed_length) + "]"; in ObjectFieldType()
1248 NumToString(type.fixed_length) + "]"; in ObjectFieldType()
1323 NumToString(type.fixed_length) + ">"; in TableBuilderArgsAddFuncType()
1328 NumToString(type.fixed_length) + ">"; in TableBuilderArgsAddFuncType()
1333 NumToString(type.fixed_length) + ">"; in TableBuilderArgsAddFuncType()
1481 NumToString(length) + ">"; in FollowType()
1613 code_.SetValue("OFFSET_VALUE", NumToString(field.value.offset)); in ForAllTableFields()
[all …]
Didl_gen_go.cpp161 NumToString(field.value.offset) + "))\n\tif o != 0 {\n"; in OffsetPrefix()
373 NumToString(field.value.offset) + "))"); in GetScalarFieldOfStruct()
412 code += NumToString(field.value.offset) + ")"; in GetStructFieldOfStruct()
478 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct()
504 NumToString(InlineSize(vectortype)) + "))"); in GetMemberOfVectorOfNonStruct()
561 code += "\tbuilder.Prep(" + NumToString(struct_def.minalign) + ", "; in StructBuilderBody()
562 code += NumToString(struct_def.bytesize) + ")\n"; in StructBuilderBody()
567 code += "\tbuilder.Pad(" + NumToString(field.padding) + ")\n"; in StructBuilderBody()
592 code += NumToString(struct_def.fields.vec.size()); in GetStartOfTable()
615 code += "Slot(" + NumToString(offset) + ", "; in BuildFieldOfTable()
[all …]
Didl_gen_ts.cpp517 return value != 0 ? " + " + NumToString(value) : ""; in MaybeAdd()
521 return value != 1 ? " * " + NumToString(value) : ""; in MaybeScale()
546 *body += NumToString(struct_def.minalign) + ", "; in GenStructBody()
547 *body += NumToString(struct_def.bytesize) + ");\n"; in GenStructBody()
553 *body += " builder.pad(" + NumToString(field.padding) + ");\n"; in GenStructBody()
1369 NumToString(field.value.offset) + ");\n return offset ? "; in GenStruct()
1554 "(this.bb_pos + " + NumToString(field.value.offset) + ", "; in GenStruct()
1557 ".__offset(this.bb_pos, " + NumToString(field.value.offset) + in GenStruct()
1615 code += " return " + NumToString(struct_def.bytesize) + ";\n"; in GenStruct()
1639 NumToString(struct_def.fields.vec.size()) + ");\n"; in GenStruct()
[all …]
Didl_parser.cpp92 return "[" + NumToString((flatbuffers::numeric_limits<T>::lowest)()) + "; " + in TypeToIntervalString()
93 NumToString((flatbuffers::numeric_limits<T>::max)()) + "]"; in TypeToIntervalString()
283 if (IsInteger(e.type.base_type)) { e.constant = NumToString(val); } in SingleValueRepack()
395 "(" + NumToString(line_) + ", " + NumToString(CursorPosition()) + ")"; in Message()
398 error_ += NumToString(line_) + ": " + NumToString(CursorPosition()); in Message()
417 return Error("maximum parsing depth " + NumToString(parse_depth_counter_) + in RecurseError()
478 return Error("escape code must be followed by " + NumToString(nibbles) + in ParseHexNum()
745 ch = "code: " + NumToString(c); in Next()
1194 val->constant = NumToString(id - 1); in ParseField()
1218 val.constant = NumToString(builder_.CreateSharedString(s).o); in ParseString()
[all …]
Didl_gen_cpp.cpp343 NumToString(parser_.builder_.GetSize()) + "] = {"; in generate_bfbs_embed()
349 code_ += " return " + NumToString(parser_.builder_.GetSize()) + ";"; in generate_bfbs_embed()
953 text += NumToString(extent); in GenTypeSpan()
1073 code_.SetValue("NUM_FIELDS", NumToString(num_fields)); in GenMiniReflect()
1124 NumToString(is_vector || is_array) + ", " + NumToString(ref_idx) + in GenMiniReflect()
1134 as += NumToString(*it); in GenMiniReflect()
1158 vs += NumToString(field.value.offset); in GenMiniReflect()
1161 vs += NumToString(struct_def->bytesize); in GenMiniReflect()
1270 auto num_fields = NumToString(enum_def.size()); in GenEnum()
1296 NumToString(range + 1 + 1) + "] = {"; in GenEnum()
[all …]
Didl_gen_swift.cpp322 code_.SetValue("OFFSET", NumToString(field.value.offset)); in BuildStructConstructor()
346 const auto offset = NumToString(field.value.offset); in GenMutableStructReader()
481 code_.SetValue("OFFSET_VALUE", NumToString(field.value.offset)); in GenTableAccessors()
543 code_.SetValue("NUMBEROFFIELDS", NumToString(struct_def.fields.vec.size())); in GenTableWriter()
555 require_fields.push_back(NumToString(field.value.offset)); in GenTableWriter()
601 code_.SetValue("VOFFSET", NumToString(key_field->value.offset)); in GenTableWriter()
739 const auto offset = NumToString(field.value.offset); in GenTableReaderFields()
841 code_.SetValue("SIZE", NumToString(InlineSize(vectortype))); in GenTableReaderVectorFields()
1095 const auto offset = NumToString(field.value.offset); in GenerateVerifier()
1753 code_.SetValue("OFFSET", NumToString(key_field.value.offset)); in GenLookup()
[all …]
Dreflection.cpp307 case reflection::Double: return NumToString(GetAnyValueF(type, data)); in GetAnyValueS()
351 default: return NumToString(GetAnyValueI(type, data)); in GetAnyValueS()
Didl_gen_text.cpp90 text += NumToString(val); in PrintScalar()
/external/flatbuffers/include/flatbuffers/
Dutil.h126 template<typename T> std::string NumToString(T t) { in NumToString() function
140 template<> inline std::string NumToString<signed char>(signed char t) {
141 return NumToString(static_cast<int>(t));
143 template<> inline std::string NumToString<unsigned char>(unsigned char t) {
144 return NumToString(static_cast<int>(t));
146 template<> inline std::string NumToString<char>(char t) {
147 return NumToString(static_cast<int>(t));
178 template<> inline std::string NumToString<double>(double t) {
181 template<> inline std::string NumToString<float>(float t) {
Dminireflect.h354 s += NumToString(x); in Named()
365 void Long(int64_t x) { s += NumToString(x); } in Long()
366 void ULong(uint64_t x) { s += NumToString(x); } in ULong()
367 void Float(float x) { s += NumToString(x); } in Float()
368 void Double(double x) { s += NumToString(x); } in Double()
/external/flatbuffers/tests/
Dtest_assert.h93 TestFail(flatbuffers::NumToString(scalar_as_underlying(expval)).c_str(),
94 flatbuffers::NumToString(scalar_as_underlying(val)).c_str(), exp,
Dtest.cpp1688 std::string definition_name = "D" + flatbuffers::NumToString(definition); in FuzzTest2()
1705 std::string field_name = "f" + flatbuffers::NumToString(field); in FuzzTest2()
1737 ("D" + flatbuffers::NumToString(defref)).c_str(), in FuzzTest2()
1768 ? flatbuffers::NumToString<double>(lcg_rand() % 128) in FuzzTest2()
1770 : flatbuffers::NumToString<int>(lcg_rand() % 128).c_str(); in FuzzTest2()
1781 schema += "root_type D" + flatbuffers::NumToString(num_definitions - 1); in FuzzTest2()
2829 flatbuffers::NumToString(i + 1) + ".fbs"; in EvolutionTest()
2832 flatbuffers::NumToString(i + 1) + ".json"; in EvolutionTest()
2899 flatbuffers::NumToString(i + 1) + ".fbs"; in UnionDeprecationTest()
2902 flatbuffers::NumToString(i + 1) + ".json"; in UnionDeprecationTest()
/external/pdfium/xfa/fgas/crt/
Dcfgas_stringformatter.cpp560 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()
605 NumToString(1, symbol.EqualsASCII("E") ? wWeekDay + 1 in DateFormat()
613 wsResult += NumToString(2, year % 100); in DateFormat()
615 wsResult += NumToString(1, year); in DateFormat()
617 wsResult += NumToString(1, GetWeekOfMonth(year, month, day)); in DateFormat()
619 wsResult += NumToString(2, GetWeekOfYear(year, month, day)); in DateFormat()
662 wsResult += NumToString(symbol.GetLength(), wHour == 0 ? 12 : wHour); in TimeFormat()
[all …]
/external/flatbuffers/tests/cpp17/
Dstringify_util.h119 return flatbuffers::NumToString(val);
/external/flatbuffers/grpc/src/compiler/
Dcpp_generator.cc1651 flatbuffers::NumToString(3 + async_prefix.extra_method_param_count); in PrintMockClientMethods()
1670 flatbuffers::NumToString(3 + async_prefix.extra_method_param_count); in PrintMockClientMethods()
1690 flatbuffers::NumToString(2 + async_prefix.extra_method_param_count); in PrintMockClientMethods()

12