You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
360
-
}
361
-
362
-
return int
354
+
returnInt(exactly: value)
363
355
}
364
356
365
357
internalfunc unbox(_ value:Any, as type:Int8.Type)throws->Int8?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
383
-
}
384
-
385
-
return int8
366
+
returnInt8(exactly: value)
386
367
}
387
368
388
369
internalfunc unbox(_ value:Any, as type:Int16.Type)throws->Int16?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
406
-
}
407
-
408
-
return int16
378
+
returnInt16(exactly: value)
409
379
}
410
380
411
381
internalfunc unbox(_ value:Any, as type:Int32.Type)throws->Int32?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
429
-
}
430
-
431
-
return int32
390
+
returnInt32(exactly: value)
432
391
}
433
392
434
393
internalfunc unbox(_ value:Any, as type:Int64.Type)throws->Int64?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
452
-
}
453
-
454
-
return int64
402
+
returnInt64(exactly: value)
455
403
}
456
404
457
405
internalfunc unbox(_ value:Any, as type:UInt.Type)throws->UInt?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
475
-
}
476
-
477
-
return uint
414
+
returnUInt(exactly: value)
478
415
}
479
416
480
417
internalfunc unbox(_ value:Any, as type:UInt8.Type)throws->UInt8?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
498
-
}
499
-
500
-
return uint8
426
+
returnUInt8(exactly: value)
501
427
}
502
428
503
429
internalfunc unbox(_ value:Any, as type:UInt16.Type)throws->UInt16?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
521
-
}
522
-
523
-
return uint16
438
+
returnUInt16(exactly: value)
524
439
}
525
440
526
441
internalfunc unbox(_ value:Any, as type:UInt32.Type)throws->UInt32?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
544
-
}
545
-
546
-
return uint32
450
+
returnUInt32(exactly: value)
547
451
}
548
452
549
453
internalfunc unbox(_ value:Any, as type:UInt64.Type)throws->UInt64?{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number <\(number)> does not fit in \(type)."))
567
-
}
568
-
569
-
return uint64
462
+
returnUInt64(exactly: value)
570
463
}
571
464
572
465
internalfunc unbox(_ value:Any, as type:Float.Type)throws->Float?{
573
466
guard !(value is NSNull)else{returnnil}
574
467
575
468
guardlet string = value as?Stringelse{returnnil}
576
469
577
-
iflet value =Double(string){
578
-
letnumber=NSNumber(value: value)
579
-
580
-
guard number !== kCFBooleanTrue, number !== kCFBooleanFalse else{
throwDecodingError.dataCorrupted(DecodingError.Context(codingPath:self.codingPath, debugDescription:"Parsed XML number \(number) does not fit in \(type)."))
587
-
}
588
-
589
-
returnFloat(double)
590
-
}elseif case let.convertFromString(posInfString, negInfString, nanString)=self.options.nonConformingFloatDecodingStrategy {
0 commit comments