Re: [swift-corelibs-dev] index indexes and ranges of String

2017-01-06 Thread Carlos García via swift-corelibs-dev
ge there. > > - Tony > >> On Dec 31, 2016, at 11:53 AM, Carlos García via swift-corelibs-dev >> mailto:swift-corelibs-dev@swift.org>> wrote: >> >> Hi, >> >> I think this is important enough and useful for we to be in the core >> stan

[swift-corelibs-dev] index indexes and ranges of String

2017-01-03 Thread Carlos García via swift-corelibs-dev
Hi, I think this is important enough and useful for we to be in the core standard library extension String { func index(of string: String, options: String.CompareOptions = .literal) -> String.Index? { return range(of: string, options: options)?.lowerBound } func indexes(of