You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NSString是概念上的平台相关字节序(platform endianness的 UTF-16,没有必要了解任何关于字符串内部存储结构的信息。这意味着,NSString对象的长度、字符、下标索引以及字符范围,都是按照UTF-16字符单元(uint)来表示的,且NSString中的“字符”形式都以16位平台字节序(platform-endianness)的UTF-16单元(unit)来表示的。这是对字符串对象常见的约定。大多数情况下,客户端不必过于在意。只要你在处理子串,范围索引的精确解释不一定显著。(as long as you are dealing with substrings, the precise interpretation of the range indexes is not necessarily significant. )