mirror of https://github.com/adamdruppe/arsd.git
strict method
This commit is contained in:
parent
db6543d884
commit
cadc160258
12
dom.d
12
dom.d
|
@ -3488,6 +3488,12 @@ class Document : FileResource {
|
|||
parse(data, false, false, null);
|
||||
}
|
||||
|
||||
/// Parses well-formed UTF-8, case-sensitive, XML or XHTML
|
||||
/// Will throw exceptions on things like unclosed tags.
|
||||
void parseStrict(string data) {
|
||||
parse(data, true, true);
|
||||
}
|
||||
|
||||
Utf8Stream handleDataEncoding(in string rawdata, string dataEncoding, bool strict) {
|
||||
// gotta determine the data encoding. If you know it, pass it in above to skip all this.
|
||||
if(dataEncoding is null) {
|
||||
|
@ -6029,6 +6035,12 @@ class Utf8Stream {
|
|||
+/
|
||||
}
|
||||
|
||||
void fillForm(T)(Form form, T obj, string name) {
|
||||
import arsd.database;
|
||||
fillData((k, v) => form.setValue(k, v), obj, name);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Copyright: Adam D. Ruppe, 2010 - 2013
|
||||
License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
|
||||
|
|
Loading…
Reference in New Issue