| 112 | ~DictMaker() {} |
| 113 | |
| 114 | ValueMap dictionaryWithContentsOfFile(std::string_view fileName) |
| 115 | { |
| 116 | _resultType = SAX_RESULT_DICT; |
| 117 | SAXParser parser; |
| 118 | |
| 119 | AXASSERT(parser.init("UTF-8"), "The file format isn't UTF-8"); |
| 120 | parser.setDelegator(this); |
| 121 | |
| 122 | parser.parse(fileName); |
| 123 | return _rootDict; |
| 124 | } |
| 125 | |
| 126 | ValueMap dictionaryWithDataOfFile(const char* filedata, int filesize) |
| 127 | { |
no test coverage detected