【发布时间】:2012-03-09 11:58:47
【问题描述】:
我想知道一个字符串是否是单字节编码。 CFShowStr 可以完成这项工作,但它会将消息输出到控制台。 CFShowStr 函数输出消息是这样的,IsEightBit 项是我想要的:
Length 7
IsEightBit 1
HasLengthByte 0
HasNullByte 1
InlineContents 0
Allocator SystemDefault
Mutable 0
Contents 0x104f9fef3
【问题讨论】:
标签: iphone cocoa-touch cocoa core-foundation cfstring