| 107 | } |
| 108 | |
| 109 | ValueMap dictionaryWithDataOfFile(const char *filedata, int filesize) { |
| 110 | _resultType = SAX_RESULT_DICT; |
| 111 | SAXParser parser; |
| 112 | |
| 113 | CC_ASSERT(parser.init("UTF-8")); |
| 114 | parser.setDelegator(this); |
| 115 | |
| 116 | parser.parse(filedata, filesize); |
| 117 | return _rootDict; |
| 118 | } |
| 119 | |
| 120 | ValueVector arrayWithContentsOfFile(const ccstd::string &fileName) { |
| 121 | _resultType = SAX_RESULT_ARRAY; |
no test coverage detected