-
- Downloads
Bug 1787121: add support for formatting INI files to nsINIParser r=xpcom-reviewers,kmag
This allows callers to re-encode the data (eg: to UTF-16) and write or otherwise do with the formatted data as they wish. I ended up adding/exposing additional init methods in part because I thought it made sense to support initialization from a string since we can now write to one, but also to make testing easier. Differential Revision: https://phabricator.services.mozilla.com/D157377
Showing
- xpcom/base/nsINIParser.cpp 13 additions, 9 deletionsxpcom/base/nsINIParser.cpp
- xpcom/base/nsINIParser.h 4 additions, 2 deletionsxpcom/base/nsINIParser.h
- xpcom/ds/nsIINIParser.idl 11 additions, 0 deletionsxpcom/ds/nsIINIParser.idl
- xpcom/ds/nsINIParserImpl.cpp 13 additions, 0 deletionsxpcom/ds/nsINIParserImpl.cpp
- xpcom/tests/unit/test_iniParser.js 11 additions, 2 deletionsxpcom/tests/unit/test_iniParser.js
Please register or sign in to comment