我正在 iPhone SDK 中寻找一种读取属性文件(不是 XML 风格)的方法,例如:
# a comment
! a comment
a = a string
b = a string with escape sequences \t \n \r \\ \" \' \ (space) \u0123
c = a string with a continuation line \
continuation line
d.e.f = another string
将产生四个键/值对。
我无法更改此格式,因为它是由网络服务发送给我的。你能指导我吗?
谢谢,
以马内利
我会看一下 ParseKithttp://parsekit.com/。否则,您可以使用 RegexKitLite 并创建一些正则表达式。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)