[stdlib] Replace usage of UTF8._numTrailingBytes()
[stdlib] Replace usage of UTF8._numTrailingBytes()

The checks are technically different (previous check only rejected malformed initial code units, not all malformed sequences). Which is more correct is debatable, but since _buffer is only filled by transcoding from UTF-16 it should always be well-formed anyway and the difference is not very relevant.

johnno1962d/swift,shajrawi/swift,KrishMunot/swift,bitjammer/swift,manavgabhawala/swift,nathawes/swift,russbishop/swift,aschwaighofer/swift,arvedviehweger/swift,russbishop/swift,nathawes/swift,tkremenek/swift,kstaring/swift,jtbandes/swift,jmgc/swift,manavgabhawala/swift,felix91gr/swift,milseman/swift,allevato/swift,jtbandes/swift,jtbandes/swift,tardieu/swift,jmgc/swift,SwiftAndroid/swift,johnno1962d/swift,airspeedswift/swift,stephentyrone/swift,jtbandes/swift,atrick/swift,gribozavr/swift,SwiftAndroid/swift,JGiola/swift,lorentey/swift,gmilos/swift,gottesmm/swift,jopamer/swift,dduan/swift,danielmartin/swift,CodaFi/swift,practicalswift/swift,allevato/swift,zisko/swift,ken0nek/swift,austinzheng/swift,roambotics/swift,alblue/swift,airspeedswift/swift,SwiftAndroid/swift,jckarter/swift,apple/swift,IngmarStein/swift,return/swift,parkera/swift,ken0nek/swift,russbishop/swift,huonw/swift,huonw/swift,stephentyrone/swift,tardieu/swift,ben-ng/swift,return/swift,codestergit/swift,huonw/swift,glessard/swift,brentdax/swift,modocache/swift,airspeedswift/swift,JGiola/swift,KrishMunot/swift,harlanhaskins/swift,practicalswift/swift,kstaring/swift,ken0nek/swift,IngmarStein/swift,tjw/swift,swiftix/swift,deyton/swift,hooman/swift,JGiola/swift,atrick/swift,calebd/swift,tjw/swift,manavgabhawala/swift,frootloops/swift,JaSpa/swift,nathawes/swift,jckarter/swift,SwiftAndroid/swift,therealbnut/swift,IngmarStein/swift,gribozavr/swift,calebd/swift,johnno1962d/swift,zisko/swift,apple/swift,felix91gr/swift,allevato/swift,gribozavr/swift,danielmartin/swift,ahoppen/swift,russbishop/swift,tinysun212/swift-windows,OscarSwanros/swift,arvedviehweger/swift,rudkx/swift,lorentey/swift,sschiau/swift,alblue/swift,devincoughlin/swift,calebd/swift,roambotics/swift,jckarter/swift,lorentey/swift,Jnosh/swift,atrick/swift,tinysun212/swift-windows,jmgc/swift,roambotics/swift,airspeedswift/swift,alblue/swift,natecook1000/swift,danielmartin/swift,amraboelela/swift,hughbe/swift,kperryua/swift,jmgc/swift,gribozavr/swift,tinysun212/swift-windows,allevato/swift,glessard/swift,Jnosh/swift,shahmishal/swift,apple/swift,russbishop/swift,CodaFi/swift,alblue/swift,felix91gr/swift,austinzheng/swift,hooman/swift,jckarter/swift,return/swift,djwbrown/swift,devincoughlin/swift,devincoughlin/swift,lorentey/swift,jmgc/swift,danielmartin/swift,arvedviehweger/swift,OscarSwanros/swift,stephentyrone/swift,gmilos/swift,gottesmm/swift,harlanhaskins/swift,codestergit/swift,ahoppen/swift,stephentyrone/swift,xwu/swift,benlangmuir/swift,return/swift,OscarSwanros/swift,gregomni/swift,dduan/swift,sschiau/swift,dduan/swift,shajrawi/swift,calebd/swift,uasys/swift,harlanhaskins/swift,gregomni/swift,sschiau/swift,swiftix/swift,Jnosh/swift,codestergit/swift,OscarSwanros/swift,jtbandes/swift,kperryua/swift,milseman/swift,modocache/swift,austinzheng/swift,jtbandes/swift,bitjammer/swift,jopamer/swift,OscarSwanros/swift,roambotics/swift,therealbnut/swift,milseman/swift,amraboelela/swift,jopamer/swift,shahmishal/swift,shajrawi/swift,benlangmuir/swift,practicalswift/swift,hughbe/swift,alblue/swift,stephentyrone/swift,tjw/swift,sschiau/swift,karwa/swift,harlanhaskins/swift,SwiftAndroid/swift,frootloops/swift,karwa/swift,shahmishal/swift,practicalswift/swift,IngmarStein/swift,huonw/swift,amraboelela/swift,jckarter/swift,uasys/swift,hooman/swift,kperryua/swift,kstaring/swift,benlangmuir/swift,JaSpa/swift,aschwaighofer/swift,therealbnut/swift,rudkx/swift,felix91gr/swift,brentdax/swift,Jnosh/swift,therealbnut/swift,hooman/swift,frootloops/swift,tinysun212/swift-windows,johnno1962d/swift,deyton/swift,karwa/swift,xedin/swift,frootloops/swift,atrick/swift,manavgabhawala/swift,uasys/swift,IngmarStein/swift,lorentey/swift,ben-ng/swift,kstaring/swift,amraboelela/swift,jtbandes/swift,modocache/swift,swiftix/swift,shajrawi/swift,aschwaighofer/swift,djwbrown/swift,JaSpa/swift,kperryua/swift,swiftix/swift,johnno1962d/swift,ben-ng/swift,austinzheng/swift,apple/swift,shahmishal/swift,practicalswift/swift,airspeedswift/swift,deyton/swift,natecook1000/swift,glessard/swift,tardieu/swift,gribozavr/swift,russbishop/swift,gottesmm/swift,hooman/swift,lorentey/swift,russbishop/swift,KrishMunot/swift,stephentyrone/swift,huonw/swift,shahmishal/swift,xwu/swift,return/swift,codestergit/swift,gregomni/swift,deyton/swift,djwbrown/swift,ken0nek/swift,natecook1000/swift,amraboelela/swift,modocache/swift,hughbe/swift,karwa/swift,IngmarStein/swift,jopamer/swift,uasys/swift,sschiau/swift,harlanhaskins/swift,xedin/swift,CodaFi/swift,swiftix/swift,austinzheng/swift,CodaFi/swift,parkera/swift,jckarter/swift,frootloops/swift,alblue/swift,tardieu/swift,sschiau/swift,harlanhaskins/swift,calebd/swift,felix91gr/swift,KrishMunot/swift,nathawes/swift,xedin/swift,deyton/swift,bitjammer/swift,nathawes/swift,practicalswift/swift,CodaFi/swift,kstaring/swift,gribozavr/swift,calebd/swift,gmilos/swift,aschwaighofer/swift,Jnosh/swift,arvedviehweger/swift,stephentyrone/swift,parkera/swift,tinysun212/swift-windows,milseman/swift,IngmarStein/swift,xedin/swift,hughbe/swift,allevato/swift,tjw/swift,huonw/swift,return/swift,KrishMunot/swift,shahmishal/swift,KrishMunot/swift,milseman/swift,Jnosh/swift,natecook1000/swift,calebd/swift,kperryua/swift,ben-ng/swift,johnno1962d/swift,dreamsxin/swift,arvedviehweger/swift,gottesmm/swift,xwu/swift,jmgc/swift,kperryua/swift,karwa/swift,tinysun212/swift-windows,xedin/swift,lorentey/swift,nathawes/swift,felix91gr/swift,ken0nek/swift,dduan/swift,ben-ng/swift,tinysun212/swift-windows,gregomni/swift,therealbnut/swift,modocache/swift,natecook1000/swift,codestergit/swift,lorentey/swift,tkremenek/swift,JaSpa/swift,tardieu/swift,sschiau/swift,atrick/swift,swiftix/swift,xedin/swift,aschwaighofer/swift,modocache/swift,djwbrown/swift,karwa/swift,devincoughlin/swift,jopamer/swift,JaSpa/swift,ken0nek/swift,arvedviehweger/swift,devincoughlin/swift,ben-ng/swift,devincoughlin/swift,danielmartin/swift,rudkx/swift,frootloops/swift,kperryua/swift,amraboelela/swift,dduan/swift,aschwaighofer/swift,milseman/swift,rudkx/swift,shahmishal/swift,ahoppen/swift,therealbnut/swift,dreamsxin/swift,milseman/swift,devincoughlin/swift,tjw/swift,tkremenek/swift,shajrawi/swift,shahmishal/swift,deyton/swift,tkremenek/swift,brentdax/swift,Jnosh/swift,bitjammer/swift,uasys/swift,zisko/swift,frootloops/swift,xwu/swift,apple/swift,devincoughlin/swift,tardieu/swift,gregomni/swift,jckarter/swift,OscarSwanros/swift,tkremenek/swift,alblue/swift,xedin/swift,parkera/swift,gmilos/swift,zisko/swift,return/swift,JGiola/swift,gregomni/swift,aschwaighofer/swift,JaSpa/swift,hooman/swift,benlangmuir/swift,practicalswift/swift,sschiau/swift,djwbrown/swift,gmilos/swift,shajrawi/swift,gottesmm/swift,tjw/swift,modocache/swift,tardieu/swift,zisko/swift,austinzheng/swift,danielmartin/swift,rudkx/swift,nathawes/swift,gottesmm/swift,karwa/swift,xedin/swift,tkremenek/swift,hooman/swift,felix91gr/swift,xwu/swift,uasys/swift,xwu/swift,brentdax/swift,brentdax/swift,benlangmuir/swift,harlanhaskins/swift,hughbe/swift,bitjammer/swift,parkera/swift,ahoppen/swift,glessard/swift,natecook1000/swift,hughbe/swift,allevato/swift,bitjammer/swift,zisko/swift,ahoppen/swift,roambotics/swift,austinzheng/swift,CodaFi/swift,johnno1962d/swift,airspeedswift/swift,dduan/swift,manavgabhawala/swift,therealbnut/swift,deyton/swift,benlangmuir/swift,gribozavr/swift,djwbrown/swift,hughbe/swift,dduan/swift,OscarSwanros/swift,danielmartin/swift,parkera/swift,karwa/swift,codestergit/swift,CodaFi/swift,SwiftAndroid/swift,gmilos/swift,manavgabhawala/swift,gottesmm/swift,glessard/swift,JaSpa/swift,shajrawi/swift,practicalswift/swift,brentdax/swift,parkera/swift,jopamer/swift,JGiola/swift,ken0nek/swift,natecook1000/swift,amraboelela/swift,arvedviehweger/swift,tjw/swift,kstaring/swift,manavgabhawala/swift,rudkx/swift,apple/swift,KrishMunot/swift,xwu/swift,roambotics/swift,SwiftAndroid/swift,JGiola/swift,jmgc/swift,parkera/swift,glessard/swift,gribozavr/swift,shajrawi/swift,uasys/swift,gmilos/swift,allevato/swift,atrick/swift,brentdax/swift,airspeedswift/swift,zisko/swift,tkremenek/swift,codestergit/swift,ben-ng/swift,bitjammer/swift,swiftix/swift,ahoppen/swift,huonw/swift,kstaring/swift,jopamer/swift,djwbrown/swift