swift
[swift-4.0-branch][overlay] Fix Foundation extensions to Substring
#12300
Merged

[swift-4.0-branch][overlay] Fix Foundation extensions to Substring #12300

moiseev
moiseev7 years ago
  • Explanation: Fixes the NSStringAPIs on Substring that accept or return a range
  • Scope: When a substring gets bridged to NSString, it loses the initial offset,
    therefore APIs that accept or return StringIndex ranges should handle
    this case explicitly by adding/subtracting the substring start offset.
  • Risk: Minimal
  • Reviewed By: Philippe Hausler
  • Testing: Automated test suite + extra test cases
  • Directions for QA: N/A
  • Radar: rdar://problem/33873277
[overlay] Fix Foundation extensions to Substring
3e4a9d86
moiseev
moiseev7 years ago

@swift-ci Please test

moiseev moiseev merged 31cb83a1 into swift-4.0-branch 7 years ago
moiseev moiseev deleted the ns-substring-4 branch 7 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone