Day4 String Change Too Much ,so delay learning the string

Posted Tony0571

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Day4 String Change Too Much ,so delay learning the string相关的知识,希望对你有一定的参考价值。

//                                          **Day4

 

//                                          **String Range

//var str = "hello world  i‘m glad to see your achievement world"

//let number = str.characters.count

//let str2 = "yes my goal is not change"

//str.rangeOfString("world")

//str.rangeOfString("world", options: NSStringCompareOptions.BackwardsSearch)

//str2.rangeOfString("goal", options: NSStringCompareOptions.CaseInsensitiveSearch)

 

// summary   ignore A or a to search use CaseInsensiticeSearch

// summary   search from the end of string use method backwardsSearch

 

// range

//var str : String = "mymymy"

//str.rangeOfString("my")

//str.rangeOfString("my", options: NSStringCompareOptions.BackwardsSearch)

//

//str.startIndex

//str.endIndex

//let strRange = Range<String.Index>(start: str.startIndex , end: str.endIndex)

//

//let startIndex:String.Index = str.startIndex

//let searchIndex = Range<String.Index>(start:str.startIndex,end: str.endIndex)

//str.rangeOfString("my", options: NSStringCompareOptions.CaseInsensitiveSearch, range: searchIndex)

 

 

 

// substring

//var newString = "tang666"

//let startIndex = newString.startIndex

//let endIndex = newString.endIndex

 

以上是关于Day4 String Change Too Much ,so delay learning the string的主要内容,如果未能解决你的问题,请参考以下文章

Packet for query is too large (> 4,194,304). You can change this value on the server

day4

Day4

Kotlin 中的 STRING_TOO_LARGE 字符串

java.io.UTFDataFormatException: encoded string too long:

java之day4