DataProtocol: Reimplement firstRange(of:in:)/lastRange(of:in:) to fix SR-10689.
DataProtocol: Reimplement firstRange(of:in:)/lastRange(of:in:) to fix SR-10689.

apple/swift-corelibs-foundation,apple/swift-corelibs-foundation,apple/swift-corelibs-foundation,apple/swift-corelibs-foundation,apple/swift-corelibs-foundation