<commit_before># String Revision: Collection Conformance, C Interop, Transcoding

* Proposal: [SE-0163](0163-string-revision-1.md)
* Authors: [<NAME>](https://github.com/airspeedswift), [<NAME>](http://github.com/dabrahams/)
* Review Manager: [<NAME>](https://github.com/rjmccall)
* Status: **Active review (May 11...15)**
* Revision: 2
* Previous Revision: [1](https://github.com/apple/swift-evolution/blob/7513547ddac66b06770a1fd620aad915d75987ff/proposals/0163-string-revision-1.md)
* Decision Notes: [Rationale](https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170417/035919.html)

## Introduction

This proposal is to implement a subset of the changes from the [Swift 4
String
Manifesto](https://github.com/apple/swift/blob/master/docs/StringManifesto.md).

Specifically:

 * Make `String` conform to `BidirectionalCollection`
 * Make `String` conform to `RangeReplaceableCollection` 
 * Create a `Substring` type for `String.SubSequence`
 * Create a `StringProtocol` protocol to allow for generic operations over both types.
 * Consolidate on a concise set of C interop methods.<commit_msg>SE-0163 is accepted without further revision.<commit_after># String Revision: Collection Conformance, C Interop, Transcoding

* Proposal: [SE-0163](0163-string-revision-1.md)
* Authors: [<NAME>](https://github.com/airspeedswift), [<NAME>](http://github.com/dabrahams/)
* Review Manager: [John McCall](https://github.com/rjmccall)
* Status: **Accepted**
* Revision: 2
* Previous Revision: [1](https://github.com/apple/swift-evolution/blob/7513547ddac66b06770a1fd620aad915d75987ff/proposals/0163-string-revision-1.md)
* Decision Notes: [Rationale](https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170417/035919.html)

## Introduction

This proposal is to implement a subset of the changes from the [Swift 4
String
Manifesto](https://github.com/apple/swift/blob/master/docs/StringManifesto.md).

Specifically:

 * Make `String` conform to `BidirectionalCollection`
 * Make `String` conform to `RangeReplaceableCollection` 
 * Create a `Substring` type for `String.SubSequence`
 * Create a `StringProtocol` protocol to allow for generic operations over both types.
 * Consolidate on a concise set of C interop methods.
{'fraction_non_alphanumeric': 0.13348214285714285, 'fraction_numerical': 0.054464285714285715, 'mean_word_length': 5.571847507331379, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3205442', 'n_tokens_mistral': 812, 'n_tokens_neox': 711, 'n_words': 170}