Lines Matching refs:v

602         if (const ValueType* v = GetMember(value, GetIdString())) {  in allocator_()  local
603 if (v->IsString()) { in allocator_()
604 UriType local(*v, allocator); in allocator_()
606 … RAPIDJSON_SCHEMA_PRINT(SchemaIds, id.GetString(), v->GetString(), id_.GetString()); in allocator_()
610 if (const ValueType* v = GetMember(value, GetTypeString())) { in allocator_() local
612 if (v->IsString()) in allocator_()
613 AddType(*v); in allocator_()
614 else if (v->IsArray()) in allocator_()
615 for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr) in allocator_()
619 if (const ValueType* v = GetMember(value, GetEnumString())) { in allocator_() local
620 if (v->IsArray() && v->Size() > 0) { in allocator_()
621 enum_ = static_cast<uint64_t*>(allocator_->Malloc(sizeof(uint64_t) * v->Size())); in allocator_()
622 for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr) { in allocator_()
641 if (const ValueType* v = GetMember(value, GetNotString())) { in allocator_() local
642 … schemaDocument->CreateSchema(&not_, p.Append(GetNotString(), allocator_), *v, document, id_); in allocator_()
699 if (const ValueType* v = GetMember(value, GetPatternPropertiesString())) { in allocator_() local
701 …s_ = static_cast<PatternProperty*>(allocator_->Malloc(sizeof(PatternProperty) * v->MemberCount())); in allocator_()
704 for (ConstMemberIterator itr = v->MemberBegin(); itr != v->MemberEnd(); ++itr) { in allocator_()
750 if (const ValueType* v = GetMember(value, GetAdditionalPropertiesString())) { in allocator_() local
751 if (v->IsBool()) in allocator_()
752 additionalProperties_ = v->GetBool(); in allocator_()
753 else if (v->IsObject()) in allocator_()
754 …tionalPropertiesSchema_, p.Append(GetAdditionalPropertiesString(), allocator_), *v, document, id_); in allocator_()
761 if (const ValueType* v = GetMember(value, GetItemsString())) { in allocator_() local
763 if (v->IsObject()) // List validation in allocator_()
764 schemaDocument->CreateSchema(&itemsList_, q, *v, document, id_); in allocator_()
765 else if (v->IsArray()) { // Tuple validation in allocator_()
766 … itemsTuple_ = static_cast<const Schema**>(allocator_->Malloc(sizeof(const Schema*) * v->Size())); in allocator_()
768 for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr, index++) in allocator_()
778 if (const ValueType* v = GetMember(value, GetAdditionalItemsString())) { in allocator_() local
779 if (v->IsBool()) in allocator_()
780 additionalItems_ = v->GetBool(); in allocator_()
781 else if (v->IsObject()) in allocator_()
782 …hema(&additionalItemsSchema_, p.Append(GetAdditionalItemsString(), allocator_), *v, document, id_); in allocator_()
791 if (const ValueType* v = GetMember(value, GetPatternString())) in allocator_() local
792 pattern_ = CreatePattern(*v, schemaDocument, p.Append(GetPatternString(), allocator_)); in allocator_()
795 if (const ValueType* v = GetMember(value, GetMinimumString())) in allocator_() local
796 if (v->IsNumber()) in allocator_()
797 minimum_.CopyFrom(*v, *allocator_); in allocator_()
799 if (const ValueType* v = GetMember(value, GetMaximumString())) in allocator_() local
800 if (v->IsNumber()) in allocator_()
801 maximum_.CopyFrom(*v, *allocator_); in allocator_()
806 if (const ValueType* v = GetMember(value, GetMultipleOfString())) in allocator_() local
807 if (v->IsNumber() && v->GetDouble() > 0.0) in allocator_()
808 multipleOf_.CopyFrom(*v, *allocator_); in allocator_()
811 if (const ValueType* v = GetMember(value, GetDefaultValueString())) in allocator_() local
812 if (v->IsString()) in allocator_()
813 defaultValueLength_ = v->GetStringLength(); in allocator_()
1284 static const ValueType v(s, static_cast<SizeType>(sizeof(s) / sizeof(Ch) - 1));\
1285 return v;\
1362 void AddUniqueElement(V1& a, const V2& v) { in AddUniqueElement() argument
1364 if (*itr == v) in AddUniqueElement()
1366 V1 c(v, *allocator_); in AddUniqueElement()
1376 if (const ValueType* v = GetMember(value, name)) in AssignIfExist() local
1377 if (v->IsBool()) in AssignIfExist()
1378 out = v->GetBool(); in AssignIfExist()
1382 if (const ValueType* v = GetMember(value, name)) in AssignIfExist() local
1383 if (v->IsUint64() && v->GetUint64() <= SizeType(~0)) in AssignIfExist()
1384 out = static_cast<SizeType>(v->GetUint64()); in AssignIfExist()
1388 if (const ValueType* v = GetMember(value, name)) { in AssignIfExist() local
1389 if (v->IsArray() && v->Size() > 0) { in AssignIfExist()
1391 out.count = v->Size(); in AssignIfExist()
1395 … schemaDocument.CreateSchema(&out.schemas[i], q.Append(i, allocator_), (*v)[i], document, id_); in AssignIfExist()
1881 else if (const ValueType* v = pointer.Get(document)) {
1882 CreateSchema(&root_, pointer, *v, document, docId_);
2054 static const StringRefType v(s, static_cast<SizeType>(sizeof(s) / sizeof(Ch) - 1)); \
2055 return v;\
2164 …ive(const SchemaType** schema, const PointerType& pointer, const ValueType& v, const ValueType& do…
2165 if (v.GetType() == kObjectType) {
2166 UriType newid = UriType(CreateSchema(schema, pointer, v, document, id), allocator_);
2168 … for (typename ValueType::ConstMemberIterator itr = v.MemberBegin(); itr != v.MemberEnd(); ++itr)
2171 else if (v.GetType() == kArrayType)
2172 for (SizeType i = 0; i < v.Size(); i++)
2173 CreateSchemaRecursive(0, pointer.Append(i, allocator_), v[i], document, id);
2177 …ema(const SchemaType** schema, const PointerType& pointer, const ValueType& v, const ValueType& do…
2182 if (v.IsObject()) {
2188 else if (!HandleRefSchema(pointer, schema, v, document, id)) {
2190 … s = new (allocator_->Malloc(sizeof(SchemaType))) SchemaType(this, pointer, v, document, allocator…
2206 …bool HandleRefSchema(const PointerType& source, const SchemaType** schema, const ValueType& v, con…
2207 typename ValueType::ConstMemberIterator itr = v.FindMember(SchemaType::GetRefString());
2208 if (itr == v.MemberEnd())
2352 for (typename ValueType::ConstValueIterator v = doc.Begin(); v != doc.End(); ++v) {
2353 if (v->GetType() == kObjectType || v->GetType() == kArrayType) {
2354 … resval = FindId(*v, finduri, resptr, localuri, full, here.Append(i, allocator_));
2782 static const StringRefType v(s, static_cast<SizeType>(sizeof(s) / sizeof(Ch) - 1)); \
2783 return v;\
2910 GenericSchemaValidator* v = static_cast<GenericSchemaValidator*>(validator);
2911 v->~GenericSchemaValidator();
2912 StateAllocator::Free(v);