 	}
 }
 
-extension String {
+public extension String {
 
 	/**
 	 截取string,例:"abc"[0...1]


	 - returns: 范围的数组
	 */
	func rangesOfString(string: String) -> Array<Range<Index>> {
		var array = Array<Range<Index>>()
		let range = self.rangeOfString(string)
		if range != nil {


	 - returns: 截取的string
	 */
	public subscript(r: Range<Int>) -> String {
		get {
			let startIndex = self.startIndex.advancedBy(r.startIndex)
			let endIndex = self.startIndex.advancedBy(r.endIndex)
