我想知道一个字符串是否是单字节编码。可以完成这项CFShowStr
工作,但它会将消息输出到控制台。CFShowStr
函数输出消息是这样的,项目IsEightBit
是我想要的:
Length 7
IsEightBit 1
HasLengthByte 0
HasNullByte 1
InlineContents 0
Allocator SystemDefault
Mutable 0
Contents 0x104f9fef3
我想知道一个字符串是否是单字节编码。可以完成这项CFShowStr
工作,但它会将消息输出到控制台。CFShowStr
函数输出消息是这样的,项目IsEightBit
是我想要的:
Length 7
IsEightBit 1
HasLengthByte 0
HasNullByte 1
InlineContents 0
Allocator SystemDefault
Mutable 0
Contents 0x104f9fef3