<span id="Label3"><p><span style="font-size: 14pt;">The length method of NSString can handle international strings accurately, such as strings containing russian, chinese, or Japanese characters, and strings using the Unicode international character Standard. Handling these international strings in C is a very frustrating thing, because a character may occupy more than 1 bytes, which means that a function such as strlen () that computes only the number of bytes returns the wrong number.</span></p><p><span style="font-size: 14pt;"></span></p><p><span style="font-size: 14pt;">Reference: "objective-c Basic course"</span></p><p><span style="font-size: 14pt;"></span></p><span style="font-size: 14pt;"> </span><span style="font-size: 14pt;"> </span><p>Length of "reading notes" ios-nsstring</p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.