mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19f1c05c54 | ||
|
|
62fb2d9104 | ||
|
|
40eb2f6974 | ||
|
|
7af3f538bc | ||
|
|
afbdf5f3f5 | ||
|
|
0d60a16ee0 | ||
|
|
c214e0af59 | ||
|
|
f9b23f82ef | ||
|
|
b3b164e0e2 | ||
|
|
19181affc0 | ||
|
|
5d24e70618 | ||
|
|
c2752833c4 | ||
|
|
a7ad353f69 | ||
|
|
896c8ae485 | ||
|
|
b3a8ccf695 | ||
|
|
14e6ab3447 | ||
|
|
62f20dc082 | ||
|
|
ac3b1ae1ad | ||
|
|
a1f6bc713c | ||
|
|
f2c0e2415d | ||
|
|
794ab0c147 | ||
|
|
007b786026 | ||
|
|
f5cfcf20cb | ||
|
|
bc764d6bb1 | ||
|
|
a6ea1406b7 | ||
|
|
747445cc54 | ||
|
|
9e0f402833 | ||
|
|
5d89c857e3 | ||
|
|
8511b36fb1 | ||
|
|
58810b7bb7 | ||
|
|
0c2ad9a11d | ||
|
|
456fa62714 | ||
|
|
a3e6e82b52 | ||
|
|
4f52abe7f6 | ||
|
|
a0f7c6ea11 | ||
|
|
bb834cd689 | ||
|
|
1c102ac0d5 | ||
|
|
c8167fc356 | ||
|
|
8ff52f4e31 | ||
|
|
7d53402ef0 | ||
|
|
cb11cb28de | ||
|
|
7eb8ca18fd | ||
|
|
23222c4965 | ||
|
|
9830efc1ba | ||
|
|
7244335fbb | ||
|
|
86d426f94e | ||
|
|
31ed81efbf | ||
|
|
04d595a679 | ||
|
|
674d53942a | ||
|
|
c7793c1daa | ||
|
|
ac520ae2a8 | ||
|
|
dde7cdb961 | ||
|
|
7056310051 | ||
|
|
f93581d4ce | ||
|
|
3c8838a150 | ||
|
|
59bb3789ae | ||
|
|
7aebd64c92 | ||
|
|
a7266dcf84 | ||
|
|
fb93127829 | ||
|
|
9d33ebc014 | ||
|
|
fb0004eeb8 | ||
|
|
4e66ddedfd | ||
|
|
cd14c2ec20 | ||
|
|
6019fee28f | ||
|
|
3111a70c90 | ||
|
|
006e069345 | ||
|
|
43d7c99d5d | ||
|
|
6fa30df202 | ||
|
|
afd465bdd9 | ||
|
|
12ac0cfb81 | ||
|
|
db97682388 | ||
|
|
e5e171b0ed | ||
|
|
8d19501475 | ||
|
|
48c22433a8 | ||
|
|
94acf2e05e | ||
|
|
726091788b | ||
|
|
bc5d476580 | ||
|
|
a951193a79 | ||
|
|
af80a02eb3 | ||
|
|
d3c3e13c76 | ||
|
|
d50e89a3d7 | ||
|
|
95fbfbc0d0 | ||
|
|
118fb543a6 | ||
|
|
e79c9d3504 | ||
|
|
ce62f72758 | ||
|
|
399ba28adc | ||
|
|
cc90c9b8d3 | ||
|
|
230a49d4c9 | ||
|
|
b325135bd7 | ||
|
|
0ec5aff390 | ||
|
|
a3aa25068f | ||
|
|
90daa550c5 | ||
|
|
a94b3e2399 | ||
|
|
e22dd447f7 | ||
|
|
64d9eda0c4 | ||
|
|
78b9e915a9 | ||
|
|
c355383183 | ||
|
|
6783d561cd | ||
|
|
5e160a8c79 | ||
|
|
6c8320808c | ||
|
|
dc32001c51 | ||
|
|
3f58280e19 | ||
|
|
838bee9b74 | ||
|
|
8b6fbe262b | ||
|
|
2b6be89b67 | ||
|
|
b9a2c9d229 | ||
|
|
a55a564918 | ||
|
|
e390d66fc6 | ||
|
|
57b211972c | ||
|
|
7d9c1e759d | ||
|
|
3184ffc4bc | ||
|
|
d994a4f8fa | ||
|
|
a099d612d9 | ||
|
|
a59ec954c2 | ||
|
|
c3c3dd0da9 | ||
|
|
6d6b34516e | ||
|
|
2797d41db5 | ||
|
|
487afeafc4 | ||
|
|
bff469cafa | ||
|
|
12986e9a2f | ||
|
|
37b4075223 | ||
|
|
0fd5b334b0 | ||
|
|
519a232b2d | ||
|
|
58f33f8959 | ||
|
|
1ccdb2b294 | ||
|
|
b50110122d | ||
|
|
f28f29e604 | ||
|
|
24e5f03bcf | ||
|
|
de60184478 | ||
|
|
406b2d7a00 | ||
|
|
ee9a969d25 | ||
|
|
a8307a851d | ||
|
|
38e80cb638 | ||
|
|
0fc5630825 | ||
|
|
4e11e4cef8 | ||
|
|
f4bf675eef | ||
|
|
7a30c3b1ba | ||
|
|
19e874fd82 | ||
|
|
8c28cbe7a4 | ||
|
|
398e639c0c | ||
|
|
6b0fe6fbb0 | ||
|
|
e0c474d88c | ||
|
|
71a789e874 | ||
|
|
38a62af6c3 | ||
|
|
6273d99a9b | ||
|
|
373365e391 | ||
|
|
a2e70adbe3 | ||
|
|
d24d4a16c4 | ||
|
|
11ead8847c | ||
|
|
3e4b9eab12 | ||
|
|
e2b4686ee1 | ||
|
|
4de78797d2 | ||
|
|
2a4644b98b | ||
|
|
da5f305ee8 | ||
|
|
8d29fbdbeb | ||
|
|
39630e629a | ||
|
|
dba382bccb | ||
|
|
7b6b1d589f | ||
|
|
1244874e36 | ||
|
|
94e71fae97 | ||
|
|
3a38c41837 | ||
|
|
d7941e0e61 | ||
|
|
355cd2241e | ||
|
|
b88e3eb6e4 | ||
|
|
d82248bfa9 | ||
|
|
b65bf9c867 | ||
|
|
b4f535348e | ||
|
|
bc56cd99ed | ||
|
|
10182053a9 | ||
|
|
a04af9118a | ||
|
|
256a98a381 | ||
|
|
ba4906bc4f | ||
|
|
4ba4545e8d | ||
|
|
bc56f1060e | ||
|
|
06c665c5ff | ||
|
|
7fd1ce6d9d | ||
|
|
e372287a58 | ||
|
|
d643fdb3da | ||
|
|
4cd467c7de | ||
|
|
e48563c4a2 | ||
|
|
ce4c084b61 | ||
|
|
929d904551 | ||
|
|
62c644372c | ||
|
|
04c7042d17 | ||
|
|
7a6b7bae4a | ||
|
|
035c90b4c4 | ||
|
|
3f61068a5c | ||
|
|
f63d52594b | ||
|
|
87c37b1280 | ||
|
|
90433c3359 | ||
|
|
2be4540393 | ||
|
|
6f21bda280 | ||
|
|
f112f87bdc | ||
|
|
b47223981c | ||
|
|
ae382bd6a1 | ||
|
|
4f2a7eab9a | ||
|
|
f37073904e | ||
|
|
3816040cc3 | ||
|
|
86e648cd02 | ||
|
|
657cf62e8f | ||
|
|
7df0404424 | ||
|
|
33f7592f9e | ||
|
|
623e2346d5 | ||
|
|
c33c4d4a92 | ||
|
|
d746ee6888 | ||
|
|
a53c72f671 | ||
|
|
277019c06c | ||
|
|
c5777ff927 | ||
|
|
ed8d0fd5b7 | ||
|
|
ea7ccc0ca2 | ||
|
|
cd2414b5ae | ||
|
|
7c15f2f524 | ||
|
|
17882f969c | ||
|
|
e4b072c2d7 | ||
|
|
47867f30b9 | ||
|
|
f169b36c49 | ||
|
|
cbae4b7ef1 | ||
|
|
3d71a2a6e5 | ||
|
|
179dfaf89d | ||
|
|
e7031d9bb1 | ||
|
|
419504fba0 | ||
|
|
e60ebd985e | ||
|
|
03b9ccb25f | ||
|
|
310cc8b767 | ||
|
|
8577f45a0c | ||
|
|
a95609cfe9 | ||
|
|
70bf8472dd | ||
|
|
f31512897b | ||
|
|
482b4192d2 | ||
|
|
4efab9d7d0 | ||
|
|
f948bdc1b0 | ||
|
|
988ccf0b29 | ||
|
|
7c41fdb7ae | ||
|
|
b66da756a1 | ||
|
|
e955b6943c | ||
|
|
9a707334fb | ||
|
|
039bda3c65 | ||
|
|
c854b9e2d0 | ||
|
|
a7422ba9bb | ||
|
|
b7922d723a | ||
|
|
a232e26de1 | ||
|
|
e2c6f6e791 | ||
|
|
5b10b1d6a9 | ||
|
|
ee905d0c03 | ||
|
|
f5628732ec | ||
|
|
1c21cdd969 | ||
|
|
1261df67de | ||
|
|
d5fc6487e8 | ||
|
|
c6cd62fc13 | ||
|
|
039addd678 | ||
|
|
b03bdf690a | ||
|
|
89feb05d76 | ||
|
|
e214896cef | ||
|
|
664192081a | ||
|
|
a0abbe81d7 | ||
|
|
e72be115d0 | ||
|
|
48017d25b5 | ||
|
|
5a192ac3f9 | ||
|
|
b22c806052 | ||
|
|
2673f937de | ||
|
|
4589a8c5fb | ||
|
|
2a0e0be91f | ||
|
|
9b5480fbf4 | ||
|
|
a206154c18 | ||
|
|
eb657d1b71 | ||
|
|
216c827113 | ||
|
|
b22d833768 | ||
|
|
b33b11f9d5 | ||
|
|
5ed2d7937b | ||
|
|
7dcae3becc | ||
|
|
eb92a1217d | ||
|
|
9f97213017 | ||
|
|
e0eee654e3 | ||
|
|
dc46c4ab7e | ||
|
|
6ab9b9616d | ||
|
|
dcf3a9eceb | ||
|
|
63cd0a2589 | ||
|
|
2c23326622 | ||
|
|
52bff1dfe0 | ||
|
|
a53f1b85a1 | ||
|
|
6c93b0c613 | ||
|
|
551c3e365a | ||
|
|
61715e57c9 | ||
|
|
ea48e253e3 | ||
|
|
46692f3796 | ||
|
|
8ad7a5d34a | ||
|
|
e267e170ed | ||
|
|
42f310d152 | ||
|
|
3dd4322874 | ||
|
|
1136d59fc0 | ||
|
|
b6d22a08d7 | ||
|
|
f3194d60b5 | ||
|
|
6d2aa53461 | ||
|
|
3b38f04754 | ||
|
|
1ad7c28cc7 | ||
|
|
e7c6847d8c | ||
|
|
e06b86c2e7 | ||
|
|
442a5c1927 | ||
|
|
af8b26cfce | ||
|
|
aedff42490 | ||
|
|
ac13a98236 | ||
|
|
94a0a08a5a | ||
|
|
8e89b3a0ca | ||
|
|
8c45bb18fe | ||
|
|
a9a8ebac53 | ||
|
|
b1769245b8 | ||
|
|
404fd5363d | ||
|
|
b97e620cd1 | ||
|
|
d8b6135f69 | ||
|
|
f8dc6c2e12 | ||
|
|
7053970b84 | ||
|
|
082692d778 | ||
|
|
af1d4ea013 | ||
|
|
f65ba83e60 | ||
|
|
ea4b86c45a | ||
|
|
0eb5a45672 | ||
|
|
7d6bcfe942 | ||
|
|
4397219217 | ||
|
|
e4c4eaa42c | ||
|
|
59fb647a1f | ||
|
|
e87c31e9a9 | ||
|
|
a2a81a55b3 | ||
|
|
f165c2b439 | ||
|
|
ecff58cc2c | ||
|
|
87d2f0b3ff | ||
|
|
832835b220 | ||
|
|
be4a4d84ad | ||
|
|
b50b26823e | ||
|
|
607df4fed0 | ||
|
|
ec0d78aa47 | ||
|
|
f50e76c580 | ||
|
|
740935759d | ||
|
|
ab2b9ae132 | ||
|
|
c1f54f2585 | ||
|
|
e23eb863d9 | ||
|
|
7f4ab42e17 | ||
|
|
2af0c5e9dd | ||
|
|
c31c2edae7 | ||
|
|
c8b10edc24 | ||
|
|
895284ddbd | ||
|
|
e1a5fc5aa4 | ||
|
|
eecd4147be | ||
|
|
496c69e0b2 | ||
|
|
d5bf2c0713 | ||
|
|
27c370a851 | ||
|
|
d942242990 | ||
|
|
9b03c346fd | ||
|
|
67139125d4 | ||
|
|
59d7404e1b | ||
|
|
b714fcf819 | ||
|
|
ccb5ea5924 | ||
|
|
3e2ed5d493 | ||
|
|
de2e6c2658 | ||
|
|
ab3dc22a2c | ||
|
|
5a8c7954b9 | ||
|
|
45e7a987de | ||
|
|
285052b5c6 | ||
|
|
be45adc365 | ||
|
|
674da8fdc4 | ||
|
|
88e041c46e | ||
|
|
ebb0681764 | ||
|
|
dcac4ba42c | ||
|
|
cb0b45a4e3 | ||
|
|
e5e32696e1 | ||
|
|
3fe9da1a6b | ||
|
|
b6a7fc1f8a | ||
|
|
d730a668b1 | ||
|
|
9f98591560 | ||
|
|
2335431b38 | ||
|
|
0abadb40a1 | ||
|
|
2f3a1b3dbf | ||
|
|
26cae340b4 | ||
|
|
f21d6449fa | ||
|
|
3e7cea1232 | ||
|
|
a988a10992 | ||
|
|
7e07d13efe | ||
|
|
b33f8408a7 | ||
|
|
ff6805c6d2 | ||
|
|
b25ad6aaff | ||
|
|
f80650fa1e | ||
|
|
7f7c90c70e | ||
|
|
31dd3aca62 | ||
|
|
84465817b5 | ||
|
|
cd862e8258 | ||
|
|
038367c545 | ||
|
|
ed232ae225 | ||
|
|
c6c53d568b | ||
|
|
e64e6483ce | ||
|
|
17626ad634 | ||
|
|
62509d7f33 | ||
|
|
e980095ec9 | ||
|
|
f0a8a458d1 | ||
|
|
c05d8961d5 | ||
|
|
90d3f7a97e | ||
|
|
e18c231fc8 | ||
|
|
385d93e3bc | ||
|
|
b066dcaa56 | ||
|
|
13dd868c42 | ||
|
|
4471cba319 | ||
|
|
20f61ae832 | ||
|
|
2825f28523 | ||
|
|
3871e25478 | ||
|
|
9d1b407625 | ||
|
|
d24244af13 | ||
|
|
cbbc5a16a6 | ||
|
|
c27526153b | ||
|
|
d7b68fa40b | ||
|
|
0ea412d547 | ||
|
|
73ebfb6251 | ||
|
|
b81781bbe4 | ||
|
|
7c712848f1 | ||
|
|
f46f770b16 | ||
|
|
b7ef95a35d | ||
|
|
1cf1d66a3e | ||
|
|
3afb337dec | ||
|
|
b213aa0bf2 | ||
|
|
423ea8af8e | ||
|
|
a5727b1062 | ||
|
|
c3d41f08f9 | ||
|
|
9de4121212 | ||
|
|
a29c9418a8 | ||
|
|
38087128b7 | ||
|
|
e3783491dc | ||
|
|
5c80561e2e | ||
|
|
45aeaa1253 | ||
|
|
f1a66b8ed5 | ||
|
|
b2cc33d3db | ||
|
|
cd6613509c | ||
|
|
d8da3eab41 | ||
|
|
ae40d18e07 | ||
|
|
a89a5936ac | ||
|
|
5880e4bf3c | ||
|
|
dc7d62f122 | ||
|
|
796a9ea860 | ||
|
|
2548566d31 | ||
|
|
fe8c4d8126 | ||
|
|
dff48874e3 | ||
|
|
8c2cc0f8b1 | ||
|
|
94beec4383 | ||
|
|
7ec5d41688 | ||
|
|
c49415d54c | ||
|
|
e11b6645cd | ||
|
|
76e901f710 | ||
|
|
6fe974d80d | ||
|
|
9ede4e5632 | ||
|
|
e67e2fae94 | ||
|
|
75e9de6dd3 | ||
|
|
74f0572274 | ||
|
|
389692ae85 | ||
|
|
7b436d9afc | ||
|
|
245474ed6f | ||
|
|
370db981b3 | ||
|
|
dbb67cab7a | ||
|
|
042f77071a | ||
|
|
971d062268 | ||
|
|
b1a3d29a9e | ||
|
|
313b593071 | ||
|
|
cde520de2d | ||
|
|
428416e37d | ||
|
|
3184c790c7 | ||
|
|
3e814f1d9b | ||
|
|
cf715cb40a | ||
|
|
a1f76a2fcf | ||
|
|
2645469dac | ||
|
|
426cc16e68 | ||
|
|
d6a32cd6ce | ||
|
|
8f82fce186 | ||
|
|
bbf387a8f2 | ||
|
|
34c65cd606 | ||
|
|
8c5d96e873 | ||
|
|
920fc7c140 | ||
|
|
3e977b2172 | ||
|
|
8d6429e08c | ||
|
|
9bed95350d | ||
|
|
cc737a9ba2 | ||
|
|
dd953f50c5 | ||
|
|
085200c215 | ||
|
|
14599e07ed | ||
|
|
9f906977c4 | ||
|
|
be8dbdf6df | ||
|
|
f4c3f2d686 | ||
|
|
12a0a0ad85 | ||
|
|
1d2fd92a88 | ||
|
|
8add79cafb | ||
|
|
fa842425c7 | ||
|
|
e1c04a3fcf | ||
|
|
7a51fff22c | ||
|
|
b7a7012115 | ||
|
|
066dd83f5d | ||
|
|
ed2f872e65 | ||
|
|
1759857a1f | ||
|
|
3ed983bcab | ||
|
|
3ae87c406b | ||
|
|
5fbbcc177f | ||
|
|
dd726bd89f | ||
|
|
51bca79c22 | ||
|
|
b26939284a | ||
|
|
9f622ff4ee | ||
|
|
06e892b980 | ||
|
|
143af05a93 | ||
|
|
ef4767f919 | ||
|
|
47333cf53e | ||
|
|
38e2758eb0 | ||
|
|
b3bef3cb6a | ||
|
|
64f837613d | ||
|
|
20e81a7bd0 | ||
|
|
6088064eb7 | ||
|
|
7a90062ebe | ||
|
|
e0e853111c | ||
|
|
dbece2a334 | ||
|
|
7148b88fc6 | ||
|
|
ce43336bb8 | ||
|
|
59a7e4c2de | ||
|
|
f6a4795925 | ||
|
|
71f60a3d4a | ||
|
|
c81b863ef0 | ||
|
|
5002ce6535 | ||
|
|
a665fdb2e9 | ||
|
|
38079f5fa0 | ||
|
|
53665d2a9c | ||
|
|
286bcb9e60 | ||
|
|
9621c55b69 | ||
|
|
dd815fb7fe | ||
|
|
839e971be3 | ||
|
|
17fa7867f8 | ||
|
|
aca521aca6 | ||
|
|
10274adf0a | ||
|
|
062e9f5266 | ||
|
|
c8bad1334e | ||
|
|
a5d121ff11 | ||
|
|
396faa531e | ||
|
|
451dd25eb9 | ||
|
|
7252b6595e | ||
|
|
1f16f07de0 | ||
|
|
3bf0adf06b | ||
|
|
bfea298166 | ||
|
|
480d488ef3 | ||
|
|
06e50b881f | ||
|
|
ff049da6c1 | ||
|
|
43e1fd9f0e | ||
|
|
b680cf6b99 | ||
|
|
b5a02e9870 | ||
|
|
ee48d73acd | ||
|
|
1950420281 | ||
|
|
feaafeeb4e | ||
|
|
dae32f25ea | ||
|
|
5c4860a930 | ||
|
|
30a5dda745 | ||
|
|
2289967204 | ||
|
|
e91a24c3f4 | ||
|
|
75d91d9c99 | ||
|
|
2fefe83b93 | ||
|
|
d3442a8864 | ||
|
|
054aa8742c | ||
|
|
218d0e4fd6 | ||
|
|
02d778b53f | ||
|
|
d3db87f166 | ||
|
|
bd265b0b4c | ||
|
|
cdde6d1025 | ||
|
|
85453c1f27 | ||
|
|
8523e6fd4c | ||
|
|
0d44e4bd88 | ||
|
|
5fe74de573 | ||
|
|
610c46ca01 | ||
|
|
05ec37ee5d | ||
|
|
c39fd613b6 | ||
|
|
ae4b04c837 | ||
|
|
fcdff7ed33 | ||
|
|
e84d2dde76 | ||
|
|
ab56f08cdf | ||
|
|
e7ca8f20c4 | ||
|
|
15b13478af | ||
|
|
d0cc112de9 | ||
|
|
1bbc0280f6 | ||
|
|
2f8194612d | ||
|
|
be9de0e1ac | ||
|
|
5464542c55 | ||
|
|
4ce9ff767f | ||
|
|
db5459c586 | ||
|
|
3268e37cd1 | ||
|
|
d4674914b9 | ||
|
|
e7702bf35d | ||
|
|
c3f5ca896a | ||
|
|
a41a82a694 | ||
|
|
bdb31e441e | ||
|
|
0b8e8c6cb7 | ||
|
|
e4c96ec70a | ||
|
|
f91f74d6d7 | ||
|
|
0263ba084f | ||
|
|
4b085e4b62 | ||
|
|
651f863792 | ||
|
|
2365397ca3 | ||
|
|
dfd3372251 | ||
|
|
4c9ee53953 | ||
|
|
8921ca9e49 | ||
|
|
bf1d85db26 | ||
|
|
4f5f2e43e2 | ||
|
|
0d8d9abd48 | ||
|
|
9f4abfb1d5 | ||
|
|
22c4e0ee3b | ||
|
|
4e92234406 | ||
|
|
4ab670066a | ||
|
|
29f9e5ff3d | ||
|
|
292fa3413f | ||
|
|
17ebd3efa0 | ||
|
|
7b6992976a | ||
|
|
02bd2a8b2d | ||
|
|
4415259ba1 | ||
|
|
8253721cb0 | ||
|
|
589b50de6f | ||
|
|
85f197004d | ||
|
|
01c866af9c | ||
|
|
4bf53054c2 | ||
|
|
04ca35cc6a | ||
|
|
43806c6701 | ||
|
|
8dd2dbbe9e | ||
|
|
5c45430b3f | ||
|
|
d70052496a | ||
|
|
3de2cd8abe | ||
|
|
91f3e24d60 | ||
|
|
681488c662 | ||
|
|
3b095deb1e | ||
|
|
5cc7eaea6e | ||
|
|
7803cd3ec4 | ||
|
|
4ebde82145 | ||
|
|
b9b681b89f | ||
|
|
a5aeef3952 | ||
|
|
4de89dd439 | ||
|
|
15c9b8f2ca | ||
|
|
8baca4235f | ||
|
|
a927d1db6a | ||
|
|
efed257d39 | ||
|
|
9ad9b08458 | ||
|
|
9b2393d1c7 | ||
|
|
463c186397 | ||
|
|
45d870860c | ||
|
|
47df667e6e | ||
|
|
62e7e2c54d | ||
|
|
788c9757fd | ||
|
|
daa2f108f3 | ||
|
|
81bb1146d4 | ||
|
|
8da02c6d46 | ||
|
|
fa1a176ef6 | ||
|
|
aebf222336 | ||
|
|
5afdc7affb | ||
|
|
7d6aa1e322 | ||
|
|
db66ea05c0 | ||
|
|
43e34e9221 | ||
|
|
69154db126 | ||
|
|
1f7a1c183c | ||
|
|
beb7543392 | ||
|
|
d0dbad9ad7 | ||
|
|
4f8c33af39 | ||
|
|
90c46b9308 | ||
|
|
8082e15625 | ||
|
|
58864d7fca | ||
|
|
c79c91c80c | ||
|
|
8973515d9d | ||
|
|
9346c56300 | ||
|
|
5a4e4d261b | ||
|
|
259bc42379 | ||
|
|
9b28a1de73 | ||
|
|
1eb27e1f63 | ||
|
|
7edb572581 | ||
|
|
364a5d0b74 | ||
|
|
3aa9628276 | ||
|
|
bcc8b6fb2d | ||
|
|
eefca1d2f0 | ||
|
|
075b2246c4 | ||
|
|
70390d5989 | ||
|
|
08a3283160 | ||
|
|
f65e2f5bde | ||
|
|
89a11d5206 | ||
|
|
cd1791a956 | ||
|
|
06bce6170a | ||
|
|
6eb53dd31a | ||
|
|
329316a6c6 | ||
|
|
cb768e733f | ||
|
|
d1973e174d | ||
|
|
fd3fd2455f | ||
|
|
7944cbd726 | ||
|
|
ef0ea82263 | ||
|
|
2de8607599 | ||
|
|
ca5715e665 | ||
|
|
774fd03e78 | ||
|
|
8b8d58705b | ||
|
|
c5cbb9cb4b | ||
|
|
95ab6bc64d | ||
|
|
2403930b66 |
No files matched your search
@@ -1,68 +0,0 @@
|
||||
# ensure LF endings on all checkouts
|
||||
configure.in crlf=input
|
||||
|
||||
# ensure native line endings on checkout
|
||||
*.c crlf
|
||||
*.h crlf
|
||||
*.cs crlf
|
||||
*.sh crlf
|
||||
*.il crlf
|
||||
|
||||
.gitattributes crlf
|
||||
ChangeLog crlf
|
||||
*akefile* crlf
|
||||
*.sources crlf
|
||||
|
||||
# don't do anything to line-endings. Let CRLFs go into the repo, and CRLF on checkout
|
||||
*.bat -crlf
|
||||
*.sln -crlf
|
||||
*.*proj* -crlf
|
||||
*.xml -crlf
|
||||
|
||||
# CRLF Handling
|
||||
# -------------
|
||||
#
|
||||
# The ideal situation would be to do no EOL normalization. Each file
|
||||
# would have a default EOL, and tools on Windows and Linux would handle
|
||||
# both EOL formats.
|
||||
#
|
||||
# We're not in the ideal world. A popular editor on Windows (possibly
|
||||
# Visual Studio) silently introduces EOL corruption -- it displays an
|
||||
# LF-file normally, but any newly added lines have CRLF. On Linux,
|
||||
# Emacs and versions of VI handle LF-files and CRLF-files properly.
|
||||
# However, emacs doesn't like files with both LF and CRLF EOLs. Editing
|
||||
# the file without additional action will increase the EOL corruption
|
||||
# in the file.
|
||||
#
|
||||
# Another vector for mixed EOLs is scripts. We mostly don't have scripts
|
||||
# that add new lines -- so we rarely see this. However, one major event
|
||||
# in the tree was the addition of copyright headers using a script. That
|
||||
# script introduced EOL corruption.
|
||||
#
|
||||
# Any automated EOL normalization of files already in the repository will
|
||||
# cause difficulties in traversing histories, assigning blame, etc. So, we
|
||||
# don't want to change what's in the repository significantly, even if it
|
||||
# causes trouble.
|
||||
#
|
||||
# What we do now:
|
||||
#
|
||||
# a) we ensure that there's no further corruption of LF-files. So, we use
|
||||
# git's 'crlf' attribute on those files to ensure that things are fine
|
||||
# when we work on Windows. We could use 'crlf=input', but it doesn't buy
|
||||
# us much -- we might as well be working with consistent EOLs for files in
|
||||
# working directories as well as in the repository
|
||||
#
|
||||
# b) if the file already of CRLFs, we don't do any normalization. We use '-crlf'
|
||||
# so that git doesn't do any EOL-conversion of the file. As I said, this
|
||||
# is mostly harmless on Linux. We can't mark these files as 'crlf' or use
|
||||
# the new (git 1.7.2) 'eol=crlf' attribute, since it changes the contents
|
||||
# _inside_ the repository [1], and hence makes history traversal annoying.
|
||||
# So, we live with occasional EOL corruption.
|
||||
#
|
||||
# c) We can handle mixed-EOL files on a case-by-case basis, converting them to
|
||||
# LF- or CRLF-files based on which causes fewer lines to change
|
||||
#
|
||||
# d) We try to ensure no further headaches, by declaring EOL normalization on
|
||||
# code files, and Unix-flavoured files, like shell-scripts, makefiles, etc.
|
||||
#
|
||||
# [1] GIT use LFs as the normalized internal representation.
|
||||
@@ -18,7 +18,6 @@
|
||||
/mono-*.tar.gz
|
||||
/*.pc
|
||||
/mono.spec
|
||||
/mono-core.spec
|
||||
/semantic.cache
|
||||
/stamp-h
|
||||
/stamp-h.in
|
||||
@@ -30,9 +29,3 @@
|
||||
/install-sh
|
||||
/doltlibtool
|
||||
/doltcompile
|
||||
/libtool.m4
|
||||
/ltoptions.m4
|
||||
/ltsugar.m4
|
||||
/lt~obsolete.m4
|
||||
/ltversion.m4
|
||||
*~
|
||||
+3041
File diff suppressed because it is too large.
Load diff
+1
-17
@@ -1,23 +1,7 @@
|
||||
|
||||
The Mono runtime is licensed under the terms of the GNU
|
||||
Library General Public License, version 2.
|
||||
|
||||
The eglib directory is licensed under the terms of the MIT
|
||||
X11 license and is a drop-in replacement for Mono's use of
|
||||
glib 2.0 (which was LGPL).
|
||||
|
||||
The Boehm licensing information is in the libgc directory
|
||||
|
||||
The SGen Garbage Collector is under the terms of the MIT X11
|
||||
license
|
||||
|
||||
The class libraries under mono/mcs are unless otherwise stated
|
||||
under the MIT X11 license.
|
||||
|
||||
Open source Microsoft code is licensed under the original terms
|
||||
which is either MS-PL for older components, or dual licensed
|
||||
MS-PL/Apache2 licensed.
|
||||
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
|
||||
@@ -1,426 +1,9 @@
|
||||
2010-08-05 Andrés G. Aragoneses <[email protected]>
|
||||
|
||||
* scripts/.gitignore: added mono-abi-info.
|
||||
* scripts/Makefile.am: added mono-abi-info autofoo.
|
||||
|
||||
2010-07-16 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Remove the 'LLVM backend is experimental' warning.
|
||||
|
||||
2010-07-08 Neale Ferguson <[email protected]>
|
||||
|
||||
* configure.in: Add sgen_supported=true for s390x.
|
||||
|
||||
2010-07-05 Rolf Bjarne Kvinge <[email protected]>
|
||||
|
||||
* configure.in: Restore the AM_CONDITIONAL debugger supported, we need it to
|
||||
include/exclude assembler files from the build in the makefile.
|
||||
|
||||
2010-06-29 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add a define for the full LLVM version to config.h.
|
||||
|
||||
2010-06-26 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Make sgen_supported default to false to fix non-x86 builds.
|
||||
|
||||
2010-06-25 Zoltan Varga <[email protected]>
|
||||
|
||||
* scripts/patch-quiet.sh: Fix this up after the build changes.
|
||||
|
||||
2010-06-23 Miguel de Icaza <[email protected]>
|
||||
|
||||
* configure.in: By default, we will now also buils an SGen-aware
|
||||
VM by default. This can be turned off by using the
|
||||
--with-sgen=no command line option.
|
||||
|
||||
Two binaries are produced now: mono and mono-sgen
|
||||
|
||||
--- First Pass ---
|
||||
|
||||
* configure.in: Remove redundant setting of variables in non-Boehm
|
||||
cases.
|
||||
|
||||
First pass at supporting the compilation of both
|
||||
the Boehm-powered Mono VM and the Sgen-powered one.
|
||||
|
||||
The Boehm configuration flags are no longer part of the config.h
|
||||
that we generate, but instead they are part of the CFLAGS
|
||||
variables that are used for the following components:
|
||||
|
||||
* io-layer/ because it uses the pthread APIs that are
|
||||
wrapped by using utils/gc_wrapper.h
|
||||
|
||||
* metatada/ because we have plenty of GC-specific code
|
||||
|
||||
* mini/ the VM itself
|
||||
|
||||
The patch currently only changes the way that Boehm is compiled,
|
||||
no changes for Sgen have been done yet.
|
||||
|
||||
We now pass Boehm CFLAG settings as "BOEHM_DEFINES" which need to
|
||||
be added to the three Makefiles above.
|
||||
|
||||
When building the bundled and modified libgc, we also need to pass
|
||||
MONO_DEBUGGER_SUPPORTED as it triggers some special features in
|
||||
the libgc.
|
||||
|
||||
Simplify the build also by removing the AM_CONDITIONAL debugger
|
||||
supported, we now merely check this on the source file and wrap
|
||||
the entire debug-debugger.c in an ifdef.
|
||||
|
||||
2010-06-05 Mark Probst <[email protected]>
|
||||
|
||||
* tools/sgen/sgen-grep-binprot.c: Updated for degraded and pinned
|
||||
allocations.
|
||||
|
||||
2010-06-02 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Check whenever we are using mono's LLVM branch.
|
||||
|
||||
2010-05-31 Robert Jordan <[email protected]>
|
||||
|
||||
* configure.in: Windows: mcs_topdir_from_srcdir must not be
|
||||
converted to a Win32 path unless it's already a cygwin path.
|
||||
Fixes --with-mcs-docs for in-tree mcs builds.
|
||||
|
||||
2010-05-28 Robert Jordan <[email protected]>
|
||||
|
||||
* configure.in: Fix mcs_topdir* for the Windows build.
|
||||
|
||||
2010-05-28 Mark Probst <[email protected]>
|
||||
|
||||
* tools/sgen/sgen-grep-binprot.c (main): Use strtoul(), not
|
||||
strtol(), to parse addresses from the command line.
|
||||
|
||||
2010-05-20 Miguel de Icaza <[email protected]>
|
||||
|
||||
* configure.in: drop again the pkg.m4 dependency and for eglib
|
||||
cases (and not-Windows) make it entirely optional.
|
||||
|
||||
2010-05-11 Andrew Jorgensen <[email protected]>
|
||||
|
||||
* scripts/mono-find-*.in: Look for libmono-2.0.so.1, not libmono.so
|
||||
and set MONO_PATH to ensure that mscorlib.dll can be found
|
||||
|
||||
2010-04-29 Andreas Färber <[email protected]>
|
||||
|
||||
* configure.in: Check for -lm necessity.
|
||||
Fixes linking on Haiku.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2010-04-27 Mark Probst <[email protected]>
|
||||
|
||||
* scripts/mono-heapviz: If the major sections are too small, use a
|
||||
larger width.
|
||||
|
||||
2010-04-27 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Switch to eglib by default.
|
||||
|
||||
2010-04-26 Geoff Norton <[email protected]>
|
||||
|
||||
* configure.in: Allow cross compiling osx for 64-bit
|
||||
|
||||
2010-04-26 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Applied patch from Robert Nagy ([email protected]). Add
|
||||
sys/param.h dependencies to a few checks.
|
||||
|
||||
2010-04-25 Mark Probst <[email protected]>
|
||||
|
||||
* tools/sgen/sgen-grep-binprot.c: Support for major Mark&Sweep
|
||||
collector.
|
||||
|
||||
2010-04-20 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: Check for the asm/sigcontext.h header.
|
||||
|
||||
2010-04-20 Andrés G. Aragoneses <[email protected]>
|
||||
|
||||
* README: Replace --with-profile2 with --with-profile4.
|
||||
|
||||
2010-04-20 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: On OpenBSD, remove duplicate -pthread options in
|
||||
libmono_ldflags. Change from Robert Nagy <[email protected]>.
|
||||
|
||||
2010-04-20 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: For Linux hosts, remove libmono_ldflags="-lpthread".
|
||||
It's unnecessary (for !target_win32, pthreads are checked again
|
||||
later in configure.in), and it breaks Android (which doesn't have
|
||||
libpthread, but DOES have pthreads in libc).
|
||||
|
||||
2010-04-19 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: Disable AC_CHECK_LIB() for pthread, as this breaks
|
||||
autoconf on BSD platforms. (Why? Who knows -- it's AutoConf!)
|
||||
|
||||
2010-04-19 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
|
||||
just blindly linking to -lpthread, as Android includes pthread
|
||||
support within libc and doesn't provide a separate libpthread.
|
||||
Android's <string.h> pulls in <malloc.h> (unlike glibc), resulting
|
||||
in a build error in mono/utils/mono-codeman.c due to
|
||||
`struct mallinfo` re-declaration. Define HAVE_USR_INCLUDE_MALLOC_H
|
||||
if /usr/include/malloc.h is present to avoid this.
|
||||
|
||||
2010-04-19 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: Add header, structure member, and function checks as
|
||||
Android doesn't provide all the headers, structure members, and
|
||||
functions that a "full" Linux distro includes.
|
||||
|
||||
2010-04-19 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add a --enable-minimal=normalization option to disable support
|
||||
for string normalization.
|
||||
|
||||
2010-04-16 Marek Habersack <[email protected]>
|
||||
|
||||
* configure.in: added a check for sysconf(3)
|
||||
|
||||
2010-04-14 Miguel de Icaza <[email protected]>
|
||||
|
||||
* configure.in: turn the AC_MSG_ERROR into a AC_MSG_WARN since in
|
||||
Andrew's configuration this aborts the build:
|
||||
|
||||
host=i686-pc-linux-gnu != target=i586-suse-linux
|
||||
|
||||
And I no longer remember why I added that error in the first
|
||||
place (we need to determine perhaps the arch/OS but it is
|
||||
difficult with those strings).
|
||||
|
||||
2010-04-08 Andreia Gaita <[email protected]>
|
||||
|
||||
* configure.in: Add an extra "only" option to --with-moonlight. This
|
||||
will configure mono to only build moonlight-specific stuff and
|
||||
nothing else. --with-moonlight=yes now just adds the moon profile to
|
||||
the build
|
||||
|
||||
* Makefile.am: Add moonlight-specific rules that only build what
|
||||
moon needs. These are called directly from moon, to do fast
|
||||
moon+mono+mcs builds
|
||||
|
||||
* runtime/Makefile.am: Change the build rules to have a moonlight-only
|
||||
build configuration, as well as a normal build that optionally includes
|
||||
it
|
||||
|
||||
2010-04-07 Raja R Harinath <[email protected]>
|
||||
|
||||
* runtime/Makefile.am ($(tmpinst)/bin/dmcs): Add.
|
||||
|
||||
2010-04-06 Andreia Gaita <[email protected]>
|
||||
|
||||
* configure.in: add --with-mcs-path option to specify where the mcs
|
||||
source can be found, if not on ./mcs or ../mcs.
|
||||
Only touch the mcs and/or olive dirs and config files if we're
|
||||
actually building them
|
||||
|
||||
2010-04-05 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Append -lgc to libmono_ldflags if using an external libgc.
|
||||
|
||||
2010-04-04 Andreas Färber <[email protected]>
|
||||
|
||||
* configure.in: Fix typo.
|
||||
Set default for with_moonlight to fix "Moon Profile:" output.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2010-04-03 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Applied some openbsd changes from Robert Nagy
|
||||
<[email protected]>.
|
||||
|
||||
2010-04-03 Marek Habersack <[email protected]>
|
||||
|
||||
* configure.in: TARGET_WIN32 and MINGW_CROSS_COMPILE are defined
|
||||
when cross-compiling with MinGW
|
||||
|
||||
* build-mingw32.sh: include the 4.0 profile in the zip.
|
||||
Remove cross-compilation environment bin path from PATH before
|
||||
compiling native Mono.
|
||||
Remove autotools cache directory before each compilation phase.
|
||||
|
||||
2010-04-02 Marek Habersack <[email protected]>
|
||||
|
||||
* configure.in: include -lkernel32 in LDFLAGS when cross-compiling
|
||||
with MINGW or compiling on Cygwin.
|
||||
|
||||
* build-mingw32.sh: some changes to make the compilation work
|
||||
better on non-SuSE systems.
|
||||
|
||||
2010-04-01 Mark Probst <[email protected]>
|
||||
|
||||
* scripts/mono-heapviz: Process and output detailed pinning
|
||||
statistics.
|
||||
|
||||
2010-03-29 Andreas Färber <[email protected]>
|
||||
|
||||
* configure.in: Add support for Haiku
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2010-03-26 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add a --enable-system-aot option to control the generation of
|
||||
AOT images during the build.
|
||||
|
||||
2010-03-26 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Apply some openbsd changes from openbsd ports.
|
||||
|
||||
2010-03-23 Neale Ferguson <[email protected]>
|
||||
|
||||
* configure.in: Change ACCESS_UNALINGED to "yes" for s390/s390x.
|
||||
|
||||
2010-03-22 Andreia Gaita <[email protected]>
|
||||
|
||||
* configure.in: fix build when doing with-mcs-docs=no on a clean tree
|
||||
|
||||
2010-03-19 Zoltan Varga <[email protected]>
|
||||
|
||||
* autogen.sh: Pass -Wno-portability to automake to quiet some warnings.
|
||||
|
||||
2010-03-16 Jb Evain <[email protected]>
|
||||
|
||||
* runtime/Makefile.am, build-mingw32.sh: rename
|
||||
the net_2_1 profile to moonlight.
|
||||
|
||||
2010-03-10 Andrew Jorgensen <[email protected]>
|
||||
|
||||
* configure.in: configure eglib even when we are not building
|
||||
it (fixes dist)
|
||||
|
||||
Fri Mar 5 18:58:15 CET 2010 Paolo Molaro <[email protected]>
|
||||
|
||||
* configure.in: introduce the --enable-small-config option
|
||||
to reduce runtime requirements (and capabilities).
|
||||
|
||||
2010-03-04 Zoltan Varga <[email protected]>
|
||||
|
||||
* Makefile.am (DIST_SUBDIRS): Add eglib.
|
||||
|
||||
* autogen.sh: Run eglib's autogen.sh too.
|
||||
|
||||
2010-03-02 Rolf Bjarne Kvinge <[email protected]>
|
||||
|
||||
* Makefile.am:
|
||||
* mono/Makefile.am: Only build some subdirs when configured for
|
||||
moonlight.
|
||||
|
||||
* configure.in: If configured --with-moonlight=yes, define MOONLIGHT and
|
||||
use that variable instead of INSTALL_2_1.
|
||||
|
||||
* runtime/Makefile.am: If configured for moonlight, only build
|
||||
net_2_1_raw.
|
||||
|
||||
2010-03-02 Mark Probst <[email protected]>
|
||||
|
||||
* tools/sgen-grep-binprot.c: Tool for searching through the binary
|
||||
protocol files generated by SGen.
|
||||
|
||||
2010-02-26 Miguel de Icaza <[email protected]>
|
||||
|
||||
* Make the scripts default to 4.0 now.
|
||||
|
||||
2009-05-21 Miguel de Icaza <[email protected]>
|
||||
|
||||
* Check for sys/select.h as well
|
||||
|
||||
Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
|
||||
|
||||
* configure.in, data/mono-2.pc.in, data/Makefile.am,
|
||||
samples/embed/*: increase the API version.
|
||||
|
||||
2010-02-18 Marek Habersack <[email protected]>
|
||||
|
||||
* scripts/mono-configuration-crypto.in: added
|
||||
|
||||
* scripts/Makefile.am: added mono-configuration-crypto targets
|
||||
|
||||
2010-01-27 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Fix the setting of LLVM_CXXFLAGS.
|
||||
|
||||
2010-01-22 Andrés G. Aragoneses <[email protected]>
|
||||
|
||||
* configure.in: Improve r150055 by checking for CXX=g++ as well, according to
|
||||
http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00077.html
|
||||
|
||||
2010-01-22 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Disable the solaris tar check on !solaris platforms.
|
||||
|
||||
2010-01-22 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Check whenever g++ is installed, since libtool requires it
|
||||
even if no c++ files will be compiled.
|
||||
See BNC#572871.
|
||||
|
||||
2010-01-22 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add -fno-rrti to CXXFLAGS.
|
||||
|
||||
2010-01-20 Rolf Bjarne Kvinge <[email protected]>
|
||||
|
||||
* configure.in: Add support for disabling mdb support.
|
||||
|
||||
2010-01-15 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Don't define TARGET_WIN32 when --target is used.
|
||||
|
||||
2010-01-15 Zoltan Varga <[email protected]>
|
||||
|
||||
* scripts/get-cygwin-deps.sh: New file. Contains a script to download and setup
|
||||
the dependencies needed for compiling mono on cygwin.
|
||||
|
||||
2010-01-06 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: Add peverify script.
|
||||
|
||||
* scripts/peverify.in: Added.
|
||||
|
||||
2009-12-22 Geoff Norton <[email protected]>
|
||||
|
||||
* configure.in: Fix invalid escaping. Patch from Spina from
|
||||
www.slacky.eu.
|
||||
|
||||
2009-12-21 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add an LLVM_CFLAGS automake variable.
|
||||
|
||||
2009-12-18 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Remove the check for valgrind/memcheck.h, we include the file
|
||||
in our sources now.
|
||||
|
||||
2009-12-11 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
|
||||
for 2 parameter sched_setaffinity in older glibc versions. Fixes
|
||||
#564000.
|
||||
|
||||
2009-11-22 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Disable visibility attributes on cygwin.
|
||||
|
||||
2009-11-18 Mark Probst <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: Put mono-heapviz into EXTRA_DIST as well.
|
||||
|
||||
2009-11-18 Mark Probst <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: mono-heapviz is not a managed executable.
|
||||
|
||||
2009-11-18 Mark Probst <[email protected]>
|
||||
|
||||
* configure.in: Allow SGen without __thread.
|
||||
|
||||
2009-11-17 Marek Habersack <[email protected]>
|
||||
|
||||
* runtime/Makefile.am (TEST_SUPPORT_FILES): added bin/al2 - needed
|
||||
@@ -430,53 +13,10 @@ Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
|
||||
|
||||
* configure.in: Add a --enable-minimal=soft-debug option.
|
||||
|
||||
2009-11-15 Andreas Faerber <[email protected]>
|
||||
|
||||
* configure.in (DTrace): Add missing -s switch for dtrace -h.
|
||||
Fixes BNC #445074.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2009-11-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* acinclude.m4 (dolt_supported): Handle 'i686-pc-cygwin' too.
|
||||
|
||||
2009-11-12 Mark Probst <[email protected]>
|
||||
|
||||
* scripts/mono-heapviz: New script for generating SGen heap
|
||||
visualizations.
|
||||
|
||||
* scripts/Makefile.am: mono-heapviz added.
|
||||
|
||||
2009-11-11 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add checks for link.h and dl_iterate_phdr.
|
||||
|
||||
2009-11-10 Jonathan Chambers <[email protected]>
|
||||
|
||||
* winconfig.h: Bump version string to 2.7.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2009-11-09 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Define LLVM_MAJOR/MINOR_VERSION defines to allow working
|
||||
around changes in LLVM APIs.
|
||||
|
||||
* configure.in: Remove the MONO_ARCH_REGPARMS define.
|
||||
|
||||
* configure.in (MONO_ARCH_REGPARMS): Set MONO_ARCH_REGPARS on ARM.
|
||||
|
||||
2009-11-08 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* configure.in: Add check for FreeBSD/ppc64.
|
||||
|
||||
Patch by Justin Hibbits <[email protected]>.
|
||||
|
||||
2009-11-05 Miguel de Icaza <[email protected]>
|
||||
|
||||
* Add configure check for xbox360
|
||||
|
||||
2009-11-04 Zoltan Varga <[email protected]>
|
||||
|
||||
* acinclude.m4 (dolt_supported): Applied patch from Kornél Pál
|
||||
@@ -497,14 +37,6 @@ Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
|
||||
* configure.in: Pass -mno-cygwin to CXX too on windows. Enable AC_PROG_CXX
|
||||
since it now works on windows too.
|
||||
|
||||
2009-10-27 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add support for cross-compiling to ppc.
|
||||
|
||||
2009-10-22 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* configure.in: Add check for the deprecated attribute.
|
||||
|
||||
2009-10-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* data/Makefile.am (gdb_DATA): Install mono-gdb.py alongside the mono executable.
|
||||
@@ -512,22 +44,6 @@ Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
|
||||
* data/gdb-pre7.0: New directory, containing the mono support files for
|
||||
gdb versions before 7.0.
|
||||
|
||||
2009-10-10 Zoltan Varga <[email protected]>
|
||||
|
||||
* */CMakeLists.txt: Update this to latest autoconf files.
|
||||
|
||||
2009-10-06 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Bump version to 2.7.
|
||||
|
||||
2009-10-01 Raja R Harinath <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: Use 'mv -f' instead of 'mv'.
|
||||
|
||||
2009-09-30 Marek Safar <[email protected]>
|
||||
|
||||
* runtime/Makefile.am, configure.in: Don't build 1.1 profile
|
||||
|
||||
2009-09-29 Ankit Jain <[email protected]>
|
||||
|
||||
* mono-core.spec.in: Add Microsoft.WebApplication.targets
|
||||
@@ -5704,3 +5220,5 @@ Wed Jul 11 00:36:36 CEST 2001 Paolo Molaro <[email protected]>
|
||||
2001-05-30 Miguel de Icaza <[email protected]>
|
||||
|
||||
* NEWS:
|
||||
|
||||
|
||||
@@ -54,18 +54,6 @@ For comments, corrections and updates, please contact [email protected]
|
||||
the terms of the MIT X11, this means that this code can be
|
||||
used for any purposes by anyone.
|
||||
|
||||
** mono/metadata/sgen*: Mono's Copying Collector
|
||||
|
||||
This new garbage collector is licensed under the terms of
|
||||
the MIT X11 license, in hopes that the GC could be reused
|
||||
by third party projects, follows the same spirit than the
|
||||
Boehm GC.
|
||||
|
||||
** mono/arch/*/XXX-codegen.h
|
||||
|
||||
This are C macros that are useful when generating native
|
||||
code on various platforms. This code is MIT X11 licensed.
|
||||
|
||||
** mcs/mcs, mcs/gmcs
|
||||
|
||||
The C# Compilers (1.0 and 2.0)
|
||||
@@ -98,13 +86,6 @@ For comments, corrections and updates, please contact [email protected]
|
||||
ICSharpCode.SharpZipLib, GPL with exceptions.
|
||||
See: mcs/class/ICSharpCode.SharpZipLib/README
|
||||
|
||||
** mcs/class/System.Core/System/TimeZoneInfo.Android.cs
|
||||
|
||||
This is a port of Apache 2.0-licensed Android code, and thus is
|
||||
licensed under the Apache 2.0 license:
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
|
||||
** mcs/tools
|
||||
|
||||
|
||||
+41
-69
@@ -1,54 +1,32 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
ACLOCAL_AMFLAGS = -I .
|
||||
|
||||
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib/src mono
|
||||
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
|
||||
|
||||
if CROSS_COMPILING
|
||||
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples msvc $(docs_dir)
|
||||
# Keep in sync with SUBDIRS
|
||||
## 'tools' is not normally built
|
||||
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples tools msvc docs
|
||||
else
|
||||
if ONLY_MOONLIGHT
|
||||
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
|
||||
else
|
||||
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir)
|
||||
# Keep in sync with SUBDIRS
|
||||
## 'tools' is not normally built
|
||||
DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
|
||||
endif
|
||||
endif
|
||||
DIST_SUBDIRS = po libgc $(eglib_dir) mono ikvm-native support data runtime scripts man samples web tools msvc docs
|
||||
|
||||
EXTRA_DIST= \
|
||||
LICENSE \
|
||||
autogen.sh \
|
||||
build-mingw32.sh \
|
||||
mkinstalldirs \
|
||||
mono-uninstalled.pc.in \
|
||||
nls.m4 \
|
||||
po.m4 \
|
||||
progtest.m4 \
|
||||
winconfig.h
|
||||
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
|
||||
|
||||
# Distribute the 'mcs' tree too
|
||||
GIT_DIR ?= $(srcdir)/.git
|
||||
dist-hook:
|
||||
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
|
||||
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
|
||||
test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
|
||||
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_1_1 distdir=$$d dist-recursive
|
||||
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 distdir=$$d dist-recursive
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
noinst_DATA = mono-uninstalled.pc
|
||||
DISTCLEANFILES= mono-uninstalled.pc
|
||||
|
||||
.PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
|
||||
|
||||
# building with monolite
|
||||
mcslib = $(mcs_topdir)/class/lib
|
||||
monolite = $(mcslib)/monolite
|
||||
mono_corlib_version = $(shell sed -n "s/\#define MONO_CORLIB_VERSION //p" $(srcdir)/mono/metadata/appdomain.c)
|
||||
monolite_url = http://mono.ximian.com/daily/monolite-$(mono_corlib_version)-latest.tar.gz
|
||||
.PHONY: get-monolite-latest
|
||||
monolite_url = http://mono.ximian.com/daily/monolite-latest.tar.gz
|
||||
get-monolite-latest:
|
||||
-rm -fr $(mcslib)/monolite-*
|
||||
-mkdir -p $(mcslib)
|
||||
@@ -57,52 +35,42 @@ get-monolite-latest:
|
||||
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
|
||||
cd $(mcslib) && mv -f monolite-* monolite
|
||||
|
||||
.PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
|
||||
validate: do-build-mono-mcs
|
||||
$(MAKE) mcs-do-tests
|
||||
do-build-mono-mcs: mcs-do-clean
|
||||
compiler-tests: build-test-mono-mcs-moon
|
||||
|
||||
compiler-tests-net_2_0:
|
||||
-rm -f $(mcs_topdir)/build/common/Consts.cs.save
|
||||
-mv -f $(mcs_topdir)/build/common/Consts.cs $(mcs_topdir)/build/common/Consts.cs.save
|
||||
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
|
||||
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
|
||||
-mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
|
||||
$(MAKE) all
|
||||
mcs-do-clean:
|
||||
cd runtime && $(MAKE) clean-local
|
||||
cd mono/tests && $(MAKE) clean
|
||||
mcs-do-tests:
|
||||
cd runtime && $(MAKE) check-local
|
||||
cd mono/tests && $(MAKE) check
|
||||
$(MAKE) test_profiles=net_2_0 mcs-do-compiler-tests
|
||||
|
||||
.PHONY: compiler-tests mcs-do-compiler-tests
|
||||
compiler-tests:
|
||||
$(MAKE) test_select='TEST_SUBDIRS="tests errors"' validate
|
||||
mcs-do-compiler-tests:
|
||||
$(MAKE) test_select='TEST_SUBDIRS="tests errors"' mcs-do-tests
|
||||
|
||||
.PHONY: bootstrap-world
|
||||
bootstrap-world: compiler-tests
|
||||
$(MAKE) install
|
||||
|
||||
if MOONLIGHT
|
||||
moon-do-build: config.h
|
||||
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
|
||||
case "x$$subdir" in \
|
||||
xmono ) target="moon-do-build";; \
|
||||
* ) target="all";; \
|
||||
esac; \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
|
||||
done;
|
||||
(cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-build)
|
||||
bootstrap-world-net_2_0: compiler-tests-net_2_0
|
||||
$(MAKE) install
|
||||
|
||||
moon-do-clean:
|
||||
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
|
||||
case "x$$subdir" in \
|
||||
xmono ) target="moon-do-clean";; \
|
||||
* ) target="clean";; \
|
||||
esac; \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
|
||||
done;
|
||||
(cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-clean)
|
||||
# internal targets
|
||||
.PHONY: build-test-mono-mcs-moon
|
||||
build-test-mono-mcs-moon: do-build-moon-maybe
|
||||
$(MAKE) mcs-do-compiler-tests
|
||||
|
||||
endif
|
||||
.PHONY: do-build-mono-mcs
|
||||
do-build-mono-mcs: mcs-do-clean
|
||||
$(MAKE) all
|
||||
|
||||
.PHONY: do-build-moon-maybe
|
||||
do-build-moon-maybe: do-build-mono-mcs
|
||||
cd runtime && $(MAKE) moon-do-build
|
||||
|
||||
mcs-do-clean:
|
||||
cd runtime && $(MAKE) clean-local
|
||||
cd mono/tests && $(MAKE) clean
|
||||
mcs-do-compiler-tests:
|
||||
cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
|
||||
cd mono/tests && $(MAKE) check
|
||||
|
||||
win32getdeps:
|
||||
wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
|
||||
@@ -121,6 +89,10 @@ win32getdeps:
|
||||
win32setup:
|
||||
makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
|
||||
|
||||
bootstrap: all
|
||||
@echo "*** 'make bootstrap' is obsolete. Just run 'make' to perform a combined mono+mcs build"
|
||||
exit 1
|
||||
|
||||
patch-quiet:
|
||||
find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
|
||||
find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
|
||||
|
||||
@@ -11,6 +11,16 @@ This is Mono.
|
||||
a. Build Requirements
|
||||
---------------------
|
||||
|
||||
To build Mono, you will need the following components:
|
||||
|
||||
* pkg-config
|
||||
|
||||
Available from: http://www.freedesktop.org/Software/pkgconfig
|
||||
|
||||
* glib 2.4
|
||||
|
||||
Available from: http://www.gtk.org/
|
||||
|
||||
On Itanium, you must obtain libunwind:
|
||||
|
||||
http://www.hpl.hp.com/research/linux/libunwind/download.php4
|
||||
@@ -25,15 +35,7 @@ This is Mono.
|
||||
* libgdiplus
|
||||
|
||||
If you want to get support for System.Drawing, you will need to get
|
||||
Libgdiplus. This library in turn requires glib and pkg-config:
|
||||
|
||||
* pkg-config
|
||||
|
||||
Available from: http://www.freedesktop.org/Software/pkgconfig
|
||||
|
||||
* glib 2.4
|
||||
|
||||
Available from: http://www.gtk.org/
|
||||
Libgdiplus.
|
||||
|
||||
* libzlib
|
||||
|
||||
@@ -72,18 +74,15 @@ This is Mono.
|
||||
make V=1
|
||||
|
||||
|
||||
c. Building the software from GIT
|
||||
|
||||
c. Building the software from SVN
|
||||
---------------------------------
|
||||
|
||||
If you are building the software from GIT, make sure that you
|
||||
If you are building the software from SVN, make sure that you
|
||||
have up-to-date mcs and mono sources:
|
||||
|
||||
If you are an anonymous user:
|
||||
git clone git://github.com/mono/mono.git
|
||||
|
||||
If you are a Mono contributors with read/write privileges:
|
||||
git clone [email protected]:mono/mono.git
|
||||
|
||||
svn co svn+ssh://[email protected]/source/trunk/mono
|
||||
svn co svn+ssh://[email protected]/source/trunk/mcs
|
||||
|
||||
Then, go into the mono directory, and configure:
|
||||
|
||||
@@ -130,16 +129,16 @@ This is Mono.
|
||||
distribution, which contains just enough to run the 'mcs'
|
||||
compiler. You do this with:
|
||||
|
||||
# Run the following line after ./autogen.sh
|
||||
make get-monolite-latest
|
||||
|
||||
This will download and automatically gunzip and untar the
|
||||
tarball, and place the files appropriately so that you can then
|
||||
just run:
|
||||
|
||||
make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe
|
||||
make
|
||||
|
||||
And that will use the files downloaded by 'make get-monolite-latest.
|
||||
To ensure that you're using the 'monolite' distribution, you can
|
||||
also try passing EXTERNAL_MCS=false on the make command-line.
|
||||
|
||||
Testing and Installation
|
||||
------------------------
|
||||
@@ -165,31 +164,19 @@ This is Mono.
|
||||
|
||||
make install
|
||||
|
||||
You can verify your installation by using the mono-test-install
|
||||
script, it can diagnose some common problems with Mono's install.
|
||||
|
||||
Failure to follow these steps may result in a broken installation.
|
||||
|
||||
d. Configuration Options
|
||||
------------------------
|
||||
d. Common Configuration Options
|
||||
-------------------------------
|
||||
|
||||
The following are the configuration options that someone
|
||||
building Mono might want to use:
|
||||
|
||||
--with-sgen=yes,no
|
||||
|
||||
Generational GC support: Used to enable or disable the
|
||||
compilation of a Mono runtime with the SGen garbage collector.
|
||||
|
||||
On platforms that support it, after building Mono, you
|
||||
will have both a mono binary and a mono-sgen binary.
|
||||
Mono uses Boehm, while mono-sgen uses the Simple
|
||||
Generational GC.
|
||||
|
||||
--with-gc=[boehm, included, sgen, none]
|
||||
|
||||
Selects the default Boehm garbage collector engine to
|
||||
use, the default is the "included" value.
|
||||
Selects the garbage collector engine to use, the
|
||||
default is the "included" value.
|
||||
|
||||
included:
|
||||
This is the default value, and its
|
||||
@@ -205,6 +192,10 @@ This is Mono.
|
||||
Boehm GC, but we do not recommend that people
|
||||
use this, as it disables a few features.
|
||||
|
||||
sgen:
|
||||
The under-development Generational GC for
|
||||
Mono, do not use this in production.
|
||||
|
||||
none:
|
||||
Disables the inclusion of a garbage
|
||||
collector.
|
||||
@@ -268,17 +259,6 @@ This is Mono.
|
||||
|
||||
This value is set to `no' by default.
|
||||
|
||||
--enable-small-config=yes,no
|
||||
|
||||
Enable some tweaks to reduce memory usage and disk footprint at
|
||||
the expense of some capabilities. Typically this means that the
|
||||
number of threads that can be created is limited (256), that the
|
||||
maxmimum heap size is also reduced (256 MB) and other such limitations
|
||||
that still make mono useful, but more suitable to embedded devices
|
||||
(like mobile phones).
|
||||
|
||||
This value is set to `no' by default.
|
||||
|
||||
--with-ikvm-native=yes,no
|
||||
|
||||
Controls whether the IKVM JNI interface library is
|
||||
@@ -287,10 +267,10 @@ This is Mono.
|
||||
|
||||
This defaults to `yes'.
|
||||
|
||||
--with-profile4=yes,no
|
||||
--with-profile2=yes,no
|
||||
|
||||
Whether you want to build the 4.x profile libraries
|
||||
and runtime.
|
||||
Whether you want to build the 2.x libraries (support
|
||||
for Generics and the 2.0/3.5 APIS).
|
||||
|
||||
It defaults to `yes'.
|
||||
|
||||
@@ -305,21 +285,6 @@ This is Mono.
|
||||
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
|
||||
on the LINQ extensions for the compiler.
|
||||
|
||||
--with-moon-gc=boehm,sgen
|
||||
|
||||
Select the GC to use for Moonlight.
|
||||
|
||||
boehm:
|
||||
Selects the Boehm Garbage Collector, with the same flags
|
||||
as the regular Mono build. This is the default.
|
||||
|
||||
sgen:
|
||||
Selects the new SGen Garbage Collector, which provides
|
||||
Generational GC support, using the same flags as the
|
||||
mono-sgen build.
|
||||
|
||||
This defaults to `boehm'.
|
||||
|
||||
--with-libgdiplus=installed,sibling,<path>
|
||||
|
||||
This is used to configure where should Mono look for
|
||||
@@ -431,24 +396,6 @@ This is Mono.
|
||||
framework, and the various SSA-based
|
||||
optimizations.
|
||||
|
||||
--enable-llvm
|
||||
--enable-loadedllvm
|
||||
|
||||
This enables the use of LLVM as a code generation engine
|
||||
for Mono. The LLVM code generator and optimizer will be
|
||||
used instead of Mono's built-in code generator for both
|
||||
Just in Time and Ahead of Time compilations.
|
||||
|
||||
See the http://www.mono-project.com/Mono_LLVM for the
|
||||
full details and up-to-date information on this feature.
|
||||
|
||||
You will need to have an LLVM built that Mono can link
|
||||
against,
|
||||
|
||||
The --enable-loadedllvm variant will make the llvm backend
|
||||
into a runtime-loadable module instead of linking it directly
|
||||
into the main mono binary.
|
||||
|
||||
--enable-big-arrays
|
||||
|
||||
This enables the use arrays whose indexes are larger
|
||||
@@ -492,15 +439,6 @@ This is Mono.
|
||||
There are a number of runtime options to control this
|
||||
also, see the man page.
|
||||
|
||||
--enable-nacl
|
||||
|
||||
This configures the Mono compiler to generate code
|
||||
suitable to be used by Google's Native Client:
|
||||
|
||||
http://code.google.com/p/nativeclient/
|
||||
|
||||
Currently this is used with Mono's AOT engine as
|
||||
Native Client does not support JIT engines yet.
|
||||
|
||||
2. Using Mono
|
||||
=============
|
||||
@@ -585,4 +523,3 @@ This is Mono.
|
||||
directory is automatically configured to share the
|
||||
same prefix than this module gets.
|
||||
|
||||
|
||||
+1
-7
@@ -119,7 +119,7 @@ if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
|
||||
fi
|
||||
|
||||
echo "Running automake --gnu $am_opt ..."
|
||||
automake --add-missing --gnu -Wno-portability $am_opt ||
|
||||
automake --add-missing --gnu $am_opt ||
|
||||
{ echo "**Error**: automake failed."; exit 1; }
|
||||
echo "Running autoconf ..."
|
||||
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
|
||||
@@ -130,12 +130,6 @@ if test -d $srcdir/libgc; then
|
||||
echo Done running libgc/autogen.sh ...
|
||||
fi
|
||||
|
||||
if test -d $srcdir/eglib; then
|
||||
echo Running eglib/autogen.sh ...
|
||||
(cd $srcdir/eglib ; NOCONFIGURE=1 ./autogen.sh "$@")
|
||||
echo Done running eglib/autogen.sh ...
|
||||
fi
|
||||
|
||||
|
||||
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
|
||||
|
||||
|
||||
+36
-153
@@ -1,153 +1,66 @@
|
||||
#!/bin/bash -e
|
||||
CURDIR="`pwd`"
|
||||
MINGW=i386-mingw32msvc
|
||||
CROSS_DIR=/opt/cross/$MINGW
|
||||
EXTRA_CROSS_DIR=
|
||||
CROSS_DIR=${1:-/opt/cross/}
|
||||
MINGW=${1:-i386-mingw32msvc}
|
||||
CROSS_BIN_DIR="$CROSS_DIR/bin"
|
||||
CROSS_DLL_DIR="$CROSS_DIR/$MINGW/bin"
|
||||
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/$MINGW/lib/pkgconfig
|
||||
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
|
||||
PATH=$CROSS_BIN_DIR:$PATH
|
||||
INSTALL_DESTDIR="$CURDIR/mono-win32"
|
||||
PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
|
||||
TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
|
||||
ORIGINAL_PATH="$PATH"
|
||||
PROFILES="default net_2_0 net_2_1 net_3_5"
|
||||
|
||||
export CPPFLAGS_FOR_EGLIB CFLAGS_FOR_EGLIB CPPFLAGS_FOR_LIBGC CFLAGS_FOR_LIBGC
|
||||
|
||||
function cleanup ()
|
||||
{
|
||||
if [ -d "$TEMPORARY_PKG_CONFIG_DIR" ]; then
|
||||
rm -rf "$TEMPORARY_PKG_CONFIG_DIR"
|
||||
fi
|
||||
}
|
||||
|
||||
function check_pkg_config_dir ()
|
||||
{
|
||||
local DIR="$1"
|
||||
local DIR_PREFIX="$2"
|
||||
|
||||
if [ ! -d "$DIR" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
|
||||
for pc in "$DIR"/*.pc; do
|
||||
if [ -f $pc ]; then
|
||||
pcname="`basename $pc`"
|
||||
sed -e "s;^prefix=.*;prefix=$DIR_PREFIX;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
|
||||
fi;
|
||||
done
|
||||
|
||||
if [ -z "$CROSS_PKG_CONFIG_DIR" ]; then
|
||||
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
|
||||
fi
|
||||
}
|
||||
|
||||
function show_build_info ()
|
||||
{
|
||||
cat <<EOF
|
||||
Installation prefix: $MONO_PREFIX
|
||||
CPPFLAGS: ${CPPFLAGS:=not set}
|
||||
LDFLAGS: ${LDFLAGS:=not set}
|
||||
MONO_PATH: ${MONO_PATH:=not set}
|
||||
EOF
|
||||
}
|
||||
export PATH
|
||||
|
||||
function setup ()
|
||||
{
|
||||
local pcname
|
||||
|
||||
CROSS_BIN_DIR="$CROSS_DIR/bin"
|
||||
CROSS_DLL_DIR="$CROSS_DIR/bin"
|
||||
PATH=$CROSS_BIN_DIR:$PATH
|
||||
|
||||
MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'`
|
||||
|
||||
if [ -d ./.git ]; then
|
||||
MONO_GIT_COMMIT="`git log -1 --format=format:%t`"
|
||||
MONO_GIT_BRANCH="`git branch|grep '\*'|cut -d ' ' -f 2`"
|
||||
MONO_RELEASE="$MONO_VERSION-$MONO_GIT_BRANCH-$MONO_GIT_COMMIT"
|
||||
if [ -d ./.git/svn ]; then
|
||||
SVN_INFO='git svn info'
|
||||
elif [ -d ./.svn ]; then
|
||||
SVN_INFO='svn info'
|
||||
else
|
||||
MONO_RELEASE="$MONO_VERSION"
|
||||
SVN_INFO=""
|
||||
fi
|
||||
|
||||
MONO_PREFIX="$MONO_PREFIX/mono-$MONO_RELEASE"
|
||||
if [ -n "$SVN_INFO" ]; then
|
||||
MONO_SVN_REVISION=`$SVN_INFO | grep Revision | sed 's/.*: //'`
|
||||
MONO_BRANCH=`$SVN_INFO | grep URL | sed -e 's;.*source/;;g' -e 's;/mono;;g'`
|
||||
else
|
||||
MONO_SVN_REVISION="rUNKNOWN"
|
||||
MONO_BRANCH="tarball"
|
||||
fi
|
||||
|
||||
MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'`
|
||||
MONO_RELEASE="$MONO_VERSION-$MONO_BRANCH-r$MONO_SVN_REVISION"
|
||||
MONO_PREFIX="/mono-$MONO_RELEASE"
|
||||
|
||||
NOCONFIGURE=yes
|
||||
export NOCONFIGURE
|
||||
|
||||
check_pkg_config_dir "$CROSS_DIR/lib/pkgconfig" "$CROSS_DIR"
|
||||
|
||||
if [ -n "$EXTRA_CROSS_DIR" -a -d "$EXTRA_CROSS_DIR" ]; then
|
||||
if [ -d "$EXTRA_CROSS_DIR/bin" ]; then
|
||||
PATH="$EXTRA_CROSS_DIR/bin":$PATH
|
||||
fi
|
||||
|
||||
check_pkg_config_dir "$EXTRA_CROSS_DIR/lib/pkgconfig" "$EXTRA_CROSS_DIR"
|
||||
|
||||
if [ -d "$EXTRA_CROSS_DIR/include" ]; then
|
||||
if [ -z "$CPPFLAGS" ]; then
|
||||
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\""
|
||||
else
|
||||
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\" $CFLAGS"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d "$EXTRA_CROSS_DIR/lib" ]; then
|
||||
if [ -z "$LDFLAGS" ]; then
|
||||
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\""
|
||||
else
|
||||
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\" $LDFLAGS"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d "$EXTRA_CROSS_DIR/share/aclocal" ]; then
|
||||
if [ -z "$MONO_PATH" ]; then
|
||||
MONO_PATH="\"$EXTRA_CROSS_DIR\""
|
||||
else
|
||||
MONO_PATH="\"$EXTRA_CROSS_DIR\":$MONO_PATH"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
export PATH MONO_PATH CPPFLAGS
|
||||
show_build_info
|
||||
echo Mono Win32 installation prefix: $MONO_PREFIX
|
||||
}
|
||||
|
||||
function build ()
|
||||
{
|
||||
./autogen.sh
|
||||
|
||||
if [ -f ./Makefile ]; then
|
||||
make distclean
|
||||
fi
|
||||
|
||||
if [ -d ./autom4te.cache ]; then
|
||||
rm -rf ./autom4te.cache
|
||||
fi
|
||||
|
||||
if [ -f ./config.status ]; then
|
||||
for f in `find -name config.status -type f`; do
|
||||
rm $f
|
||||
done
|
||||
fi
|
||||
|
||||
./autogen.sh
|
||||
|
||||
BUILD="`./config.guess`"
|
||||
|
||||
if [ ! -d "$CURDIR/build-cross-windows" ]; then
|
||||
mkdir "$CURDIR/build-cross-windows"
|
||||
fi
|
||||
|
||||
cd "$CURDIR/build-cross-windows"
|
||||
rm -rf *
|
||||
../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --build=$BUILD --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name="" --with-tls=none --disable-mcs-build --disable-embed-check --enable-win32-dllmain=yes --with-libgc-threads=win32 --with-profile4=yes
|
||||
../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name=""
|
||||
make
|
||||
cd "$CURDIR"
|
||||
|
||||
if [ ! -d "$CURDIR/build-cross-windows-mcs" ]; then
|
||||
mkdir "$CURDIR/build-cross-windows-mcs"
|
||||
fi
|
||||
|
||||
rm -rf autom4te.cache
|
||||
unset PATH
|
||||
PATH="$ORIGINAL_PATH"
|
||||
export PATH
|
||||
cd "$CURDIR/build-cross-windows-mcs"
|
||||
rm -rf *
|
||||
../configure --prefix=$MONO_PREFIX --enable-parallel-mark
|
||||
@@ -162,66 +75,36 @@ function doinstall ()
|
||||
cd "$CURDIR/build-cross-windows"
|
||||
make DESTDIR="$INSTALL_DESTDIR" USE_BATCH_FILES=yes install
|
||||
|
||||
if test -d $CURDIR/mcs; then
|
||||
mcsdir=$CURDIR/mcs
|
||||
else
|
||||
mcsdir=$CURDIR/../mcs
|
||||
fi
|
||||
cd "$CURDIR/../mcs/mcs"
|
||||
|
||||
cd "$mcsdir/mcs"
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "mcs profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$mcsdir/class"
|
||||
cd "$CURDIR/../mcs/class"
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "class library profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$mcsdir/tools"
|
||||
cd "$CURDIR/../mcs/tools"
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "tools profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$CURDIR/mono-win32"
|
||||
for dll in $COPY_DLLS; do
|
||||
cp -ap "$CROSS_DLL_DIR"/$dll "$INSTALL_DESTDIR/$MONO_PREFIX/bin"
|
||||
done
|
||||
|
||||
rm -f "$CURDIR/mono-win32-$MONO_RELEASE".zip
|
||||
zip -9r "$CURDIR/mono-win32-$MONO_RELEASE".zip .
|
||||
|
||||
}
|
||||
|
||||
function usage ()
|
||||
{
|
||||
cat <<EOF
|
||||
Usage: build-mingw32.sh [OPTIONS]
|
||||
|
||||
where OPTIONS are:
|
||||
|
||||
-d DIR Sets the location of directory where MINGW is installed [$CROSS_DIR]
|
||||
-e DIR Sets the location of directory where additional cross develoment packages are installed [${EXTRA_CROSS_DIR:=none}]
|
||||
-m MINGW Sets the MINGW target name to be passed to configure [$MINGW]
|
||||
-p PREFIX Prefix at which Mono is to be installed. Build will append the 'mono-X.Y' string to that path
|
||||
EOF
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
trap cleanup 0
|
||||
|
||||
pushd . > /dev/null
|
||||
|
||||
while getopts "d:m:e:p:" opt; do
|
||||
case "$opt" in
|
||||
d) CROSS_DIR="$OPTARG" ;;
|
||||
m) MINGW="$OPTARG" ;;
|
||||
e) EXTRA_CROSS_DIR="$OPTARG" ;;
|
||||
p) MONO_PREFIX="$OPTARG" ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
done
|
||||
|
||||
setup
|
||||
build
|
||||
doinstall
|
||||
show_build_info
|
||||
|
||||
popd > /dev/null
|
||||
+249
-570
File diff suppressed because it is too large.
Load diff
@@ -3,5 +3,3 @@
|
||||
/config
|
||||
/.cvsignore
|
||||
/*.pc
|
||||
/gdb/mono-sgen-gdb.py
|
||||
/mono-sgen-gdb.py
|
||||
@@ -1,15 +0,0 @@
|
||||
2010-05-17 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-2.pc.in (Libs): Remove glib dependencies.
|
||||
|
||||
2010-05-07 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-2.pc (Requires): Remove glib dependencies.
|
||||
|
||||
2010-04-02 Jb Evain <[email protected]>
|
||||
|
||||
* dotnet35.pc.in: add System.Data.Services.dll.
|
||||
|
||||
2010-03-08 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* mono.supp: Add hazard pointers supressions.
|
||||
+12
-26
@@ -1,4 +1,4 @@
|
||||
SUBDIRS = net_2_0
|
||||
SUBDIRS = net_1_1 net_2_0
|
||||
|
||||
if INSTALL_4_0
|
||||
SUBDIRS += net_4_0
|
||||
@@ -8,47 +8,33 @@ monodir = $(sysconfdir)/mono
|
||||
|
||||
EXTRA_DIST = \
|
||||
config.in \
|
||||
browscap.ini mono.supp mono.d README ChangeLog \
|
||||
mono.pc.in mono-2.pc.in monosgen-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
|
||||
browscap.ini mono.supp mono.d README \
|
||||
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
|
||||
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
|
||||
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
|
||||
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in \
|
||||
net_1_1/machine.config \
|
||||
gdb/mono-gdb.py \
|
||||
gdb/gdb-python.diff
|
||||
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in \
|
||||
gdb/mono-gdb.py
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
||||
if SUPPORT_SGEN
|
||||
SGENPCFILE=monosgen-2.pc
|
||||
SGENGDBFILE=mono-sgen-gdb.py
|
||||
else
|
||||
SGENPCFILE=
|
||||
SGENGDBFILE=
|
||||
endif
|
||||
|
||||
if JIT_SUPPORTED
|
||||
if INTERP_SUPPORTED
|
||||
pkgconfig_DATA= mono.pc mono-2.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
|
||||
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc $(SGENPCFILE)
|
||||
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
|
||||
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
|
||||
else
|
||||
pkgconfig_DATA= mono.pc mono-2.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
|
||||
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc $(SGENPCFILE)
|
||||
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
|
||||
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
|
||||
endif
|
||||
else
|
||||
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
|
||||
endif
|
||||
|
||||
DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
|
||||
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc monosgen-2.pc mono-sgen-gdb.py
|
||||
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
|
||||
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
|
||||
|
||||
mono_DATA = config \
|
||||
browscap.ini
|
||||
|
||||
gdbdir = $(bindir)
|
||||
|
||||
mono-sgen-gdb.py: gdb/mono-gdb.py
|
||||
cp $< $@
|
||||
|
||||
gdb_DATA = gdb/mono-gdb.py $(SGENGDBFILE)
|
||||
|
||||
gdb_DATA = gdb/mono-gdb.py
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
assemblies_dir=@prefix@/lib/mono
|
||||
Libraries=${assemblies_dir}/gac/Mono.Cecil/0.9.4.0__0738eb9f132ed756/Mono.Cecil.dll
|
||||
Libraries=${assemblies_dir}/gac/Mono.Cecil/0.6.9.0__0738eb9f132ed756/Mono.Cecil.dll
|
||||
|
||||
Name: Mono Internal -- Do not use.
|
||||
Description: Mono Internal Libraries -- Do not use
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
<dllmap dll="libX11" target="@X11@" os="!windows" />
|
||||
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
|
||||
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
|
||||
<dllmap dll="libcups" target="libcups.dylib" os="osx"/>
|
||||
<dllmap dll="i:kernel32.dll">
|
||||
<dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
|
||||
<dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/>
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
Name: Standard libraries in a .NET setup
|
||||
Description: References all the standard .NET libraries for compilation
|
||||
Version: @VERSION@
|
||||
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll
|
||||
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
Name: Standard libraries in a .NET setup
|
||||
Description: References all the standard .NET libraries for compilation (.NET Framework 3.5 compatibility)
|
||||
Version: @VERSION@
|
||||
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Data.Services.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.dll
|
||||
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.dll
|
||||
@@ -1,7 +1,3 @@
|
||||
2010-06-28 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Add pretty printers for more runtime data structures.
|
||||
|
||||
2009-10-13 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Add an 'xdb' command to flush the debugging info.
|
||||
|
||||
+4
-127
@@ -103,11 +103,8 @@ class ObjectPrinter:
|
||||
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
|
||||
if class_name [-2:len(class_name)] == "[]":
|
||||
return {}.__iter__ ()
|
||||
try:
|
||||
gdb_type = gdb.lookup_type ("struct %s_%s" % (class_ns.replace (".", "_"), class_name))
|
||||
return self._iterator(obj.cast (gdb_type))
|
||||
except:
|
||||
return {}.__iter__ ()
|
||||
gdb_type = gdb.lookup_type ("struct %s_%s" % (class_ns.replace (".", "_"), class_name))
|
||||
return self._iterator(obj.cast (gdb_type))
|
||||
except:
|
||||
print sys.exc_info ()[0]
|
||||
print sys.exc_info ()[1]
|
||||
@@ -161,125 +158,15 @@ class MonoClassPrinter:
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
def to_string_inner(self, add_quotes):
|
||||
def to_string(self):
|
||||
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
|
||||
return "0x0"
|
||||
klass = self.val.dereference ()
|
||||
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
|
||||
if add_quotes:
|
||||
return "\"%s\"" % (class_name)
|
||||
else:
|
||||
return class_name
|
||||
return "\"%s\"" % (class_name)
|
||||
# This returns more info but requires calling into the inferior
|
||||
#return "\"%s\"" % (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*)%s)->byval_arg)" % (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
|
||||
|
||||
def to_string(self):
|
||||
try:
|
||||
return self.to_string_inner (True)
|
||||
except:
|
||||
#print sys.exc_info ()[0]
|
||||
#print sys.exc_info ()[1]
|
||||
return str(self.val.cast (gdb.lookup_type ("gpointer")))
|
||||
|
||||
class MonoGenericInstPrinter:
|
||||
"Print a MonoGenericInst structure"
|
||||
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
def to_string(self):
|
||||
inst = self.val.dereference ()
|
||||
inst_len = inst ["type_argc"]
|
||||
inst_args = inst ["type_argv"]
|
||||
inst_str = ""
|
||||
for i in range(0, inst_len):
|
||||
print inst_args
|
||||
type_printer = MonoTypePrinter (inst_args [i])
|
||||
if i > 0:
|
||||
inst_str = inst_str + ", "
|
||||
inst_str = inst_str + type_printer.to_string ()
|
||||
return inst_str
|
||||
|
||||
class MonoGenericClassPrinter:
|
||||
"Print a MonoGenericClass structure"
|
||||
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
def to_string_inner(self):
|
||||
gclass = self.val.dereference ()
|
||||
container_str = str(gclass ["container_class"])
|
||||
class_inst = gclass ["context"]["class_inst"]
|
||||
class_inst_str = ""
|
||||
if int(class_inst.cast (gdb.lookup_type ("guint64"))) != 0:
|
||||
class_inst_str = str(class_inst)
|
||||
method_inst = gclass ["context"]["method_inst"]
|
||||
method_inst_str = ""
|
||||
if int(method_inst.cast (gdb.lookup_type ("guint64"))) != 0:
|
||||
method_inst_str = str(method_inst)
|
||||
return "%s, [%s], [%s]>" % (container_str, class_inst_str, method_inst_str)
|
||||
|
||||
def to_string(self):
|
||||
try:
|
||||
return self.to_string_inner ()
|
||||
except:
|
||||
#print sys.exc_info ()[0]
|
||||
#print sys.exc_info ()[1]
|
||||
return str(self.val.cast (gdb.lookup_type ("gpointer")))
|
||||
|
||||
class MonoTypePrinter:
|
||||
"Print a MonoType structure"
|
||||
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
def to_string_inner(self, csharp):
|
||||
try:
|
||||
t = self.val.dereference ()
|
||||
|
||||
kind = str (t ["type"]).replace ("MONO_TYPE_", "").lower ()
|
||||
info = ""
|
||||
|
||||
if kind == "class":
|
||||
p = MonoClassPrinter(t ["data"]["klass"])
|
||||
info = p.to_string ()
|
||||
elif kind == "genericinst":
|
||||
info = str(t ["data"]["generic_class"])
|
||||
|
||||
if info != "":
|
||||
return "{%s, %s}" % (kind, info)
|
||||
else:
|
||||
return "{%s}" % (kind)
|
||||
except:
|
||||
#print sys.exc_info ()[0]
|
||||
#print sys.exc_info ()[1]
|
||||
return str(self.val.cast (gdb.lookup_type ("gpointer")))
|
||||
|
||||
def to_string(self):
|
||||
return self.to_string_inner (False)
|
||||
|
||||
class MonoMethodRgctxPrinter:
|
||||
"Print a MonoMethodRgctx structure"
|
||||
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
|
||||
def to_string(self):
|
||||
rgctx = self.val.dereference ()
|
||||
klass = rgctx ["class_vtable"].dereference () ["klass"]
|
||||
klass_printer = MonoClassPrinter (klass)
|
||||
inst = rgctx ["method_inst"].dereference ()
|
||||
inst_len = inst ["type_argc"]
|
||||
inst_args = inst ["type_argv"]
|
||||
inst_str = ""
|
||||
for i in range(0, inst_len):
|
||||
print inst_args
|
||||
type_printer = MonoTypePrinter (inst_args [i])
|
||||
if i > 0:
|
||||
inst_str = inst_str + ", "
|
||||
inst_str = inst_str + type_printer.to_string ()
|
||||
return "MRGCTX[%s, [%s]]" % (klass_printer.to_string(), inst_str)
|
||||
|
||||
def lookup_pretty_printer(val):
|
||||
t = str (val.type)
|
||||
if t == "object":
|
||||
@@ -288,20 +175,10 @@ def lookup_pretty_printer(val):
|
||||
return ObjectPrinter (val)
|
||||
if t == "string":
|
||||
return StringPrinter (val)
|
||||
if t == "MonoString *":
|
||||
return StringPrinter (val)
|
||||
if t == "MonoMethod *":
|
||||
return MonoMethodPrinter (val)
|
||||
if t == "MonoClass *":
|
||||
return MonoClassPrinter (val)
|
||||
if t == "MonoType *":
|
||||
return MonoTypePrinter (val)
|
||||
if t == "MonoGenericInst *":
|
||||
return MonoGenericInstPrinter (val)
|
||||
if t == "MonoGenericClass *":
|
||||
return MonoGenericClassPrinter (val)
|
||||
if t == "MonoMethodRuntimeGenericContext *":
|
||||
return MonoMethodRgctxPrinter (val)
|
||||
return None
|
||||
|
||||
def register_csharp_printers(obj):
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
prefix=${pcfiledir}/../..
|
||||
exec_prefix=${pcfiledir}/../..
|
||||
libdir=${prefix}/@reloc_libdir@
|
||||
includedir=${prefix}/include/mono-@API_VER@
|
||||
sysconfdir=@sysconfdir@
|
||||
|
||||
Name: Mono
|
||||
Description: Mono Runtime
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} @export_ldflags@ -lmono-@API_VER@ @libmono_ldflags@
|
||||
Cflags: -I${includedir} @libmono_cflags@
|
||||
@@ -6,4 +6,4 @@ includedir=${prefix}/include
|
||||
Name: Mono.Cairo
|
||||
Description: Cairo bindings for Mono
|
||||
Version: @VERSION@
|
||||
Libs: -r:${prefix}/lib/mono/2.0/Mono.Cairo.dll
|
||||
Libs: -r:${prefix}/lib/mono/1.0/Mono.Cairo.dll
|
||||
@@ -6,4 +6,4 @@ libdir=${exec_prefix}/lib
|
||||
Name: Mono NUnit
|
||||
Description: Mono's version of NUnit
|
||||
Version: @VERSION@
|
||||
Libs: -r:${libdir}/mono/2.0/nunit.core.dll -r:${libdir}/mono/2.0/nunit.core.interfaces.dll -r:${libdir}/mono/2.0/nunit.core.extensions.dll -r:${libdir}/mono/2.0/nunit.framework.dll -r:${libdir}/mono/2.0/nunit.framework.extensions.dll -r:${libdir}/mono/2.0/nunit.mocks.dll -r:${libdir}/mono/2.0/nunit.util.dll -r:${libdir}/mono/2.0/nunit-console-runner.dll
|
||||
Libs: -r:${libdir}/mono/1.0/nunit.core.dll -r:${libdir}/mono/1.0/nunit.core.interfaces.dll -r:${libdir}/mono/1.0/nunit.core.extensions.dll -r:${libdir}/mono/1.0/nunit.framework.dll -r:${libdir}/mono/1.0/nunit.framework.extensions.dll -r:${libdir}/mono/1.0/nunit.mocks.dll -r:${libdir}/mono/1.0/nunit.util.dll -r:${libdir}/mono/1.0/nunit-console-runner.dll
|
||||
@@ -4,4 +4,4 @@ Sources=${assemblies_dir}/Options.cs
|
||||
|
||||
Name: Mono.Options
|
||||
Description: Command Line Parsing Library
|
||||
Version: 0.2.2
|
||||
Version: 0.2.1
|
||||
@@ -7,3 +7,6 @@ sysconfdir=@sysconfdir@
|
||||
Name: Mono
|
||||
Description: Mono Runtime
|
||||
Version: @VERSION@
|
||||
Requires: glib-2.0 gthread-2.0
|
||||
Libs: -L${libdir} @export_ldflags@ -lmono @libmono_ldflags@
|
||||
Cflags: -I${includedir} @libmono_cflags@
|
||||
+1
-14
@@ -37,17 +37,4 @@
|
||||
fun:*
|
||||
obj:*mono
|
||||
}
|
||||
{
|
||||
mono - Invalid write of size 4 hazardous_pointer
|
||||
Memcheck:Addr4
|
||||
fun:get_hazardous_pointer
|
||||
fun:*
|
||||
obj:*mono
|
||||
}
|
||||
{
|
||||
mono - Invalid write of size 4 jit_info_table_find
|
||||
Memcheck:Addr4
|
||||
fun:mono_jit_info_table_find
|
||||
fun:*
|
||||
obj:*mono
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
prefix=${pcfiledir}/../..
|
||||
exec_prefix=${pcfiledir}/../..
|
||||
libdir=${prefix}/@reloc_libdir@
|
||||
includedir=${prefix}/include/mono-@API_VER@
|
||||
sysconfdir=@sysconfdir@
|
||||
|
||||
Name: Mono
|
||||
Description: Mono Runtime
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} @export_ldflags@ -lmonosgen-@API_VER@ @libmono_ldflags@
|
||||
Cflags: -I${includedir} @libmono_cflags@
|
||||
@@ -236,8 +236,6 @@
|
||||
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
|
||||
<!-- Silverlight 2.0 key -->
|
||||
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
|
||||
<!-- XNA Framework key -->
|
||||
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
|
||||
</pubTokenMapping>
|
||||
</strongNames>
|
||||
</configuration>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
/Compat.browser -crlf
|
||||
@@ -474,15 +474,10 @@ private CodeDomProvider GetProvider(string langId)
|
||||
//
|
||||
// Document generation
|
||||
//
|
||||
class UTF8StringWriter : StringWriter {
|
||||
public override Encoding Encoding {
|
||||
get { return Encoding.UTF8; }
|
||||
}
|
||||
}
|
||||
|
||||
string GenerateDocument ()
|
||||
{
|
||||
UTF8StringWriter sw = new UTF8StringWriter ();
|
||||
StringWriter sw = new StringWriter ();
|
||||
|
||||
if (CurrentDocType == "wsdl")
|
||||
descriptions [CurrentDocInd].Write (sw);
|
||||
|
||||
@@ -84,10 +84,6 @@
|
||||
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</sectionGroup>
|
||||
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
|
||||
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
|
||||
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
|
||||
</sectionGroup>
|
||||
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</configSections>
|
||||
@@ -219,8 +215,6 @@
|
||||
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
|
||||
<!-- Silverlight 2.0 key -->
|
||||
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
|
||||
<!-- XNA Framework key -->
|
||||
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
|
||||
</pubTokenMapping>
|
||||
</strongNames>
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
/Makefile
|
||||
/Makefile.in
|
||||
File diff suppressed because it is too large.
Load diff
@@ -4,11 +4,9 @@ monodir = $(sysconfdir)/mono/4.0
|
||||
|
||||
EXTRA_DIST = machine.config \
|
||||
web.config \
|
||||
DefaultWsdlHelpGenerator.aspx \
|
||||
settings.map
|
||||
|
||||
mono_DATA = machine.config \
|
||||
web.config \
|
||||
DefaultWsdlHelpGenerator.aspx \
|
||||
settings.map
|
||||
|
||||
@@ -62,17 +62,6 @@
|
||||
</sectionGroup>
|
||||
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
</sectionGroup>
|
||||
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
|
||||
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
|
||||
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
||||
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
|
||||
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
|
||||
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
||||
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
||||
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
||||
</sectionGroup>
|
||||
</sectionGroup>
|
||||
</sectionGroup>
|
||||
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="connectionManagement" type="System.Net.Configuration.ConnectionManagementSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
@@ -85,28 +74,18 @@
|
||||
<section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</sectionGroup>
|
||||
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="standardEndpoints" type="System.ServiceModel.Configuration.StandardEndpointsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
||||
<section name="routing" type="System.ServiceModel.Routing.Configuration.RoutingSection, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<section name="protocolMapping" type="System.ServiceModel.Configuration.ProtocolMappingSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
||||
</sectionGroup>
|
||||
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
|
||||
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
|
||||
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
|
||||
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</sectionGroup>
|
||||
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<section name="memoryCache" type="System.Runtime.Caching.Configuration.MemoryCacheSection, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<connectionStrings>
|
||||
@@ -236,8 +215,6 @@
|
||||
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
|
||||
<!-- Silverlight 2.0 key -->
|
||||
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
|
||||
<!-- XNA Framework key -->
|
||||
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
|
||||
</pubTokenMapping>
|
||||
</strongNames>
|
||||
|
||||
@@ -290,15 +267,6 @@
|
||||
<bindingExtensions>
|
||||
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
</bindingExtensions>
|
||||
<endpointExtensions>
|
||||
<add name="dynamicEndpoint" type="System.ServiceModel.Discovery.Configuration.DynamicEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="discoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.DiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="udpDiscoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpDiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="announcementEndpoint" type="System.ServiceModel.Discovery.Configuration.AnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="udpAnnouncementEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpAnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="webHttpEndpoint" type="System.ServiceModel.Configuration.WebHttpEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="webScriptEndpoint" type="System.ServiceModel.Configuration.WebScriptEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
</endpointExtensions>
|
||||
</extensions>
|
||||
</system.serviceModel>
|
||||
</configuration>
|
||||
|
||||
+43
-142
@@ -2,20 +2,6 @@
|
||||
|
||||
<configuration>
|
||||
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<providerOption name="CompilerVersion" value="v4.0"/>
|
||||
<providerOption name="WarnAsError" value="false"/>
|
||||
</compiler>
|
||||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<providerOption name="CompilerVersion" value="v4.0"/>
|
||||
<providerOption name="OptionInfer" value="true"/>
|
||||
<providerOption name="WarnAsError" value="false"/>
|
||||
</compiler>
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
|
||||
<system.web>
|
||||
<monoSettings>
|
||||
<compilersCompatibility>
|
||||
@@ -28,86 +14,41 @@
|
||||
<allow users="*" />
|
||||
</authorization>
|
||||
<httpHandlers>
|
||||
<add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />
|
||||
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
|
||||
<add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
|
||||
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
|
||||
<add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
|
||||
<add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="True" />
|
||||
<add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True" />
|
||||
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
|
||||
<add path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
|
||||
<add path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
|
||||
<add path="*.asax" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.ascx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.master" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.skin" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.browser" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.sitemap" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.dll.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
|
||||
<add path="*.exe.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
|
||||
<add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.csproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.vb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.vbproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.webinfo" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.licx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.resx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.resources" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.mdb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.vjsproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.java" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.jsl" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.ldb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.ad" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.dd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.ldd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.sd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.cd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.adprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.lddprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.sdm" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.sdmDocument" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.mdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.ldf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.exclude" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<add path="*.refresh" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
|
||||
<!--
|
||||
<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
|
||||
-->
|
||||
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add path="*.rules" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
|
||||
<!--
|
||||
<add path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
|
||||
<add path="*.xamlx" verb="*" type="System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
|
||||
-->
|
||||
<add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" />
|
||||
<add path="*" verb="*" type="System.Web.HttpMethodNotAllowedHandler" validate="True" />
|
||||
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.master" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.resources" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.skin" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.browser" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.sitemap" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.webinfo" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.resx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.Config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.vb" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.csproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
|
||||
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
|
||||
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
</httpHandlers>
|
||||
<httpModules>
|
||||
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
|
||||
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
|
||||
<!--
|
||||
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
|
||||
-->
|
||||
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
|
||||
<!--
|
||||
<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
|
||||
-->
|
||||
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
|
||||
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
|
||||
<!--
|
||||
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
|
||||
-->
|
||||
<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />
|
||||
<add name="Profile" type="System.Web.Profile.ProfileModule" />
|
||||
<!--
|
||||
<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
-->
|
||||
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
|
||||
<add name="ScriptModule-4.0" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add name="RoleManager" type="System.Web.Security.RoleManagerModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
</httpModules>
|
||||
<authentication mode="Forms">
|
||||
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
|
||||
@@ -143,52 +84,22 @@
|
||||
<!-- <add namespace="System.Web.UI.WebControls.WebParts" /> -->
|
||||
<add namespace="System.Web.UI.HtmlControls" />
|
||||
</namespaces>
|
||||
|
||||
<controls>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.WebParts" assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.Expressions" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</controls>
|
||||
</pages>
|
||||
<webControls clientScriptsLocation="/web_scripts" />
|
||||
<compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" >
|
||||
<assemblies>
|
||||
<add assembly="mscorlib" />
|
||||
<add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<!--<add assembly="mscorlib" /> -->
|
||||
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<!-- <add assembly="System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> -->
|
||||
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<!-- <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
|
||||
<!-- <add assembly="System.ServiceModel.Channels, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
|
||||
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
|
||||
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
|
||||
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
||||
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<!-- <add assembly="System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
|
||||
<!-- <add assembly="System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
|
||||
<!-- <add assembly="System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
|
||||
<!-- <add assembly="System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
|
||||
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<!-- <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
|
||||
<!-- <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> -->
|
||||
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<!-- <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
|
||||
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<add assembly="*" /> <!-- Add assemblies in bin directory -->
|
||||
</assemblies>
|
||||
<expressionBuilders>
|
||||
@@ -198,10 +109,6 @@
|
||||
type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add expressionPrefix="AppSettings"
|
||||
type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add expressionPrefix="RouteUrl" type="System.Web.Compilation.RouteUrlExpressionBuilder"/>
|
||||
<!--
|
||||
<add expressionPrefix="RouteValue" type="System.Web.Compilation.RouteValueExpressionBuilder"/>
|
||||
-->
|
||||
</expressionBuilders>
|
||||
<buildProviders>
|
||||
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" />
|
||||
@@ -219,12 +126,6 @@
|
||||
<add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" />
|
||||
<add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" />
|
||||
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
|
||||
<!--
|
||||
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
|
||||
<add extension=".xoml" type="System.ServiceModel.Activation.WorkflowServiceBuildProvider, System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<add extension=".xamlx" type="System.Xaml.Hosting.XamlBuildProvider, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
-->
|
||||
</buildProviders>
|
||||
</compilation>
|
||||
<httpRuntime executionTimeout="110"
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Name: System.Web.Mvc2
|
||||
Description: System.Web.Mvc - ASP.NET MVC v2
|
||||
Version: 2.0.0.0
|
||||
Libs: -r:@prefix@/lib/mono/gac/System.Web.Mvc/2.0.0.0__31bf3856ad364e35/System.Web.Mvc.dll
|
||||
@@ -8,4 +8,3 @@
|
||||
/mono-file-formats.zip
|
||||
/mono-tools.tree
|
||||
/mono-tools.zip
|
||||
/AgilityPack.dll*
|
||||
Executable
BIN
Binary file not shown.
@@ -1,22 +1,3 @@
|
||||
2010-04-06 Andreia Gaita <[email protected]>
|
||||
|
||||
* Makefile.am: fix distcheck - several targets get built on the
|
||||
srcdir, which has no write permissions on make distcheck, so make
|
||||
sure permissions are set
|
||||
|
||||
2009-12-22 Jo Shields <[email protected]>
|
||||
* HtmlAgilityPack/LICENSE: Include upstream license (Ms-PL) since the
|
||||
file headers don't specify it
|
||||
|
||||
2009-12-22 Jo Shields <[email protected]>
|
||||
|
||||
* HtmlAgilityPack/*: Bundle HtmlAgilityPack 1.4~beta2 from
|
||||
http://www.codeplex.com/htmlagilitypack in source form.
|
||||
|
||||
* AgilityPack.dll: Remove binary assembly, use source instead.
|
||||
|
||||
* docs.make Makefile.am README: Reflect above changes
|
||||
|
||||
2009-02-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* Makefile.am (EXTRA_DIST): Remove removed files.
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
/EncodingFoundException.cs -crlf
|
||||
/HtmlAttribute.cs -crlf
|
||||
/HtmlAttributeCollection.cs -crlf
|
||||
/HtmlCmdLine.cs -crlf
|
||||
/HtmlCommentNode.cs -crlf
|
||||
/HtmlConsoleListener.cs -crlf
|
||||
/HtmlDocument.cs -crlf
|
||||
/HtmlElementFlag.cs -crlf
|
||||
/HtmlEntity.cs -crlf
|
||||
/HtmlNameTable.cs -crlf
|
||||
/HtmlNode.cs -crlf
|
||||
/HtmlNodeCollection.cs -crlf
|
||||
/HtmlNodeNavigator.cs -crlf
|
||||
/HtmlNodeType.cs -crlf
|
||||
/HtmlParseError.cs -crlf
|
||||
/HtmlParseErrorCode.cs -crlf
|
||||
/HtmlTextNode.cs -crlf
|
||||
/HtmlWeb.cs -crlf
|
||||
/HtmlWebException.cs -crlf
|
||||
/IOLibrary.cs -crlf
|
||||
/LICENSE -crlf
|
||||
/MixedCodeDocument.cs -crlf
|
||||
/MixedCodeDocumentCodeFragment.cs -crlf
|
||||
/MixedCodeDocumentFragment.cs -crlf
|
||||
/MixedCodeDocumentFragmentList.cs -crlf
|
||||
/MixedCodeDocumentFragmentType.cs -crlf
|
||||
/MixedCodeDocumentTextFragment.cs -crlf
|
||||
/NameValuePair.cs -crlf
|
||||
/NameValuePairList.cs -crlf
|
||||
/crc32.cs -crlf
|
||||
@@ -1,33 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
internal class EncodingFoundException : Exception
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private Encoding _encoding;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal EncodingFoundException(Encoding encoding)
|
||||
{
|
||||
_encoding = encoding;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
internal Encoding Encoding
|
||||
{
|
||||
get { return _encoding; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,260 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
|
||||
#region
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an HTML attribute.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("Name: {OriginalName}, Value: {Value}")]
|
||||
public class HtmlAttribute : IComparable
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private int _line;
|
||||
internal int _lineposition;
|
||||
internal string _name;
|
||||
internal int _namelength;
|
||||
internal int _namestartindex;
|
||||
internal HtmlDocument _ownerdocument; // attribute can exists without a node
|
||||
internal HtmlNode _ownernode;
|
||||
private AttributeValueQuote _quoteType = AttributeValueQuote.DoubleQuote;
|
||||
internal int _streamposition;
|
||||
internal string _value;
|
||||
internal int _valuelength;
|
||||
internal int _valuestartindex;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal HtmlAttribute(HtmlDocument ownerdocument)
|
||||
{
|
||||
_ownerdocument = ownerdocument;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the line number of this attribute in the document.
|
||||
/// </summary>
|
||||
public int Line
|
||||
{
|
||||
get { return _line; }
|
||||
internal set { _line = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the column number of this attribute in the document.
|
||||
/// </summary>
|
||||
public int LinePosition
|
||||
{
|
||||
get { return _lineposition; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the qualified name of the attribute.
|
||||
/// </summary>
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_name == null)
|
||||
{
|
||||
_name = _ownerdocument._text.Substring(_namestartindex, _namelength);
|
||||
}
|
||||
return _name.ToLower();
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
throw new ArgumentNullException("value");
|
||||
}
|
||||
_name = value;
|
||||
if (_ownernode != null)
|
||||
{
|
||||
_ownernode._innerchanged = true;
|
||||
_ownernode._outerchanged = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Name of attribute with original case
|
||||
/// </summary>
|
||||
public string OriginalName
|
||||
{
|
||||
get { return _name; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the HTML document to which this attribute belongs.
|
||||
/// </summary>
|
||||
public HtmlDocument OwnerDocument
|
||||
{
|
||||
get { return _ownerdocument; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the HTML node to which this attribute belongs.
|
||||
/// </summary>
|
||||
public HtmlNode OwnerNode
|
||||
{
|
||||
get { return _ownernode; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Specifies what type of quote the data should be wrapped in
|
||||
/// </summary>
|
||||
public AttributeValueQuote QuoteType
|
||||
{
|
||||
get { return _quoteType; }
|
||||
set { _quoteType = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the stream position of this attribute in the document, relative to the start of the document.
|
||||
/// </summary>
|
||||
public int StreamPosition
|
||||
{
|
||||
get { return _streamposition; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the attribute.
|
||||
/// </summary>
|
||||
public string Value
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_value == null)
|
||||
{
|
||||
_value = _ownerdocument._text.Substring(_valuestartindex, _valuelength);
|
||||
}
|
||||
return _value;
|
||||
}
|
||||
set
|
||||
{
|
||||
_value = value;
|
||||
if (_ownernode != null)
|
||||
{
|
||||
_ownernode._innerchanged = true;
|
||||
_ownernode._outerchanged = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal string XmlName
|
||||
{
|
||||
get { return HtmlDocument.GetXmlName(Name); }
|
||||
}
|
||||
|
||||
internal string XmlValue
|
||||
{
|
||||
get { return Value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a valid XPath string that points to this Attribute
|
||||
/// </summary>
|
||||
public string XPath
|
||||
{
|
||||
get
|
||||
{
|
||||
string basePath = (OwnerNode == null) ? "/" : OwnerNode.XPath + "/";
|
||||
return basePath + GetRelativeXpath();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IComparable Members
|
||||
|
||||
/// <summary>
|
||||
/// Compares the current instance with another attribute. Comparison is based on attributes' name.
|
||||
/// </summary>
|
||||
/// <param name="obj">An attribute to compare with this instance.</param>
|
||||
/// <returns>A 32-bit signed integer that indicates the relative order of the names comparison.</returns>
|
||||
public int CompareTo(object obj)
|
||||
{
|
||||
HtmlAttribute att = obj as HtmlAttribute;
|
||||
if (att == null)
|
||||
{
|
||||
throw new ArgumentException("obj");
|
||||
}
|
||||
return Name.CompareTo(att.Name);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Creates a duplicate of this attribute.
|
||||
/// </summary>
|
||||
/// <returns>The cloned attribute.</returns>
|
||||
public HtmlAttribute Clone()
|
||||
{
|
||||
HtmlAttribute att = new HtmlAttribute(_ownerdocument);
|
||||
att.Name = Name;
|
||||
att.Value = Value;
|
||||
return att;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes this attribute from it's parents collection
|
||||
/// </summary>
|
||||
public void Remove()
|
||||
{
|
||||
_ownernode.Attributes.Remove(this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private string GetRelativeXpath()
|
||||
{
|
||||
if (OwnerNode == null)
|
||||
return Name;
|
||||
|
||||
int i = 1;
|
||||
foreach (HtmlAttribute node in OwnerNode.Attributes)
|
||||
{
|
||||
if (node.Name != Name) continue;
|
||||
|
||||
if (node == this)
|
||||
break;
|
||||
|
||||
i++;
|
||||
}
|
||||
return "@" + Name + "[" + i + "]";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An Enum representing different types of Quotes used for surrounding attribute values
|
||||
/// </summary>
|
||||
public enum AttributeValueQuote
|
||||
{
|
||||
/// <summary>
|
||||
/// A single quote mark '
|
||||
/// </summary>
|
||||
SingleQuote,
|
||||
/// <summary>
|
||||
/// A double quote mark "
|
||||
/// </summary>
|
||||
DoubleQuote
|
||||
}
|
||||
}
|
||||
@@ -1,394 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a combined list and collection of HTML nodes.
|
||||
/// </summary>
|
||||
public class HtmlAttributeCollection : IList<HtmlAttribute>
|
||||
{
|
||||
#region Fields
|
||||
|
||||
internal Dictionary<string, HtmlAttribute> Hashitems = new Dictionary<string, HtmlAttribute>();
|
||||
private HtmlNode _ownernode;
|
||||
private List<HtmlAttribute> items = new List<HtmlAttribute>();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal HtmlAttributeCollection(HtmlNode ownernode)
|
||||
{
|
||||
_ownernode = ownernode;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets a given attribute from the list using its name.
|
||||
/// </summary>
|
||||
public HtmlAttribute this[string name]
|
||||
{
|
||||
get
|
||||
{
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name");
|
||||
}
|
||||
return Hashitems.ContainsKey(name.ToLower()) ? Hashitems[name.ToLower()] : null;
|
||||
}
|
||||
set { Append(value); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IList<HtmlAttribute> Members
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of elements actually contained in the list.
|
||||
/// </summary>
|
||||
public int Count
|
||||
{
|
||||
get { return items.Count; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets readonly status of colelction
|
||||
/// </summary>
|
||||
public bool IsReadOnly
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the attribute at the specified index.
|
||||
/// </summary>
|
||||
public HtmlAttribute this[int index]
|
||||
{
|
||||
get { return items[index]; }
|
||||
set { items[index] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds supplied item to collection
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
public void Add(HtmlAttribute item)
|
||||
{
|
||||
Append(item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Explicit clear
|
||||
/// </summary>
|
||||
void ICollection<HtmlAttribute>.Clear()
|
||||
{
|
||||
items.Clear();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retreives existence of supplied item
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
public bool Contains(HtmlAttribute item)
|
||||
{
|
||||
return items.Contains(item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies collection to array
|
||||
/// </summary>
|
||||
/// <param name="array"></param>
|
||||
/// <param name="arrayIndex"></param>
|
||||
public void CopyTo(HtmlAttribute[] array, int arrayIndex)
|
||||
{
|
||||
items.CopyTo(array, arrayIndex);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get Explicit enumerator
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IEnumerator<HtmlAttribute> IEnumerable<HtmlAttribute>.GetEnumerator()
|
||||
{
|
||||
return items.GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Explicit non-generic enumerator
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return items.GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the index for the supplied item, -1 if not found
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
public int IndexOf(HtmlAttribute item)
|
||||
{
|
||||
return items.IndexOf(item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Inserts given item into collection at supplied index
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <param name="item"></param>
|
||||
public void Insert(int index, HtmlAttribute item)
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
throw new ArgumentNullException("item");
|
||||
}
|
||||
|
||||
Hashitems[item.Name] = item;
|
||||
item._ownernode = _ownernode;
|
||||
items.Insert(index, item);
|
||||
|
||||
_ownernode._innerchanged = true;
|
||||
_ownernode._outerchanged = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Explicit collection remove
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
bool ICollection<HtmlAttribute>.Remove(HtmlAttribute item)
|
||||
{
|
||||
return items.Remove(item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes the attribute at the specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">The index of the attribute to remove.</param>
|
||||
public void RemoveAt(int index)
|
||||
{
|
||||
HtmlAttribute att = items[index];
|
||||
Hashitems.Remove(att.Name);
|
||||
items.RemoveAt(index);
|
||||
|
||||
_ownernode._innerchanged = true;
|
||||
_ownernode._outerchanged = true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Adds a new attribute to the collection with the given values
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="value"></param>
|
||||
public void Add(string name, string value)
|
||||
{
|
||||
Append(name, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Inserts the specified attribute as the last attribute in the collection.
|
||||
/// </summary>
|
||||
/// <param name="newAttribute">The attribute to insert. May not be null.</param>
|
||||
/// <returns>The appended attribute.</returns>
|
||||
public HtmlAttribute Append(HtmlAttribute newAttribute)
|
||||
{
|
||||
if (newAttribute == null)
|
||||
{
|
||||
throw new ArgumentNullException("newAttribute");
|
||||
}
|
||||
|
||||
Hashitems[newAttribute.Name] = newAttribute;
|
||||
newAttribute._ownernode = _ownernode;
|
||||
items.Add(newAttribute);
|
||||
|
||||
_ownernode._innerchanged = true;
|
||||
_ownernode._outerchanged = true;
|
||||
return newAttribute;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates and inserts a new attribute as the last attribute in the collection.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the attribute to insert.</param>
|
||||
/// <returns>The appended attribute.</returns>
|
||||
public HtmlAttribute Append(string name)
|
||||
{
|
||||
HtmlAttribute att = _ownernode._ownerdocument.CreateAttribute(name);
|
||||
return Append(att);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates and inserts a new attribute as the last attribute in the collection.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the attribute to insert.</param>
|
||||
/// <param name="value">The value of the attribute to insert.</param>
|
||||
/// <returns>The appended attribute.</returns>
|
||||
public HtmlAttribute Append(string name, string value)
|
||||
{
|
||||
HtmlAttribute att = _ownernode._ownerdocument.CreateAttribute(name, value);
|
||||
return Append(att);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks for existance of attribute with given name
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
public bool Contains(string name)
|
||||
{
|
||||
for (int i = 0; i < items.Count; i++)
|
||||
{
|
||||
if (items[i].Name.Equals(name.ToLower()))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Inserts the specified attribute as the first node in the collection.
|
||||
/// </summary>
|
||||
/// <param name="newAttribute">The attribute to insert. May not be null.</param>
|
||||
/// <returns>The prepended attribute.</returns>
|
||||
public HtmlAttribute Prepend(HtmlAttribute newAttribute)
|
||||
{
|
||||
Insert(0, newAttribute);
|
||||
return newAttribute;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a given attribute from the list.
|
||||
/// </summary>
|
||||
/// <param name="attribute">The attribute to remove. May not be null.</param>
|
||||
public void Remove(HtmlAttribute attribute)
|
||||
{
|
||||
if (attribute == null)
|
||||
{
|
||||
throw new ArgumentNullException("attribute");
|
||||
}
|
||||
int index = GetAttributeIndex(attribute);
|
||||
if (index == -1)
|
||||
{
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
RemoveAt(index);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes an attribute from the list, using its name. If there are more than one attributes with this name, they will all be removed.
|
||||
/// </summary>
|
||||
/// <param name="name">The attribute's name. May not be null.</param>
|
||||
public void Remove(string name)
|
||||
{
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name");
|
||||
}
|
||||
|
||||
string lname = name.ToLower();
|
||||
for (int i = 0; i < items.Count; i++)
|
||||
{
|
||||
HtmlAttribute att = items[i];
|
||||
if (att.Name == lname)
|
||||
{
|
||||
RemoveAt(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove all attributes in the list.
|
||||
/// </summary>
|
||||
public void RemoveAll()
|
||||
{
|
||||
Hashitems.Clear();
|
||||
items.Clear();
|
||||
|
||||
_ownernode._innerchanged = true;
|
||||
_ownernode._outerchanged = true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region LINQ Methods
|
||||
|
||||
/// <summary>
|
||||
/// Returns all attributes with specified name. Handles case insentivity
|
||||
/// </summary>
|
||||
/// <param name="attributeName">Name of the attribute</param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<HtmlAttribute> AttributesWithName(string attributeName)
|
||||
{
|
||||
attributeName = attributeName.ToLower();
|
||||
for (int i = 0; i < items.Count; i++)
|
||||
{
|
||||
if (items[i].Name.Equals(attributeName))
|
||||
yield return items[i];
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes all attributes from the collection
|
||||
/// </summary>
|
||||
public void Remove()
|
||||
{
|
||||
foreach (HtmlAttribute item in items)
|
||||
item.Remove();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
/// <summary>
|
||||
/// Clears the attribute collection
|
||||
/// </summary>
|
||||
internal void Clear()
|
||||
{
|
||||
Hashitems.Clear();
|
||||
items.Clear();
|
||||
}
|
||||
|
||||
internal int GetAttributeIndex(HtmlAttribute attribute)
|
||||
{
|
||||
if (attribute == null)
|
||||
{
|
||||
throw new ArgumentNullException("attribute");
|
||||
}
|
||||
for (int i = 0; i < items.Count; i++)
|
||||
{
|
||||
if ((items[i]) == attribute)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
internal int GetAttributeIndex(string name)
|
||||
{
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name");
|
||||
}
|
||||
string lname = name.ToLower();
|
||||
for (int i = 0; i < items.Count; i++)
|
||||
{
|
||||
if ((items[i]).Name == lname)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,142 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
internal class HtmlCmdLine
|
||||
{
|
||||
#region Static Members
|
||||
|
||||
internal static bool Help;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
static HtmlCmdLine()
|
||||
{
|
||||
Help = false;
|
||||
ParseArgs();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
internal static string GetOption(string name, string def)
|
||||
{
|
||||
string p = def;
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
for (int i = 1; i < args.Length; i++)
|
||||
{
|
||||
GetStringArg(args[i], name, ref p);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
internal static string GetOption(int index, string def)
|
||||
{
|
||||
string p = def;
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
int j = 0;
|
||||
for (int i = 1; i < args.Length; i++)
|
||||
{
|
||||
if (GetStringArg(args[i], ref p))
|
||||
{
|
||||
if (index == j)
|
||||
return p;
|
||||
else
|
||||
p = def;
|
||||
j++;
|
||||
}
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
internal static bool GetOption(string name, bool def)
|
||||
{
|
||||
bool p = def;
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
for (int i = 1; i < args.Length; i++)
|
||||
{
|
||||
GetBoolArg(args[i], name, ref p);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
internal static int GetOption(string name, int def)
|
||||
{
|
||||
int p = def;
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
for (int i = 1; i < args.Length; i++)
|
||||
{
|
||||
GetIntArg(args[i], name, ref p);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static void GetBoolArg(string Arg, string Name, ref bool ArgValue)
|
||||
{
|
||||
if (Arg.Length < (Name.Length + 1)) // -name is 1 more than name
|
||||
return;
|
||||
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
|
||||
return;
|
||||
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
|
||||
ArgValue = true;
|
||||
}
|
||||
|
||||
private static void GetIntArg(string Arg, string Name, ref int ArgValue)
|
||||
{
|
||||
if (Arg.Length < (Name.Length + 3)) // -name:12 is 3 more than name
|
||||
return;
|
||||
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
|
||||
return;
|
||||
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
|
||||
{
|
||||
try
|
||||
{
|
||||
ArgValue = Convert.ToInt32(Arg.Substring(Name.Length + 2, Arg.Length - Name.Length - 2));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static bool GetStringArg(string Arg, ref string ArgValue)
|
||||
{
|
||||
if (('/' == Arg[0]) || ('-' == Arg[0]))
|
||||
return false;
|
||||
ArgValue = Arg;
|
||||
return true;
|
||||
}
|
||||
|
||||
private static void GetStringArg(string Arg, string Name, ref string ArgValue)
|
||||
{
|
||||
if (Arg.Length < (Name.Length + 3)) // -name:x is 3 more than name
|
||||
return;
|
||||
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
|
||||
return;
|
||||
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
|
||||
ArgValue = Arg.Substring(Name.Length + 2, Arg.Length - Name.Length - 2);
|
||||
}
|
||||
|
||||
private static void ParseArgs()
|
||||
{
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
for (int i = 1; i < args.Length; i++)
|
||||
{
|
||||
// help
|
||||
GetBoolArg(args[i], "?", ref Help);
|
||||
GetBoolArg(args[i], "h", ref Help);
|
||||
GetBoolArg(args[i], "help", ref Help);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,76 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an HTML comment.
|
||||
/// </summary>
|
||||
public class HtmlCommentNode : HtmlNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string _comment;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal HtmlCommentNode(HtmlDocument ownerdocument, int index)
|
||||
:
|
||||
base(HtmlNodeType.Comment, ownerdocument, index)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the comment text of the node.
|
||||
/// </summary>
|
||||
public string Comment
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_comment == null)
|
||||
{
|
||||
return base.InnerHtml;
|
||||
}
|
||||
return _comment;
|
||||
}
|
||||
set { _comment = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
|
||||
/// </summary>
|
||||
public override string InnerHtml
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_comment == null)
|
||||
{
|
||||
return base.InnerHtml;
|
||||
}
|
||||
return _comment;
|
||||
}
|
||||
set { _comment = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the object and its content in HTML.
|
||||
/// </summary>
|
||||
public override string OuterHtml
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_comment == null)
|
||||
{
|
||||
return base.OuterHtml;
|
||||
}
|
||||
return "<!--" + _comment + "-->";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
internal class HtmlConsoleListener : TraceListener
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
public override void Write(string Message)
|
||||
{
|
||||
Write(Message, "");
|
||||
}
|
||||
|
||||
public override void Write(string Message, string Category)
|
||||
{
|
||||
Console.Write("T:" + Category + ": " + Message);
|
||||
}
|
||||
|
||||
public override void WriteLine(string Message)
|
||||
{
|
||||
Write(Message + "\n");
|
||||
}
|
||||
|
||||
public override void WriteLine(string Message, string Category)
|
||||
{
|
||||
Write(Message + "\n", Category);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,32 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Flags that describe the behavior of an Element node.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum HtmlElementFlag
|
||||
{
|
||||
/// <summary>
|
||||
/// The node is a CDATA node.
|
||||
/// </summary>
|
||||
CData = 1,
|
||||
|
||||
/// <summary>
|
||||
/// The node is empty. META or IMG are example of such nodes.
|
||||
/// </summary>
|
||||
Empty = 2,
|
||||
|
||||
/// <summary>
|
||||
/// The node will automatically be closed during parsing.
|
||||
/// </summary>
|
||||
Closed = 4,
|
||||
|
||||
/// <summary>
|
||||
/// The node can overlap.
|
||||
/// </summary>
|
||||
CanOverlap = 8
|
||||
}
|
||||
}
|
||||
@@ -1,826 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Text;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// A utility class to replace special characters by entities and vice-versa.
|
||||
/// Follows HTML 4.0 specification found at http://www.w3.org/TR/html4/sgml/entities.html
|
||||
/// </summary>
|
||||
public class HtmlEntity
|
||||
{
|
||||
#region Static Members
|
||||
|
||||
private static readonly int _maxEntitySize;
|
||||
private static Hashtable _entityName;
|
||||
private static Hashtable _entityValue;
|
||||
|
||||
/// <summary>
|
||||
/// A collection of entities indexed by name.
|
||||
/// </summary>
|
||||
public static Hashtable EntityName
|
||||
{
|
||||
get { return _entityName; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A collection of entities indexed by value.
|
||||
/// </summary>
|
||||
public static Hashtable EntityValue
|
||||
{
|
||||
get { return _entityValue; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
static HtmlEntity()
|
||||
{
|
||||
_entityName = new Hashtable();
|
||||
_entityValue = new Hashtable();
|
||||
|
||||
#region Entities Definition
|
||||
|
||||
_entityValue.Add("nbsp", 160); // no-break space = non-breaking space, U+00A0 ISOnum
|
||||
_entityName.Add(160, "nbsp");
|
||||
_entityValue.Add("iexcl", 161); // inverted exclamation mark, U+00A1 ISOnum
|
||||
_entityName.Add(161, "iexcl");
|
||||
_entityValue.Add("cent", 162); // cent sign, U+00A2 ISOnum
|
||||
_entityName.Add(162, "cent");
|
||||
_entityValue.Add("pound", 163); // pound sign, U+00A3 ISOnum
|
||||
_entityName.Add(163, "pound");
|
||||
_entityValue.Add("curren", 164); // currency sign, U+00A4 ISOnum
|
||||
_entityName.Add(164, "curren");
|
||||
_entityValue.Add("yen", 165); // yen sign = yuan sign, U+00A5 ISOnum
|
||||
_entityName.Add(165, "yen");
|
||||
_entityValue.Add("brvbar", 166); // broken bar = broken vertical bar, U+00A6 ISOnum
|
||||
_entityName.Add(166, "brvbar");
|
||||
_entityValue.Add("sect", 167); // section sign, U+00A7 ISOnum
|
||||
_entityName.Add(167, "sect");
|
||||
_entityValue.Add("uml", 168); // diaeresis = spacing diaeresis, U+00A8 ISOdia
|
||||
_entityName.Add(168, "uml");
|
||||
_entityValue.Add("copy", 169); // copyright sign, U+00A9 ISOnum
|
||||
_entityName.Add(169, "copy");
|
||||
_entityValue.Add("ordf", 170); // feminine ordinal indicator, U+00AA ISOnum
|
||||
_entityName.Add(170, "ordf");
|
||||
_entityValue.Add("laquo", 171);
|
||||
// left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum
|
||||
_entityName.Add(171, "laquo");
|
||||
_entityValue.Add("not", 172); // not sign, U+00AC ISOnum
|
||||
_entityName.Add(172, "not");
|
||||
_entityValue.Add("shy", 173); // soft hyphen = discretionary hyphen, U+00AD ISOnum
|
||||
_entityName.Add(173, "shy");
|
||||
_entityValue.Add("reg", 174); // registered sign = registered trade mark sign, U+00AE ISOnum
|
||||
_entityName.Add(174, "reg");
|
||||
_entityValue.Add("macr", 175); // macron = spacing macron = overline = APL overbar, U+00AF ISOdia
|
||||
_entityName.Add(175, "macr");
|
||||
_entityValue.Add("deg", 176); // degree sign, U+00B0 ISOnum
|
||||
_entityName.Add(176, "deg");
|
||||
_entityValue.Add("plusmn", 177); // plus-minus sign = plus-or-minus sign, U+00B1 ISOnum
|
||||
_entityName.Add(177, "plusmn");
|
||||
_entityValue.Add("sup2", 178); // superscript two = superscript digit two = squared, U+00B2 ISOnum
|
||||
_entityName.Add(178, "sup2");
|
||||
_entityValue.Add("sup3", 179); // superscript three = superscript digit three = cubed, U+00B3 ISOnum
|
||||
_entityName.Add(179, "sup3");
|
||||
_entityValue.Add("acute", 180); // acute accent = spacing acute, U+00B4 ISOdia
|
||||
_entityName.Add(180, "acute");
|
||||
_entityValue.Add("micro", 181); // micro sign, U+00B5 ISOnum
|
||||
_entityName.Add(181, "micro");
|
||||
_entityValue.Add("para", 182); // pilcrow sign = paragraph sign, U+00B6 ISOnum
|
||||
_entityName.Add(182, "para");
|
||||
_entityValue.Add("middot", 183); // middle dot = Georgian comma = Greek middle dot, U+00B7 ISOnum
|
||||
_entityName.Add(183, "middot");
|
||||
_entityValue.Add("cedil", 184); // cedilla = spacing cedilla, U+00B8 ISOdia
|
||||
_entityName.Add(184, "cedil");
|
||||
_entityValue.Add("sup1", 185); // superscript one = superscript digit one, U+00B9 ISOnum
|
||||
_entityName.Add(185, "sup1");
|
||||
_entityValue.Add("ordm", 186); // masculine ordinal indicator, U+00BA ISOnum
|
||||
_entityName.Add(186, "ordm");
|
||||
_entityValue.Add("raquo", 187);
|
||||
// right-pointing double angle quotation mark = right pointing guillemet, U+00BB ISOnum
|
||||
_entityName.Add(187, "raquo");
|
||||
_entityValue.Add("frac14", 188); // vulgar fraction one quarter = fraction one quarter, U+00BC ISOnum
|
||||
_entityName.Add(188, "frac14");
|
||||
_entityValue.Add("frac12", 189); // vulgar fraction one half = fraction one half, U+00BD ISOnum
|
||||
_entityName.Add(189, "frac12");
|
||||
_entityValue.Add("frac34", 190); // vulgar fraction three quarters = fraction three quarters, U+00BE ISOnum
|
||||
_entityName.Add(190, "frac34");
|
||||
_entityValue.Add("iquest", 191); // inverted question mark = turned question mark, U+00BF ISOnum
|
||||
_entityName.Add(191, "iquest");
|
||||
_entityValue.Add("Agrave", 192);
|
||||
// latin capital letter A with grave = latin capital letter A grave, U+00C0 ISOlat1
|
||||
_entityName.Add(192, "Agrave");
|
||||
_entityValue.Add("Aacute", 193); // latin capital letter A with acute, U+00C1 ISOlat1
|
||||
_entityName.Add(193, "Aacute");
|
||||
_entityValue.Add("Acirc", 194); // latin capital letter A with circumflex, U+00C2 ISOlat1
|
||||
_entityName.Add(194, "Acirc");
|
||||
_entityValue.Add("Atilde", 195); // latin capital letter A with tilde, U+00C3 ISOlat1
|
||||
_entityName.Add(195, "Atilde");
|
||||
_entityValue.Add("Auml", 196); // latin capital letter A with diaeresis, U+00C4 ISOlat1
|
||||
_entityName.Add(196, "Auml");
|
||||
_entityValue.Add("Aring", 197);
|
||||
// latin capital letter A with ring above = latin capital letter A ring, U+00C5 ISOlat1
|
||||
_entityName.Add(197, "Aring");
|
||||
_entityValue.Add("AElig", 198); // latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
|
||||
_entityName.Add(198, "AElig");
|
||||
_entityValue.Add("Ccedil", 199); // latin capital letter C with cedilla, U+00C7 ISOlat1
|
||||
_entityName.Add(199, "Ccedil");
|
||||
_entityValue.Add("Egrave", 200); // latin capital letter E with grave, U+00C8 ISOlat1
|
||||
_entityName.Add(200, "Egrave");
|
||||
_entityValue.Add("Eacute", 201); // latin capital letter E with acute, U+00C9 ISOlat1
|
||||
_entityName.Add(201, "Eacute");
|
||||
_entityValue.Add("Ecirc", 202); // latin capital letter E with circumflex, U+00CA ISOlat1
|
||||
_entityName.Add(202, "Ecirc");
|
||||
_entityValue.Add("Euml", 203); // latin capital letter E with diaeresis, U+00CB ISOlat1
|
||||
_entityName.Add(203, "Euml");
|
||||
_entityValue.Add("Igrave", 204); // latin capital letter I with grave, U+00CC ISOlat1
|
||||
_entityName.Add(204, "Igrave");
|
||||
_entityValue.Add("Iacute", 205); // latin capital letter I with acute, U+00CD ISOlat1
|
||||
_entityName.Add(205, "Iacute");
|
||||
_entityValue.Add("Icirc", 206); // latin capital letter I with circumflex, U+00CE ISOlat1
|
||||
_entityName.Add(206, "Icirc");
|
||||
_entityValue.Add("Iuml", 207); // latin capital letter I with diaeresis, U+00CF ISOlat1
|
||||
_entityName.Add(207, "Iuml");
|
||||
_entityValue.Add("ETH", 208); // latin capital letter ETH, U+00D0 ISOlat1
|
||||
_entityName.Add(208, "ETH");
|
||||
_entityValue.Add("Ntilde", 209); // latin capital letter N with tilde, U+00D1 ISOlat1
|
||||
_entityName.Add(209, "Ntilde");
|
||||
_entityValue.Add("Ograve", 210); // latin capital letter O with grave, U+00D2 ISOlat1
|
||||
_entityName.Add(210, "Ograve");
|
||||
_entityValue.Add("Oacute", 211); // latin capital letter O with acute, U+00D3 ISOlat1
|
||||
_entityName.Add(211, "Oacute");
|
||||
_entityValue.Add("Ocirc", 212); // latin capital letter O with circumflex, U+00D4 ISOlat1
|
||||
_entityName.Add(212, "Ocirc");
|
||||
_entityValue.Add("Otilde", 213); // latin capital letter O with tilde, U+00D5 ISOlat1
|
||||
_entityName.Add(213, "Otilde");
|
||||
_entityValue.Add("Ouml", 214); // latin capital letter O with diaeresis, U+00D6 ISOlat1
|
||||
_entityName.Add(214, "Ouml");
|
||||
_entityValue.Add("times", 215); // multiplication sign, U+00D7 ISOnum
|
||||
_entityName.Add(215, "times");
|
||||
_entityValue.Add("Oslash", 216);
|
||||
// latin capital letter O with stroke = latin capital letter O slash, U+00D8 ISOlat1
|
||||
_entityName.Add(216, "Oslash");
|
||||
_entityValue.Add("Ugrave", 217); // latin capital letter U with grave, U+00D9 ISOlat1
|
||||
_entityName.Add(217, "Ugrave");
|
||||
_entityValue.Add("Uacute", 218); // latin capital letter U with acute, U+00DA ISOlat1
|
||||
_entityName.Add(218, "Uacute");
|
||||
_entityValue.Add("Ucirc", 219); // latin capital letter U with circumflex, U+00DB ISOlat1
|
||||
_entityName.Add(219, "Ucirc");
|
||||
_entityValue.Add("Uuml", 220); // latin capital letter U with diaeresis, U+00DC ISOlat1
|
||||
_entityName.Add(220, "Uuml");
|
||||
_entityValue.Add("Yacute", 221); // latin capital letter Y with acute, U+00DD ISOlat1
|
||||
_entityName.Add(221, "Yacute");
|
||||
_entityValue.Add("THORN", 222); // latin capital letter THORN, U+00DE ISOlat1
|
||||
_entityName.Add(222, "THORN");
|
||||
_entityValue.Add("szlig", 223); // latin small letter sharp s = ess-zed, U+00DF ISOlat1
|
||||
_entityName.Add(223, "szlig");
|
||||
_entityValue.Add("agrave", 224);
|
||||
// latin small letter a with grave = latin small letter a grave, U+00E0 ISOlat1
|
||||
_entityName.Add(224, "agrave");
|
||||
_entityValue.Add("aacute", 225); // latin small letter a with acute, U+00E1 ISOlat1
|
||||
_entityName.Add(225, "aacute");
|
||||
_entityValue.Add("acirc", 226); // latin small letter a with circumflex, U+00E2 ISOlat1
|
||||
_entityName.Add(226, "acirc");
|
||||
_entityValue.Add("atilde", 227); // latin small letter a with tilde, U+00E3 ISOlat1
|
||||
_entityName.Add(227, "atilde");
|
||||
_entityValue.Add("auml", 228); // latin small letter a with diaeresis, U+00E4 ISOlat1
|
||||
_entityName.Add(228, "auml");
|
||||
_entityValue.Add("aring", 229);
|
||||
// latin small letter a with ring above = latin small letter a ring, U+00E5 ISOlat1
|
||||
_entityName.Add(229, "aring");
|
||||
_entityValue.Add("aelig", 230); // latin small letter ae = latin small ligature ae, U+00E6 ISOlat1
|
||||
_entityName.Add(230, "aelig");
|
||||
_entityValue.Add("ccedil", 231); // latin small letter c with cedilla, U+00E7 ISOlat1
|
||||
_entityName.Add(231, "ccedil");
|
||||
_entityValue.Add("egrave", 232); // latin small letter e with grave, U+00E8 ISOlat1
|
||||
_entityName.Add(232, "egrave");
|
||||
_entityValue.Add("eacute", 233); // latin small letter e with acute, U+00E9 ISOlat1
|
||||
_entityName.Add(233, "eacute");
|
||||
_entityValue.Add("ecirc", 234); // latin small letter e with circumflex, U+00EA ISOlat1
|
||||
_entityName.Add(234, "ecirc");
|
||||
_entityValue.Add("euml", 235); // latin small letter e with diaeresis, U+00EB ISOlat1
|
||||
_entityName.Add(235, "euml");
|
||||
_entityValue.Add("igrave", 236); // latin small letter i with grave, U+00EC ISOlat1
|
||||
_entityName.Add(236, "igrave");
|
||||
_entityValue.Add("iacute", 237); // latin small letter i with acute, U+00ED ISOlat1
|
||||
_entityName.Add(237, "iacute");
|
||||
_entityValue.Add("icirc", 238); // latin small letter i with circumflex, U+00EE ISOlat1
|
||||
_entityName.Add(238, "icirc");
|
||||
_entityValue.Add("iuml", 239); // latin small letter i with diaeresis, U+00EF ISOlat1
|
||||
_entityName.Add(239, "iuml");
|
||||
_entityValue.Add("eth", 240); // latin small letter eth, U+00F0 ISOlat1
|
||||
_entityName.Add(240, "eth");
|
||||
_entityValue.Add("ntilde", 241); // latin small letter n with tilde, U+00F1 ISOlat1
|
||||
_entityName.Add(241, "ntilde");
|
||||
_entityValue.Add("ograve", 242); // latin small letter o with grave, U+00F2 ISOlat1
|
||||
_entityName.Add(242, "ograve");
|
||||
_entityValue.Add("oacute", 243); // latin small letter o with acute, U+00F3 ISOlat1
|
||||
_entityName.Add(243, "oacute");
|
||||
_entityValue.Add("ocirc", 244); // latin small letter o with circumflex, U+00F4 ISOlat1
|
||||
_entityName.Add(244, "ocirc");
|
||||
_entityValue.Add("otilde", 245); // latin small letter o with tilde, U+00F5 ISOlat1
|
||||
_entityName.Add(245, "otilde");
|
||||
_entityValue.Add("ouml", 246); // latin small letter o with diaeresis, U+00F6 ISOlat1
|
||||
_entityName.Add(246, "ouml");
|
||||
_entityValue.Add("divide", 247); // division sign, U+00F7 ISOnum
|
||||
_entityName.Add(247, "divide");
|
||||
_entityValue.Add("oslash", 248);
|
||||
// latin small letter o with stroke, = latin small letter o slash, U+00F8 ISOlat1
|
||||
_entityName.Add(248, "oslash");
|
||||
_entityValue.Add("ugrave", 249); // latin small letter u with grave, U+00F9 ISOlat1
|
||||
_entityName.Add(249, "ugrave");
|
||||
_entityValue.Add("uacute", 250); // latin small letter u with acute, U+00FA ISOlat1
|
||||
_entityName.Add(250, "uacute");
|
||||
_entityValue.Add("ucirc", 251); // latin small letter u with circumflex, U+00FB ISOlat1
|
||||
_entityName.Add(251, "ucirc");
|
||||
_entityValue.Add("uuml", 252); // latin small letter u with diaeresis, U+00FC ISOlat1
|
||||
_entityName.Add(252, "uuml");
|
||||
_entityValue.Add("yacute", 253); // latin small letter y with acute, U+00FD ISOlat1
|
||||
_entityName.Add(253, "yacute");
|
||||
_entityValue.Add("thorn", 254); // latin small letter thorn, U+00FE ISOlat1
|
||||
_entityName.Add(254, "thorn");
|
||||
_entityValue.Add("yuml", 255); // latin small letter y with diaeresis, U+00FF ISOlat1
|
||||
_entityName.Add(255, "yuml");
|
||||
_entityValue.Add("fnof", 402); // latin small f with hook = function = florin, U+0192 ISOtech
|
||||
_entityName.Add(402, "fnof");
|
||||
_entityValue.Add("Alpha", 913); // greek capital letter alpha, U+0391
|
||||
_entityName.Add(913, "Alpha");
|
||||
_entityValue.Add("Beta", 914); // greek capital letter beta, U+0392
|
||||
_entityName.Add(914, "Beta");
|
||||
_entityValue.Add("Gamma", 915); // greek capital letter gamma, U+0393 ISOgrk3
|
||||
_entityName.Add(915, "Gamma");
|
||||
_entityValue.Add("Delta", 916); // greek capital letter delta, U+0394 ISOgrk3
|
||||
_entityName.Add(916, "Delta");
|
||||
_entityValue.Add("Epsilon", 917); // greek capital letter epsilon, U+0395
|
||||
_entityName.Add(917, "Epsilon");
|
||||
_entityValue.Add("Zeta", 918); // greek capital letter zeta, U+0396
|
||||
_entityName.Add(918, "Zeta");
|
||||
_entityValue.Add("Eta", 919); // greek capital letter eta, U+0397
|
||||
_entityName.Add(919, "Eta");
|
||||
_entityValue.Add("Theta", 920); // greek capital letter theta, U+0398 ISOgrk3
|
||||
_entityName.Add(920, "Theta");
|
||||
_entityValue.Add("Iota", 921); // greek capital letter iota, U+0399
|
||||
_entityName.Add(921, "Iota");
|
||||
_entityValue.Add("Kappa", 922); // greek capital letter kappa, U+039A
|
||||
_entityName.Add(922, "Kappa");
|
||||
_entityValue.Add("Lambda", 923); // greek capital letter lambda, U+039B ISOgrk3
|
||||
_entityName.Add(923, "Lambda");
|
||||
_entityValue.Add("Mu", 924); // greek capital letter mu, U+039C
|
||||
_entityName.Add(924, "Mu");
|
||||
_entityValue.Add("Nu", 925); // greek capital letter nu, U+039D
|
||||
_entityName.Add(925, "Nu");
|
||||
_entityValue.Add("Xi", 926); // greek capital letter xi, U+039E ISOgrk3
|
||||
_entityName.Add(926, "Xi");
|
||||
_entityValue.Add("Omicron", 927); // greek capital letter omicron, U+039F
|
||||
_entityName.Add(927, "Omicron");
|
||||
_entityValue.Add("Pi", 928); // greek capital letter pi, U+03A0 ISOgrk3
|
||||
_entityName.Add(928, "Pi");
|
||||
_entityValue.Add("Rho", 929); // greek capital letter rho, U+03A1
|
||||
_entityName.Add(929, "Rho");
|
||||
_entityValue.Add("Sigma", 931); // greek capital letter sigma, U+03A3 ISOgrk3
|
||||
_entityName.Add(931, "Sigma");
|
||||
_entityValue.Add("Tau", 932); // greek capital letter tau, U+03A4
|
||||
_entityName.Add(932, "Tau");
|
||||
_entityValue.Add("Upsilon", 933); // greek capital letter upsilon, U+03A5 ISOgrk3
|
||||
_entityName.Add(933, "Upsilon");
|
||||
_entityValue.Add("Phi", 934); // greek capital letter phi, U+03A6 ISOgrk3
|
||||
_entityName.Add(934, "Phi");
|
||||
_entityValue.Add("Chi", 935); // greek capital letter chi, U+03A7
|
||||
_entityName.Add(935, "Chi");
|
||||
_entityValue.Add("Psi", 936); // greek capital letter psi, U+03A8 ISOgrk3
|
||||
_entityName.Add(936, "Psi");
|
||||
_entityValue.Add("Omega", 937); // greek capital letter omega, U+03A9 ISOgrk3
|
||||
_entityName.Add(937, "Omega");
|
||||
_entityValue.Add("alpha", 945); // greek small letter alpha, U+03B1 ISOgrk3
|
||||
_entityName.Add(945, "alpha");
|
||||
_entityValue.Add("beta", 946); // greek small letter beta, U+03B2 ISOgrk3
|
||||
_entityName.Add(946, "beta");
|
||||
_entityValue.Add("gamma", 947); // greek small letter gamma, U+03B3 ISOgrk3
|
||||
_entityName.Add(947, "gamma");
|
||||
_entityValue.Add("delta", 948); // greek small letter delta, U+03B4 ISOgrk3
|
||||
_entityName.Add(948, "delta");
|
||||
_entityValue.Add("epsilon", 949); // greek small letter epsilon, U+03B5 ISOgrk3
|
||||
_entityName.Add(949, "epsilon");
|
||||
_entityValue.Add("zeta", 950); // greek small letter zeta, U+03B6 ISOgrk3
|
||||
_entityName.Add(950, "zeta");
|
||||
_entityValue.Add("eta", 951); // greek small letter eta, U+03B7 ISOgrk3
|
||||
_entityName.Add(951, "eta");
|
||||
_entityValue.Add("theta", 952); // greek small letter theta, U+03B8 ISOgrk3
|
||||
_entityName.Add(952, "theta");
|
||||
_entityValue.Add("iota", 953); // greek small letter iota, U+03B9 ISOgrk3
|
||||
_entityName.Add(953, "iota");
|
||||
_entityValue.Add("kappa", 954); // greek small letter kappa, U+03BA ISOgrk3
|
||||
_entityName.Add(954, "kappa");
|
||||
_entityValue.Add("lambda", 955); // greek small letter lambda, U+03BB ISOgrk3
|
||||
_entityName.Add(955, "lambda");
|
||||
_entityValue.Add("mu", 956); // greek small letter mu, U+03BC ISOgrk3
|
||||
_entityName.Add(956, "mu");
|
||||
_entityValue.Add("nu", 957); // greek small letter nu, U+03BD ISOgrk3
|
||||
_entityName.Add(957, "nu");
|
||||
_entityValue.Add("xi", 958); // greek small letter xi, U+03BE ISOgrk3
|
||||
_entityName.Add(958, "xi");
|
||||
_entityValue.Add("omicron", 959); // greek small letter omicron, U+03BF NEW
|
||||
_entityName.Add(959, "omicron");
|
||||
_entityValue.Add("pi", 960); // greek small letter pi, U+03C0 ISOgrk3
|
||||
_entityName.Add(960, "pi");
|
||||
_entityValue.Add("rho", 961); // greek small letter rho, U+03C1 ISOgrk3
|
||||
_entityName.Add(961, "rho");
|
||||
_entityValue.Add("sigmaf", 962); // greek small letter final sigma, U+03C2 ISOgrk3
|
||||
_entityName.Add(962, "sigmaf");
|
||||
_entityValue.Add("sigma", 963); // greek small letter sigma, U+03C3 ISOgrk3
|
||||
_entityName.Add(963, "sigma");
|
||||
_entityValue.Add("tau", 964); // greek small letter tau, U+03C4 ISOgrk3
|
||||
_entityName.Add(964, "tau");
|
||||
_entityValue.Add("upsilon", 965); // greek small letter upsilon, U+03C5 ISOgrk3
|
||||
_entityName.Add(965, "upsilon");
|
||||
_entityValue.Add("phi", 966); // greek small letter phi, U+03C6 ISOgrk3
|
||||
_entityName.Add(966, "phi");
|
||||
_entityValue.Add("chi", 967); // greek small letter chi, U+03C7 ISOgrk3
|
||||
_entityName.Add(967, "chi");
|
||||
_entityValue.Add("psi", 968); // greek small letter psi, U+03C8 ISOgrk3
|
||||
_entityName.Add(968, "psi");
|
||||
_entityValue.Add("omega", 969); // greek small letter omega, U+03C9 ISOgrk3
|
||||
_entityName.Add(969, "omega");
|
||||
_entityValue.Add("thetasym", 977); // greek small letter theta symbol, U+03D1 NEW
|
||||
_entityName.Add(977, "thetasym");
|
||||
_entityValue.Add("upsih", 978); // greek upsilon with hook symbol, U+03D2 NEW
|
||||
_entityName.Add(978, "upsih");
|
||||
_entityValue.Add("piv", 982); // greek pi symbol, U+03D6 ISOgrk3
|
||||
_entityName.Add(982, "piv");
|
||||
_entityValue.Add("bull", 8226); // bullet = black small circle, U+2022 ISOpub
|
||||
_entityName.Add(8226, "bull");
|
||||
_entityValue.Add("hellip", 8230); // horizontal ellipsis = three dot leader, U+2026 ISOpub
|
||||
_entityName.Add(8230, "hellip");
|
||||
_entityValue.Add("prime", 8242); // prime = minutes = feet, U+2032 ISOtech
|
||||
_entityName.Add(8242, "prime");
|
||||
_entityValue.Add("Prime", 8243); // double prime = seconds = inches, U+2033 ISOtech
|
||||
_entityName.Add(8243, "Prime");
|
||||
_entityValue.Add("oline", 8254); // overline = spacing overscore, U+203E NEW
|
||||
_entityName.Add(8254, "oline");
|
||||
_entityValue.Add("frasl", 8260); // fraction slash, U+2044 NEW
|
||||
_entityName.Add(8260, "frasl");
|
||||
_entityValue.Add("weierp", 8472); // script capital P = power set = Weierstrass p, U+2118 ISOamso
|
||||
_entityName.Add(8472, "weierp");
|
||||
_entityValue.Add("image", 8465); // blackletter capital I = imaginary part, U+2111 ISOamso
|
||||
_entityName.Add(8465, "image");
|
||||
_entityValue.Add("real", 8476); // blackletter capital R = real part symbol, U+211C ISOamso
|
||||
_entityName.Add(8476, "real");
|
||||
_entityValue.Add("trade", 8482); // trade mark sign, U+2122 ISOnum
|
||||
_entityName.Add(8482, "trade");
|
||||
_entityValue.Add("alefsym", 8501); // alef symbol = first transfinite cardinal, U+2135 NEW
|
||||
_entityName.Add(8501, "alefsym");
|
||||
_entityValue.Add("larr", 8592); // leftwards arrow, U+2190 ISOnum
|
||||
_entityName.Add(8592, "larr");
|
||||
_entityValue.Add("uarr", 8593); // upwards arrow, U+2191 ISOnum
|
||||
_entityName.Add(8593, "uarr");
|
||||
_entityValue.Add("rarr", 8594); // rightwards arrow, U+2192 ISOnum
|
||||
_entityName.Add(8594, "rarr");
|
||||
_entityValue.Add("darr", 8595); // downwards arrow, U+2193 ISOnum
|
||||
_entityName.Add(8595, "darr");
|
||||
_entityValue.Add("harr", 8596); // left right arrow, U+2194 ISOamsa
|
||||
_entityName.Add(8596, "harr");
|
||||
_entityValue.Add("crarr", 8629); // downwards arrow with corner leftwards = carriage return, U+21B5 NEW
|
||||
_entityName.Add(8629, "crarr");
|
||||
_entityValue.Add("lArr", 8656); // leftwards double arrow, U+21D0 ISOtech
|
||||
_entityName.Add(8656, "lArr");
|
||||
_entityValue.Add("uArr", 8657); // upwards double arrow, U+21D1 ISOamsa
|
||||
_entityName.Add(8657, "uArr");
|
||||
_entityValue.Add("rArr", 8658); // rightwards double arrow, U+21D2 ISOtech
|
||||
_entityName.Add(8658, "rArr");
|
||||
_entityValue.Add("dArr", 8659); // downwards double arrow, U+21D3 ISOamsa
|
||||
_entityName.Add(8659, "dArr");
|
||||
_entityValue.Add("hArr", 8660); // left right double arrow, U+21D4 ISOamsa
|
||||
_entityName.Add(8660, "hArr");
|
||||
_entityValue.Add("forall", 8704); // for all, U+2200 ISOtech
|
||||
_entityName.Add(8704, "forall");
|
||||
_entityValue.Add("part", 8706); // partial differential, U+2202 ISOtech
|
||||
_entityName.Add(8706, "part");
|
||||
_entityValue.Add("exist", 8707); // there exists, U+2203 ISOtech
|
||||
_entityName.Add(8707, "exist");
|
||||
_entityValue.Add("empty", 8709); // empty set = null set = diameter, U+2205 ISOamso
|
||||
_entityName.Add(8709, "empty");
|
||||
_entityValue.Add("nabla", 8711); // nabla = backward difference, U+2207 ISOtech
|
||||
_entityName.Add(8711, "nabla");
|
||||
_entityValue.Add("isin", 8712); // element of, U+2208 ISOtech
|
||||
_entityName.Add(8712, "isin");
|
||||
_entityValue.Add("notin", 8713); // not an element of, U+2209 ISOtech
|
||||
_entityName.Add(8713, "notin");
|
||||
_entityValue.Add("ni", 8715); // contains as member, U+220B ISOtech
|
||||
_entityName.Add(8715, "ni");
|
||||
_entityValue.Add("prod", 8719); // n-ary product = product sign, U+220F ISOamsb
|
||||
_entityName.Add(8719, "prod");
|
||||
_entityValue.Add("sum", 8721); // n-ary sumation, U+2211 ISOamsb
|
||||
_entityName.Add(8721, "sum");
|
||||
_entityValue.Add("minus", 8722); // minus sign, U+2212 ISOtech
|
||||
_entityName.Add(8722, "minus");
|
||||
_entityValue.Add("lowast", 8727); // asterisk operator, U+2217 ISOtech
|
||||
_entityName.Add(8727, "lowast");
|
||||
_entityValue.Add("radic", 8730); // square root = radical sign, U+221A ISOtech
|
||||
_entityName.Add(8730, "radic");
|
||||
_entityValue.Add("prop", 8733); // proportional to, U+221D ISOtech
|
||||
_entityName.Add(8733, "prop");
|
||||
_entityValue.Add("infin", 8734); // infinity, U+221E ISOtech
|
||||
_entityName.Add(8734, "infin");
|
||||
_entityValue.Add("ang", 8736); // angle, U+2220 ISOamso
|
||||
_entityName.Add(8736, "ang");
|
||||
_entityValue.Add("and", 8743); // logical and = wedge, U+2227 ISOtech
|
||||
_entityName.Add(8743, "and");
|
||||
_entityValue.Add("or", 8744); // logical or = vee, U+2228 ISOtech
|
||||
_entityName.Add(8744, "or");
|
||||
_entityValue.Add("cap", 8745); // intersection = cap, U+2229 ISOtech
|
||||
_entityName.Add(8745, "cap");
|
||||
_entityValue.Add("cup", 8746); // union = cup, U+222A ISOtech
|
||||
_entityName.Add(8746, "cup");
|
||||
_entityValue.Add("int", 8747); // integral, U+222B ISOtech
|
||||
_entityName.Add(8747, "int");
|
||||
_entityValue.Add("there4", 8756); // therefore, U+2234 ISOtech
|
||||
_entityName.Add(8756, "there4");
|
||||
_entityValue.Add("sim", 8764); // tilde operator = varies with = similar to, U+223C ISOtech
|
||||
_entityName.Add(8764, "sim");
|
||||
_entityValue.Add("cong", 8773); // approximately equal to, U+2245 ISOtech
|
||||
_entityName.Add(8773, "cong");
|
||||
_entityValue.Add("asymp", 8776); // almost equal to = asymptotic to, U+2248 ISOamsr
|
||||
_entityName.Add(8776, "asymp");
|
||||
_entityValue.Add("ne", 8800); // not equal to, U+2260 ISOtech
|
||||
_entityName.Add(8800, "ne");
|
||||
_entityValue.Add("equiv", 8801); // identical to, U+2261 ISOtech
|
||||
_entityName.Add(8801, "equiv");
|
||||
_entityValue.Add("le", 8804); // less-than or equal to, U+2264 ISOtech
|
||||
_entityName.Add(8804, "le");
|
||||
_entityValue.Add("ge", 8805); // greater-than or equal to, U+2265 ISOtech
|
||||
_entityName.Add(8805, "ge");
|
||||
_entityValue.Add("sub", 8834); // subset of, U+2282 ISOtech
|
||||
_entityName.Add(8834, "sub");
|
||||
_entityValue.Add("sup", 8835); // superset of, U+2283 ISOtech
|
||||
_entityName.Add(8835, "sup");
|
||||
_entityValue.Add("nsub", 8836); // not a subset of, U+2284 ISOamsn
|
||||
_entityName.Add(8836, "nsub");
|
||||
_entityValue.Add("sube", 8838); // subset of or equal to, U+2286 ISOtech
|
||||
_entityName.Add(8838, "sube");
|
||||
_entityValue.Add("supe", 8839); // superset of or equal to, U+2287 ISOtech
|
||||
_entityName.Add(8839, "supe");
|
||||
_entityValue.Add("oplus", 8853); // circled plus = direct sum, U+2295 ISOamsb
|
||||
_entityName.Add(8853, "oplus");
|
||||
_entityValue.Add("otimes", 8855); // circled times = vector product, U+2297 ISOamsb
|
||||
_entityName.Add(8855, "otimes");
|
||||
_entityValue.Add("perp", 8869); // up tack = orthogonal to = perpendicular, U+22A5 ISOtech
|
||||
_entityName.Add(8869, "perp");
|
||||
_entityValue.Add("sdot", 8901); // dot operator, U+22C5 ISOamsb
|
||||
_entityName.Add(8901, "sdot");
|
||||
_entityValue.Add("lceil", 8968); // left ceiling = apl upstile, U+2308 ISOamsc
|
||||
_entityName.Add(8968, "lceil");
|
||||
_entityValue.Add("rceil", 8969); // right ceiling, U+2309 ISOamsc
|
||||
_entityName.Add(8969, "rceil");
|
||||
_entityValue.Add("lfloor", 8970); // left floor = apl downstile, U+230A ISOamsc
|
||||
_entityName.Add(8970, "lfloor");
|
||||
_entityValue.Add("rfloor", 8971); // right floor, U+230B ISOamsc
|
||||
_entityName.Add(8971, "rfloor");
|
||||
_entityValue.Add("lang", 9001); // left-pointing angle bracket = bra, U+2329 ISOtech
|
||||
_entityName.Add(9001, "lang");
|
||||
_entityValue.Add("rang", 9002); // right-pointing angle bracket = ket, U+232A ISOtech
|
||||
_entityName.Add(9002, "rang");
|
||||
_entityValue.Add("loz", 9674); // lozenge, U+25CA ISOpub
|
||||
_entityName.Add(9674, "loz");
|
||||
_entityValue.Add("spades", 9824); // black spade suit, U+2660 ISOpub
|
||||
_entityName.Add(9824, "spades");
|
||||
_entityValue.Add("clubs", 9827); // black club suit = shamrock, U+2663 ISOpub
|
||||
_entityName.Add(9827, "clubs");
|
||||
_entityValue.Add("hearts", 9829); // black heart suit = valentine, U+2665 ISOpub
|
||||
_entityName.Add(9829, "hearts");
|
||||
_entityValue.Add("diams", 9830); // black diamond suit, U+2666 ISOpub
|
||||
_entityName.Add(9830, "diams");
|
||||
_entityValue.Add("quot", 34); // quotation mark = APL quote, U+0022 ISOnum
|
||||
_entityName.Add(34, "quot");
|
||||
_entityValue.Add("amp", 38); // ampersand, U+0026 ISOnum
|
||||
_entityName.Add(38, "amp");
|
||||
_entityValue.Add("lt", 60); // less-than sign, U+003C ISOnum
|
||||
_entityName.Add(60, "lt");
|
||||
_entityValue.Add("gt", 62); // greater-than sign, U+003E ISOnum
|
||||
_entityName.Add(62, "gt");
|
||||
_entityValue.Add("OElig", 338); // latin capital ligature OE, U+0152 ISOlat2
|
||||
_entityName.Add(338, "OElig");
|
||||
_entityValue.Add("oelig", 339); // latin small ligature oe, U+0153 ISOlat2
|
||||
_entityName.Add(339, "oelig");
|
||||
_entityValue.Add("Scaron", 352); // latin capital letter S with caron, U+0160 ISOlat2
|
||||
_entityName.Add(352, "Scaron");
|
||||
_entityValue.Add("scaron", 353); // latin small letter s with caron, U+0161 ISOlat2
|
||||
_entityName.Add(353, "scaron");
|
||||
_entityValue.Add("Yuml", 376); // latin capital letter Y with diaeresis, U+0178 ISOlat2
|
||||
_entityName.Add(376, "Yuml");
|
||||
_entityValue.Add("circ", 710); // modifier letter circumflex accent, U+02C6 ISOpub
|
||||
_entityName.Add(710, "circ");
|
||||
_entityValue.Add("tilde", 732); // small tilde, U+02DC ISOdia
|
||||
_entityName.Add(732, "tilde");
|
||||
_entityValue.Add("ensp", 8194); // en space, U+2002 ISOpub
|
||||
_entityName.Add(8194, "ensp");
|
||||
_entityValue.Add("emsp", 8195); // em space, U+2003 ISOpub
|
||||
_entityName.Add(8195, "emsp");
|
||||
_entityValue.Add("thinsp", 8201); // thin space, U+2009 ISOpub
|
||||
_entityName.Add(8201, "thinsp");
|
||||
_entityValue.Add("zwnj", 8204); // zero width non-joiner, U+200C NEW RFC 2070
|
||||
_entityName.Add(8204, "zwnj");
|
||||
_entityValue.Add("zwj", 8205); // zero width joiner, U+200D NEW RFC 2070
|
||||
_entityName.Add(8205, "zwj");
|
||||
_entityValue.Add("lrm", 8206); // left-to-right mark, U+200E NEW RFC 2070
|
||||
_entityName.Add(8206, "lrm");
|
||||
_entityValue.Add("rlm", 8207); // right-to-left mark, U+200F NEW RFC 2070
|
||||
_entityName.Add(8207, "rlm");
|
||||
_entityValue.Add("ndash", 8211); // en dash, U+2013 ISOpub
|
||||
_entityName.Add(8211, "ndash");
|
||||
_entityValue.Add("mdash", 8212); // em dash, U+2014 ISOpub
|
||||
_entityName.Add(8212, "mdash");
|
||||
_entityValue.Add("lsquo", 8216); // left single quotation mark, U+2018 ISOnum
|
||||
_entityName.Add(8216, "lsquo");
|
||||
_entityValue.Add("rsquo", 8217); // right single quotation mark, U+2019 ISOnum
|
||||
_entityName.Add(8217, "rsquo");
|
||||
_entityValue.Add("sbquo", 8218); // single low-9 quotation mark, U+201A NEW
|
||||
_entityName.Add(8218, "sbquo");
|
||||
_entityValue.Add("ldquo", 8220); // left double quotation mark, U+201C ISOnum
|
||||
_entityName.Add(8220, "ldquo");
|
||||
_entityValue.Add("rdquo", 8221); // right double quotation mark, U+201D ISOnum
|
||||
_entityName.Add(8221, "rdquo");
|
||||
_entityValue.Add("bdquo", 8222); // double low-9 quotation mark, U+201E NEW
|
||||
_entityName.Add(8222, "bdquo");
|
||||
_entityValue.Add("dagger", 8224); // dagger, U+2020 ISOpub
|
||||
_entityName.Add(8224, "dagger");
|
||||
_entityValue.Add("Dagger", 8225); // double dagger, U+2021 ISOpub
|
||||
_entityName.Add(8225, "Dagger");
|
||||
_entityValue.Add("permil", 8240); // per mille sign, U+2030 ISOtech
|
||||
_entityName.Add(8240, "permil");
|
||||
_entityValue.Add("lsaquo", 8249); // single left-pointing angle quotation mark, U+2039 ISO proposed
|
||||
_entityName.Add(8249, "lsaquo");
|
||||
_entityValue.Add("rsaquo", 8250); // single right-pointing angle quotation mark, U+203A ISO proposed
|
||||
_entityName.Add(8250, "rsaquo");
|
||||
_entityValue.Add("euro", 8364); // euro sign, U+20AC NEW
|
||||
_entityName.Add(8364, "euro");
|
||||
|
||||
_maxEntitySize = 8 + 1; // we add the # char
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
private HtmlEntity()
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Replace known entities by characters.
|
||||
/// </summary>
|
||||
/// <param name="text">The source text.</param>
|
||||
/// <returns>The result text.</returns>
|
||||
public static string DeEntitize(string text)
|
||||
{
|
||||
if (text == null)
|
||||
return null;
|
||||
|
||||
if (text.Length == 0)
|
||||
return text;
|
||||
|
||||
StringBuilder sb = new StringBuilder(text.Length);
|
||||
ParseState state = ParseState.Text;
|
||||
StringBuilder entity = new StringBuilder(10);
|
||||
|
||||
for (int i = 0; i < text.Length; i++)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case ParseState.Text:
|
||||
switch (text[i])
|
||||
{
|
||||
case '&':
|
||||
state = ParseState.EntityStart;
|
||||
break;
|
||||
|
||||
default:
|
||||
sb.Append(text[i]);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case ParseState.EntityStart:
|
||||
switch (text[i])
|
||||
{
|
||||
case ';':
|
||||
if (entity.Length == 0)
|
||||
{
|
||||
sb.Append("&;");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (entity[0] == '#')
|
||||
{
|
||||
string e = entity.ToString();
|
||||
try
|
||||
{
|
||||
int code = Convert.ToInt32(e.Substring(1, e.Length - 1));
|
||||
sb.Append(Convert.ToChar(code));
|
||||
}
|
||||
catch
|
||||
{
|
||||
sb.Append("&#" + e + ";");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// named entity?
|
||||
int code;
|
||||
object o = _entityValue[entity.ToString()];
|
||||
if (o == null)
|
||||
{
|
||||
// nope
|
||||
sb.Append("&" + entity + ";");
|
||||
}
|
||||
else
|
||||
{
|
||||
// we found one
|
||||
code = (int) o;
|
||||
sb.Append(Convert.ToChar(code));
|
||||
}
|
||||
}
|
||||
entity.Remove(0, entity.Length);
|
||||
}
|
||||
state = ParseState.Text;
|
||||
break;
|
||||
|
||||
case '&':
|
||||
// new entity start without end, it was not an entity...
|
||||
sb.Append("&" + entity);
|
||||
entity.Remove(0, entity.Length);
|
||||
break;
|
||||
|
||||
default:
|
||||
entity.Append(text[i]);
|
||||
if (entity.Length > _maxEntitySize)
|
||||
{
|
||||
// unknown stuff, just don't touch it
|
||||
state = ParseState.Text;
|
||||
sb.Append("&" + entity);
|
||||
entity.Remove(0, entity.Length);
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// finish the work
|
||||
if (state == ParseState.EntityStart)
|
||||
{
|
||||
sb.Append("&" + entity);
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clone and entitize an HtmlNode. This will affect attribute values and nodes' text. It will also entitize all child nodes.
|
||||
/// </summary>
|
||||
/// <param name="node">The node to entitize.</param>
|
||||
/// <returns>An entitized cloned node.</returns>
|
||||
public static HtmlNode Entitize(HtmlNode node)
|
||||
{
|
||||
if (node == null)
|
||||
{
|
||||
throw new ArgumentNullException("node");
|
||||
}
|
||||
HtmlNode result = node.CloneNode(true);
|
||||
if (result.HasAttributes)
|
||||
Entitize(result.Attributes);
|
||||
|
||||
if (result.HasChildNodes)
|
||||
{
|
||||
Entitize(result.ChildNodes);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (result.NodeType == HtmlNodeType.Text)
|
||||
{
|
||||
((HtmlTextNode) result).Text = Entitize(((HtmlTextNode) result).Text, true, true);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Replace characters above 127 by entities.
|
||||
/// </summary>
|
||||
/// <param name="text">The source text.</param>
|
||||
/// <returns>The result text.</returns>
|
||||
public static string Entitize(string text)
|
||||
{
|
||||
return Entitize(text, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Replace characters above 127 by entities.
|
||||
/// </summary>
|
||||
/// <param name="text">The source text.</param>
|
||||
/// <param name="useNames">If set to false, the function will not use known entities name. Default is true.</param>
|
||||
/// <returns>The result text.</returns>
|
||||
public static string Entitize(string text, bool useNames)
|
||||
{
|
||||
return Entitize(text, useNames, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Replace characters above 127 by entities.
|
||||
/// </summary>
|
||||
/// <param name="text">The source text.</param>
|
||||
/// <param name="useNames">If set to false, the function will not use known entities name. Default is true.</param>
|
||||
/// <param name="entitizeQuotAmpAndLtGt">If set to true, the [quote], [ampersand], [lower than] and [greather than] characters will be entitized.</param>
|
||||
/// <returns>The result text</returns>
|
||||
public static string Entitize(string text, bool useNames, bool entitizeQuotAmpAndLtGt)
|
||||
// _entityValue.Add("quot", 34); // quotation mark = APL quote, U+0022 ISOnum
|
||||
// _entityName.Add(34, "quot");
|
||||
// _entityValue.Add("amp", 38); // ampersand, U+0026 ISOnum
|
||||
// _entityName.Add(38, "amp");
|
||||
// _entityValue.Add("lt", 60); // less-than sign, U+003C ISOnum
|
||||
// _entityName.Add(60, "lt");
|
||||
// _entityValue.Add("gt", 62); // greater-than sign, U+003E ISOnum
|
||||
// _entityName.Add(62, "gt");
|
||||
{
|
||||
if (text == null)
|
||||
return null;
|
||||
|
||||
if (text.Length == 0)
|
||||
return text;
|
||||
|
||||
StringBuilder sb = new StringBuilder(text.Length);
|
||||
for (int i = 0; i < text.Length; i++)
|
||||
{
|
||||
int code = text[i];
|
||||
if ((code > 127) ||
|
||||
(entitizeQuotAmpAndLtGt && ((code == 34) || (code == 38) || (code == 60) || (code == 62))))
|
||||
{
|
||||
string entity = _entityName[code] as string;
|
||||
if ((entity == null) || (!useNames))
|
||||
{
|
||||
sb.Append("&#" + code + ";");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append("&" + entity + ";");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append(text[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static void Entitize(HtmlAttributeCollection collection)
|
||||
{
|
||||
foreach (HtmlAttribute at in collection)
|
||||
{
|
||||
at.Value = Entitize(at.Value);
|
||||
}
|
||||
}
|
||||
|
||||
private static void Entitize(HtmlNodeCollection collection)
|
||||
{
|
||||
foreach (HtmlNode node in collection)
|
||||
{
|
||||
if (node.HasAttributes)
|
||||
Entitize(node.Attributes);
|
||||
|
||||
if (node.HasChildNodes)
|
||||
{
|
||||
Entitize(node.ChildNodes);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (node.NodeType == HtmlNodeType.Text)
|
||||
{
|
||||
((HtmlTextNode) node).Text = Entitize(((HtmlTextNode) node).Text, true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Nested type: ParseState
|
||||
|
||||
private enum ParseState
|
||||
{
|
||||
Text,
|
||||
EntityStart
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System.Xml;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
internal class HtmlNameTable : XmlNameTable
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private NameTable _nametable = new NameTable();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public override string Add(string array)
|
||||
{
|
||||
return _nametable.Add(array);
|
||||
}
|
||||
|
||||
public override string Add(char[] array, int offset, int length)
|
||||
{
|
||||
return _nametable.Add(array, offset, length);
|
||||
}
|
||||
|
||||
public override string Get(string array)
|
||||
{
|
||||
return _nametable.Get(array);
|
||||
}
|
||||
|
||||
public override string Get(char[] array, int offset, int length)
|
||||
{
|
||||
return _nametable.Get(array, offset, length);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
internal string GetOrAdd(string array)
|
||||
{
|
||||
string s = Get(array);
|
||||
if (s == null)
|
||||
{
|
||||
return Add(array);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,512 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a combined list and collection of HTML nodes.
|
||||
/// </summary>
|
||||
public class HtmlNodeCollection : IList<HtmlNode>
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private readonly HtmlNode _parentnode;
|
||||
private readonly List<HtmlNode> _items = new List<HtmlNode>();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Initialize the HtmlNodeCollection with the base parent node
|
||||
/// </summary>
|
||||
/// <param name="parentnode">The base node of the collection</param>
|
||||
public HtmlNodeCollection(HtmlNode parentnode)
|
||||
{
|
||||
_parentnode = parentnode; // may be null
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets a given node from the list.
|
||||
/// </summary>
|
||||
public int this[HtmlNode node]
|
||||
{
|
||||
get
|
||||
{
|
||||
int index = GetNodeIndex(node);
|
||||
if (index == -1)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("node",
|
||||
"Node \"" + node.CloneNode(false).OuterHtml +
|
||||
"\" was not found in the collection");
|
||||
}
|
||||
return index;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get node with tag name
|
||||
/// </summary>
|
||||
/// <param name="nodeName"></param>
|
||||
/// <returns></returns>
|
||||
public HtmlNode this[string nodeName]
|
||||
{
|
||||
get
|
||||
{
|
||||
nodeName = nodeName.ToLower();
|
||||
for (int i = 0; i < _items.Count; i++)
|
||||
if (_items[i].Equals(nodeName))
|
||||
return _items[i];
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IList<HtmlNode> Members
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of elements actually contained in the list.
|
||||
/// </summary>
|
||||
public int Count
|
||||
{
|
||||
get { return _items.Count; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is collection read only
|
||||
/// </summary>
|
||||
public bool IsReadOnly
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the node at the specified index.
|
||||
/// </summary>
|
||||
public HtmlNode this[int index]
|
||||
{
|
||||
get { return _items[index]; }
|
||||
set { _items[index] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add node to the collection
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
public void Add(HtmlNode node)
|
||||
{
|
||||
_items.Add(node);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears out the collection of HtmlNodes. Removes each nodes reference to parentnode, nextnode and prevnode
|
||||
/// </summary>
|
||||
public void Clear()
|
||||
{
|
||||
foreach (HtmlNode node in _items)
|
||||
{
|
||||
node.ParentNode = null;
|
||||
node.NextSibling = null;
|
||||
node.PreviousSibling = null;
|
||||
}
|
||||
_items.Clear();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets existence of node in collection
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
public bool Contains(HtmlNode item)
|
||||
{
|
||||
return _items.Contains(item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copy collection to array
|
||||
/// </summary>
|
||||
/// <param name="array"></param>
|
||||
/// <param name="arrayIndex"></param>
|
||||
public void CopyTo(HtmlNode[] array, int arrayIndex)
|
||||
{
|
||||
_items.CopyTo(array, arrayIndex);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get Enumerator
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IEnumerator<HtmlNode> IEnumerable<HtmlNode>.GetEnumerator()
|
||||
{
|
||||
return _items.GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get Explicit Enumerator
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return _items.GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get index of node
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
public int IndexOf(HtmlNode item)
|
||||
{
|
||||
return _items.IndexOf(item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert node at index
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <param name="node"></param>
|
||||
public void Insert(int index, HtmlNode node)
|
||||
{
|
||||
HtmlNode next = null;
|
||||
HtmlNode prev = null;
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
prev = _items[index - 1];
|
||||
}
|
||||
|
||||
if (index < _items.Count)
|
||||
{
|
||||
next = _items[index];
|
||||
}
|
||||
|
||||
_items.Insert(index, node);
|
||||
|
||||
if (prev != null)
|
||||
{
|
||||
if (node == prev)
|
||||
{
|
||||
throw new InvalidProgramException("Unexpected error.");
|
||||
}
|
||||
prev._nextnode = node;
|
||||
}
|
||||
|
||||
if (next != null)
|
||||
{
|
||||
next._prevnode = node;
|
||||
}
|
||||
|
||||
node._prevnode = prev;
|
||||
if (next == node)
|
||||
{
|
||||
throw new InvalidProgramException("Unexpected error.");
|
||||
}
|
||||
node._nextnode = next;
|
||||
node._parentnode = _parentnode;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove node
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
/// <returns></returns>
|
||||
public bool Remove(HtmlNode item)
|
||||
{
|
||||
int i = _items.IndexOf(item);
|
||||
RemoveAt(i);
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove <see cref="HtmlNode"/> at index
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
public void RemoveAt(int index)
|
||||
{
|
||||
HtmlNode next = null;
|
||||
HtmlNode prev = null;
|
||||
HtmlNode oldnode = _items[index];
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
prev = _items[index - 1];
|
||||
}
|
||||
|
||||
if (index < (_items.Count - 1))
|
||||
{
|
||||
next = _items[index + 1];
|
||||
}
|
||||
|
||||
_items.RemoveAt(index);
|
||||
|
||||
if (prev != null)
|
||||
{
|
||||
if (next == prev)
|
||||
{
|
||||
throw new InvalidProgramException("Unexpected error.");
|
||||
}
|
||||
prev._nextnode = next;
|
||||
}
|
||||
|
||||
if (next != null)
|
||||
{
|
||||
next._prevnode = prev;
|
||||
}
|
||||
|
||||
oldnode._prevnode = null;
|
||||
oldnode._nextnode = null;
|
||||
oldnode._parentnode = null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Get first instance of node in supplied collection
|
||||
/// </summary>
|
||||
/// <param name="items"></param>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
public static HtmlNode FindFirst(HtmlNodeCollection items, string name)
|
||||
{
|
||||
foreach (HtmlNode node in items)
|
||||
{
|
||||
if (node.Name.ToLower().Contains(name))
|
||||
return node;
|
||||
if (node.HasChildNodes)
|
||||
{
|
||||
HtmlNode returnNode = FindFirst(node.ChildNodes, name);
|
||||
if (returnNode != null)
|
||||
return returnNode;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add node to the end of the collection
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
public void Append(HtmlNode node)
|
||||
{
|
||||
HtmlNode last = null;
|
||||
if (_items.Count > 0)
|
||||
{
|
||||
last = _items[_items.Count - 1];
|
||||
}
|
||||
|
||||
_items.Add(node);
|
||||
node._prevnode = last;
|
||||
node._nextnode = null;
|
||||
node._parentnode = _parentnode;
|
||||
if (last != null)
|
||||
{
|
||||
if (last == node)
|
||||
{
|
||||
throw new InvalidProgramException("Unexpected error.");
|
||||
}
|
||||
last._nextnode = node;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get first instance of node with name
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
public HtmlNode FindFirst(string name)
|
||||
{
|
||||
return FindFirst(this, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get index of node
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
/// <returns></returns>
|
||||
public int GetNodeIndex(HtmlNode node)
|
||||
{
|
||||
// TODO: should we rewrite this? what would be the key of a node?
|
||||
for (int i = 0; i < _items.Count; i++)
|
||||
{
|
||||
if (node == (_items[i]))
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add node to the beginning of the collection
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
public void Prepend(HtmlNode node)
|
||||
{
|
||||
HtmlNode first = null;
|
||||
if (_items.Count > 0)
|
||||
{
|
||||
first = _items[0];
|
||||
}
|
||||
|
||||
_items.Insert(0, node);
|
||||
|
||||
if (node == first)
|
||||
{
|
||||
throw new InvalidProgramException("Unexpected error.");
|
||||
}
|
||||
node._nextnode = first;
|
||||
node._prevnode = null;
|
||||
node._parentnode = _parentnode;
|
||||
if (first != null)
|
||||
{
|
||||
first._prevnode = node;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove node at index
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <returns></returns>
|
||||
public bool Remove(int index)
|
||||
{
|
||||
RemoveAt(index);
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Replace node at index
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <param name="node"></param>
|
||||
public void Replace(int index, HtmlNode node)
|
||||
{
|
||||
HtmlNode next = null;
|
||||
HtmlNode prev = null;
|
||||
HtmlNode oldnode = _items[index];
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
prev = _items[index - 1];
|
||||
}
|
||||
|
||||
if (index < (_items.Count - 1))
|
||||
{
|
||||
next = _items[index + 1];
|
||||
}
|
||||
|
||||
_items[index] = node;
|
||||
|
||||
if (prev != null)
|
||||
{
|
||||
if (node == prev)
|
||||
{
|
||||
throw new InvalidProgramException("Unexpected error.");
|
||||
}
|
||||
prev._nextnode = node;
|
||||
}
|
||||
|
||||
if (next != null)
|
||||
{
|
||||
next._prevnode = node;
|
||||
}
|
||||
|
||||
node._prevnode = prev;
|
||||
|
||||
if (next == node)
|
||||
{
|
||||
throw new InvalidProgramException("Unexpected error.");
|
||||
}
|
||||
|
||||
node._nextnode = next;
|
||||
node._parentnode = _parentnode;
|
||||
|
||||
oldnode._prevnode = null;
|
||||
oldnode._nextnode = null;
|
||||
oldnode._parentnode = null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region LINQ Methods
|
||||
|
||||
/// <summary>
|
||||
/// Get all node descended from this collection
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<HtmlNode> DescendantNodes()
|
||||
{
|
||||
foreach (HtmlNode item in _items)
|
||||
foreach (HtmlNode n in item.DescendantNodes())
|
||||
yield return n;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all node descended from this collection
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<HtmlNode> Descendants()
|
||||
{
|
||||
foreach (HtmlNode item in _items)
|
||||
foreach (HtmlNode n in item.Descendants())
|
||||
yield return n;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get all node descended from this collection with matching name
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<HtmlNode> Descendants(string name)
|
||||
{
|
||||
foreach (HtmlNode item in _items)
|
||||
foreach (HtmlNode n in item.Descendants(name))
|
||||
yield return n;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all first generation elements in collection
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<HtmlNode> Elements()
|
||||
{
|
||||
foreach (HtmlNode item in _items)
|
||||
foreach (HtmlNode n in item.ChildNodes)
|
||||
yield return n;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all first generation elements matching name
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<HtmlNode> Elements(string name)
|
||||
{
|
||||
foreach (HtmlNode item in _items)
|
||||
foreach (HtmlNode n in item.Elements(name))
|
||||
yield return n;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// All first generation nodes in collection
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<HtmlNode> Nodes()
|
||||
{
|
||||
foreach (HtmlNode item in _items)
|
||||
foreach (HtmlNode n in item.ChildNodes)
|
||||
yield return n;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,768 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Xml.XPath;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an HTML navigator on an HTML document seen as a data store.
|
||||
/// </summary>
|
||||
public class HtmlNodeNavigator : XPathNavigator
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private int _attindex;
|
||||
private HtmlNode _currentnode;
|
||||
private HtmlDocument _doc = new HtmlDocument();
|
||||
private HtmlNameTable _nametable = new HtmlNameTable();
|
||||
|
||||
internal bool Trace;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal HtmlNodeNavigator()
|
||||
{
|
||||
Reset();
|
||||
}
|
||||
|
||||
internal HtmlNodeNavigator(HtmlDocument doc, HtmlNode currentNode)
|
||||
{
|
||||
if (currentNode == null)
|
||||
{
|
||||
throw new ArgumentNullException("currentNode");
|
||||
}
|
||||
if (currentNode.OwnerDocument != doc)
|
||||
{
|
||||
throw new ArgumentException(HtmlDocument.HtmlExceptionRefNotChild);
|
||||
}
|
||||
InternalTrace(null);
|
||||
|
||||
_doc = doc;
|
||||
Reset();
|
||||
_currentnode = currentNode;
|
||||
}
|
||||
|
||||
private HtmlNodeNavigator(HtmlNodeNavigator nav)
|
||||
{
|
||||
if (nav == null)
|
||||
{
|
||||
throw new ArgumentNullException("nav");
|
||||
}
|
||||
InternalTrace(null);
|
||||
|
||||
_doc = nav._doc;
|
||||
_currentnode = nav._currentnode;
|
||||
_attindex = nav._attindex;
|
||||
_nametable = nav._nametable; // REVIEW: should we do this?
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
public HtmlNodeNavigator(Stream stream)
|
||||
{
|
||||
_doc.Load(stream);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
|
||||
public HtmlNodeNavigator(Stream stream, bool detectEncodingFromByteOrderMarks)
|
||||
{
|
||||
_doc.Load(stream, detectEncodingFromByteOrderMarks);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
public HtmlNodeNavigator(Stream stream, Encoding encoding)
|
||||
{
|
||||
_doc.Load(stream, encoding);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
|
||||
public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
|
||||
{
|
||||
_doc.Load(stream, encoding, detectEncodingFromByteOrderMarks);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
|
||||
/// <param name="buffersize">The minimum buffer size.</param>
|
||||
public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
|
||||
{
|
||||
_doc.Load(stream, encoding, detectEncodingFromByteOrderMarks, buffersize);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a TextReader.
|
||||
/// </summary>
|
||||
/// <param name="reader">The TextReader used to feed the HTML data into the document.</param>
|
||||
public HtmlNodeNavigator(TextReader reader)
|
||||
{
|
||||
_doc.Load(reader);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
public HtmlNodeNavigator(string path)
|
||||
{
|
||||
_doc.Load(path);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
public HtmlNodeNavigator(string path, bool detectEncodingFromByteOrderMarks)
|
||||
{
|
||||
_doc.Load(path, detectEncodingFromByteOrderMarks);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
public HtmlNodeNavigator(string path, Encoding encoding)
|
||||
{
|
||||
_doc.Load(path, encoding);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks)
|
||||
{
|
||||
_doc.Load(path, encoding, detectEncodingFromByteOrderMarks);
|
||||
Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
/// <param name="buffersize">The minimum buffer size.</param>
|
||||
public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
|
||||
{
|
||||
_doc.Load(path, encoding, detectEncodingFromByteOrderMarks, buffersize);
|
||||
Reset();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the base URI for the current node.
|
||||
/// Always returns string.Empty in the case of HtmlNavigator implementation.
|
||||
/// </summary>
|
||||
public override string BaseURI
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(">");
|
||||
return _nametable.GetOrAdd(string.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current HTML document.
|
||||
/// </summary>
|
||||
public HtmlDocument CurrentDocument
|
||||
{
|
||||
get { return _doc; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current HTML node.
|
||||
/// </summary>
|
||||
public HtmlNode CurrentNode
|
||||
{
|
||||
get { return _currentnode; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the current node has child nodes.
|
||||
/// </summary>
|
||||
public override bool HasAttributes
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(">" + (_currentnode.Attributes.Count > 0));
|
||||
return (_currentnode.Attributes.Count > 0);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the current node has child nodes.
|
||||
/// </summary>
|
||||
public override bool HasChildren
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(">" + (_currentnode.ChildNodes.Count > 0));
|
||||
return (_currentnode.ChildNodes.Count > 0);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the current node is an empty element.
|
||||
/// </summary>
|
||||
public override bool IsEmptyElement
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(">" + !HasChildren);
|
||||
// REVIEW: is this ok?
|
||||
return !HasChildren;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the current HTML node without the namespace prefix.
|
||||
/// </summary>
|
||||
public override string LocalName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_attindex != -1)
|
||||
{
|
||||
InternalTrace("att>" + _currentnode.Attributes[_attindex].Name);
|
||||
return _nametable.GetOrAdd(_currentnode.Attributes[_attindex].Name);
|
||||
}
|
||||
InternalTrace("node>" + _currentnode.Name);
|
||||
return _nametable.GetOrAdd(_currentnode.Name);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the qualified name of the current node.
|
||||
/// </summary>
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(">" + _currentnode.Name);
|
||||
return _nametable.GetOrAdd(_currentnode.Name);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the namespace URI (as defined in the W3C Namespace Specification) of the current node.
|
||||
/// Always returns string.Empty in the case of HtmlNavigator implementation.
|
||||
/// </summary>
|
||||
public override string NamespaceURI
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(">");
|
||||
return _nametable.GetOrAdd(string.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="XmlNameTable"/> associated with this implementation.
|
||||
/// </summary>
|
||||
public override XmlNameTable NameTable
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(null);
|
||||
return _nametable;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the current node.
|
||||
/// </summary>
|
||||
public override XPathNodeType NodeType
|
||||
{
|
||||
get
|
||||
{
|
||||
switch (_currentnode.NodeType)
|
||||
{
|
||||
case HtmlNodeType.Comment:
|
||||
InternalTrace(">" + XPathNodeType.Comment);
|
||||
return XPathNodeType.Comment;
|
||||
|
||||
case HtmlNodeType.Document:
|
||||
InternalTrace(">" + XPathNodeType.Root);
|
||||
return XPathNodeType.Root;
|
||||
|
||||
case HtmlNodeType.Text:
|
||||
InternalTrace(">" + XPathNodeType.Text);
|
||||
return XPathNodeType.Text;
|
||||
|
||||
case HtmlNodeType.Element:
|
||||
{
|
||||
if (_attindex != -1)
|
||||
{
|
||||
InternalTrace(">" + XPathNodeType.Attribute);
|
||||
return XPathNodeType.Attribute;
|
||||
}
|
||||
InternalTrace(">" + XPathNodeType.Element);
|
||||
return XPathNodeType.Element;
|
||||
}
|
||||
|
||||
default:
|
||||
throw new NotImplementedException("Internal error: Unhandled HtmlNodeType: " +
|
||||
_currentnode.NodeType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the prefix associated with the current node.
|
||||
/// Always returns string.Empty in the case of HtmlNavigator implementation.
|
||||
/// </summary>
|
||||
public override string Prefix
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(null);
|
||||
return _nametable.GetOrAdd(string.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the text value of the current node.
|
||||
/// </summary>
|
||||
public override string Value
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace("nt=" + _currentnode.NodeType);
|
||||
switch (_currentnode.NodeType)
|
||||
{
|
||||
case HtmlNodeType.Comment:
|
||||
InternalTrace(">" + ((HtmlCommentNode) _currentnode).Comment);
|
||||
return ((HtmlCommentNode) _currentnode).Comment;
|
||||
|
||||
case HtmlNodeType.Document:
|
||||
InternalTrace(">");
|
||||
return "";
|
||||
|
||||
case HtmlNodeType.Text:
|
||||
InternalTrace(">" + ((HtmlTextNode) _currentnode).Text);
|
||||
return ((HtmlTextNode) _currentnode).Text;
|
||||
|
||||
case HtmlNodeType.Element:
|
||||
{
|
||||
if (_attindex != -1)
|
||||
{
|
||||
InternalTrace(">" + _currentnode.Attributes[_attindex].Value);
|
||||
return _currentnode.Attributes[_attindex].Value;
|
||||
}
|
||||
return _currentnode.InnerText;
|
||||
}
|
||||
|
||||
default:
|
||||
throw new NotImplementedException("Internal error: Unhandled HtmlNodeType: " +
|
||||
_currentnode.NodeType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the xml:lang scope for the current node.
|
||||
/// Always returns string.Empty in the case of HtmlNavigator implementation.
|
||||
/// </summary>
|
||||
public override string XmlLang
|
||||
{
|
||||
get
|
||||
{
|
||||
InternalTrace(null);
|
||||
return _nametable.GetOrAdd(string.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new HtmlNavigator positioned at the same node as this HtmlNavigator.
|
||||
/// </summary>
|
||||
/// <returns>A new HtmlNavigator object positioned at the same node as the original HtmlNavigator.</returns>
|
||||
public override XPathNavigator Clone()
|
||||
{
|
||||
InternalTrace(null);
|
||||
return new HtmlNodeNavigator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the value of the HTML attribute with the specified LocalName and NamespaceURI.
|
||||
/// </summary>
|
||||
/// <param name="localName">The local name of the HTML attribute.</param>
|
||||
/// <param name="namespaceURI">The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.</param>
|
||||
/// <returns>The value of the specified HTML attribute. String.Empty or null if a matching attribute is not found or if the navigator is not positioned on an element node.</returns>
|
||||
public override string GetAttribute(string localName, string namespaceURI)
|
||||
{
|
||||
InternalTrace("localName=" + localName + ", namespaceURI=" + namespaceURI);
|
||||
HtmlAttribute att = _currentnode.Attributes[localName];
|
||||
if (att == null)
|
||||
{
|
||||
InternalTrace(">null");
|
||||
return null;
|
||||
}
|
||||
InternalTrace(">" + att.Value);
|
||||
return att.Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the value of the namespace node corresponding to the specified local name.
|
||||
/// Always returns string.Empty for the HtmlNavigator implementation.
|
||||
/// </summary>
|
||||
/// <param name="name">The local name of the namespace node.</param>
|
||||
/// <returns>Always returns string.Empty for the HtmlNavigator implementation.</returns>
|
||||
public override string GetNamespace(string name)
|
||||
{
|
||||
InternalTrace("name=" + name);
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the current HtmlNavigator is at the same position as the specified HtmlNavigator.
|
||||
/// </summary>
|
||||
/// <param name="other">The HtmlNavigator that you want to compare against.</param>
|
||||
/// <returns>true if the two navigators have the same position, otherwise, false.</returns>
|
||||
public override bool IsSamePosition(XPathNavigator other)
|
||||
{
|
||||
HtmlNodeNavigator nav = other as HtmlNodeNavigator;
|
||||
if (nav == null)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
InternalTrace(">" + (nav._currentnode == _currentnode));
|
||||
return (nav._currentnode == _currentnode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the same position as the specified HtmlNavigator.
|
||||
/// </summary>
|
||||
/// <param name="other">The HtmlNavigator positioned on the node that you want to move to.</param>
|
||||
/// <returns>true if successful, otherwise false. If false, the position of the navigator is unchanged.</returns>
|
||||
public override bool MoveTo(XPathNavigator other)
|
||||
{
|
||||
HtmlNodeNavigator nav = other as HtmlNodeNavigator;
|
||||
if (nav == null)
|
||||
{
|
||||
InternalTrace(">false (nav is not an HtmlNodeNavigator)");
|
||||
return false;
|
||||
}
|
||||
InternalTrace("moveto oid=" + nav.GetHashCode()
|
||||
+ ", n:" + nav._currentnode.Name
|
||||
+ ", a:" + nav._attindex);
|
||||
|
||||
if (nav._doc == _doc)
|
||||
{
|
||||
_currentnode = nav._currentnode;
|
||||
_attindex = nav._attindex;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
// we don't know how to handle that
|
||||
InternalTrace(">false (???)");
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the HTML attribute with matching LocalName and NamespaceURI.
|
||||
/// </summary>
|
||||
/// <param name="localName">The local name of the HTML attribute.</param>
|
||||
/// <param name="namespaceURI">The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.</param>
|
||||
/// <returns>true if the HTML attribute is found, otherwise, false. If false, the position of the navigator does not change.</returns>
|
||||
public override bool MoveToAttribute(string localName, string namespaceURI)
|
||||
{
|
||||
InternalTrace("localName=" + localName + ", namespaceURI=" + namespaceURI);
|
||||
int index = _currentnode.Attributes.GetAttributeIndex(localName);
|
||||
if (index == -1)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
_attindex = index;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the first sibling of the current node.
|
||||
/// </summary>
|
||||
/// <returns>true if the navigator is successful moving to the first sibling node, false if there is no first sibling or if the navigator is currently positioned on an attribute node.</returns>
|
||||
public override bool MoveToFirst()
|
||||
{
|
||||
if (_currentnode.ParentNode == null)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
if (_currentnode.ParentNode.FirstChild == null)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
_currentnode = _currentnode.ParentNode.FirstChild;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the first HTML attribute.
|
||||
/// </summary>
|
||||
/// <returns>true if the navigator is successful moving to the first HTML attribute, otherwise, false.</returns>
|
||||
public override bool MoveToFirstAttribute()
|
||||
{
|
||||
if (!HasAttributes)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
_attindex = 0;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the first child of the current node.
|
||||
/// </summary>
|
||||
/// <returns>true if there is a first child node, otherwise false.</returns>
|
||||
public override bool MoveToFirstChild()
|
||||
{
|
||||
if (!_currentnode.HasChildNodes)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
_currentnode = _currentnode.ChildNodes[0];
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves the XPathNavigator to the first namespace node of the current element.
|
||||
/// Always returns false for the HtmlNavigator implementation.
|
||||
/// </summary>
|
||||
/// <param name="scope">An XPathNamespaceScope value describing the namespace scope.</param>
|
||||
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
|
||||
public override bool MoveToFirstNamespace(XPathNamespaceScope scope)
|
||||
{
|
||||
InternalTrace(null);
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the node that has an attribute of type ID whose value matches the specified string.
|
||||
/// </summary>
|
||||
/// <param name="id">A string representing the ID value of the node to which you want to move. This argument does not need to be atomized.</param>
|
||||
/// <returns>true if the move was successful, otherwise false. If false, the position of the navigator is unchanged.</returns>
|
||||
public override bool MoveToId(string id)
|
||||
{
|
||||
InternalTrace("id=" + id);
|
||||
HtmlNode node = _doc.GetElementbyId(id);
|
||||
if (node == null)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
_currentnode = node;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves the XPathNavigator to the namespace node with the specified local name.
|
||||
/// Always returns false for the HtmlNavigator implementation.
|
||||
/// </summary>
|
||||
/// <param name="name">The local name of the namespace node.</param>
|
||||
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
|
||||
public override bool MoveToNamespace(string name)
|
||||
{
|
||||
InternalTrace("name=" + name);
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the next sibling of the current node.
|
||||
/// </summary>
|
||||
/// <returns>true if the navigator is successful moving to the next sibling node, false if there are no more siblings or if the navigator is currently positioned on an attribute node. If false, the position of the navigator is unchanged.</returns>
|
||||
public override bool MoveToNext()
|
||||
{
|
||||
if (_currentnode.NextSibling == null)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
InternalTrace("_c=" + _currentnode.CloneNode(false).OuterHtml);
|
||||
InternalTrace("_n=" + _currentnode.NextSibling.CloneNode(false).OuterHtml);
|
||||
_currentnode = _currentnode.NextSibling;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the next HTML attribute.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool MoveToNextAttribute()
|
||||
{
|
||||
InternalTrace(null);
|
||||
if (_attindex >= (_currentnode.Attributes.Count - 1))
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
_attindex++;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves the XPathNavigator to the next namespace node.
|
||||
/// Always returns falsefor the HtmlNavigator implementation.
|
||||
/// </summary>
|
||||
/// <param name="scope">An XPathNamespaceScope value describing the namespace scope.</param>
|
||||
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
|
||||
public override bool MoveToNextNamespace(XPathNamespaceScope scope)
|
||||
{
|
||||
InternalTrace(null);
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the parent of the current node.
|
||||
/// </summary>
|
||||
/// <returns>true if there is a parent node, otherwise false.</returns>
|
||||
public override bool MoveToParent()
|
||||
{
|
||||
if (_currentnode.ParentNode == null)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
_currentnode = _currentnode.ParentNode;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the previous sibling of the current node.
|
||||
/// </summary>
|
||||
/// <returns>true if the navigator is successful moving to the previous sibling node, false if there is no previous sibling or if the navigator is currently positioned on an attribute node.</returns>
|
||||
public override bool MoveToPrevious()
|
||||
{
|
||||
if (_currentnode.PreviousSibling == null)
|
||||
{
|
||||
InternalTrace(">false");
|
||||
return false;
|
||||
}
|
||||
_currentnode = _currentnode.PreviousSibling;
|
||||
InternalTrace(">true");
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Moves to the root node to which the current node belongs.
|
||||
/// </summary>
|
||||
public override void MoveToRoot()
|
||||
{
|
||||
_currentnode = _doc.DocumentNode;
|
||||
InternalTrace(null);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
[Conditional("TRACE")]
|
||||
internal void InternalTrace(object traceValue)
|
||||
{
|
||||
if (!Trace)
|
||||
{
|
||||
return;
|
||||
}
|
||||
StackFrame sf = new StackFrame(1, true);
|
||||
string name = sf.GetMethod().Name;
|
||||
string nodename = _currentnode == null ? "(null)" : _currentnode.Name;
|
||||
string nodevalue;
|
||||
if (_currentnode == null)
|
||||
{
|
||||
nodevalue = "(null)";
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (_currentnode.NodeType)
|
||||
{
|
||||
case HtmlNodeType.Comment:
|
||||
nodevalue = ((HtmlCommentNode) _currentnode).Comment;
|
||||
break;
|
||||
|
||||
case HtmlNodeType.Document:
|
||||
nodevalue = "";
|
||||
break;
|
||||
|
||||
case HtmlNodeType.Text:
|
||||
nodevalue = ((HtmlTextNode) _currentnode).Text;
|
||||
break;
|
||||
|
||||
default:
|
||||
nodevalue = _currentnode.CloneNode(false).OuterHtml;
|
||||
break;
|
||||
}
|
||||
}
|
||||
System.Diagnostics.Trace.WriteLine(string.Format("oid={0},n={1},a={2},v={3},{4}", GetHashCode(), nodename, _attindex, nodevalue, traceValue), "N!" + name);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Reset()
|
||||
{
|
||||
InternalTrace(null);
|
||||
_currentnode = _doc.DocumentNode;
|
||||
_attindex = -1;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the type of a node.
|
||||
/// </summary>
|
||||
public enum HtmlNodeType
|
||||
{
|
||||
/// <summary>
|
||||
/// The root of a document.
|
||||
/// </summary>
|
||||
Document,
|
||||
|
||||
/// <summary>
|
||||
/// An HTML element.
|
||||
/// </summary>
|
||||
Element,
|
||||
|
||||
/// <summary>
|
||||
/// An HTML comment.
|
||||
/// </summary>
|
||||
Comment,
|
||||
|
||||
/// <summary>
|
||||
/// A text node is always the child of an element or a document node.
|
||||
/// </summary>
|
||||
Text,
|
||||
}
|
||||
}
|
||||
@@ -1,92 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a parsing error found during document parsing.
|
||||
/// </summary>
|
||||
public class HtmlParseError
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private HtmlParseErrorCode _code;
|
||||
private int _line;
|
||||
private int _linePosition;
|
||||
private string _reason;
|
||||
private string _sourceText;
|
||||
private int _streamPosition;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal HtmlParseError(
|
||||
HtmlParseErrorCode code,
|
||||
int line,
|
||||
int linePosition,
|
||||
int streamPosition,
|
||||
string sourceText,
|
||||
string reason)
|
||||
{
|
||||
_code = code;
|
||||
_line = line;
|
||||
_linePosition = linePosition;
|
||||
_streamPosition = streamPosition;
|
||||
_sourceText = sourceText;
|
||||
_reason = reason;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of error.
|
||||
/// </summary>
|
||||
public HtmlParseErrorCode Code
|
||||
{
|
||||
get { return _code; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the line number of this error in the document.
|
||||
/// </summary>
|
||||
public int Line
|
||||
{
|
||||
get { return _line; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the column number of this error in the document.
|
||||
/// </summary>
|
||||
public int LinePosition
|
||||
{
|
||||
get { return _linePosition; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a description for the error.
|
||||
/// </summary>
|
||||
public string Reason
|
||||
{
|
||||
get { return _reason; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the the full text of the line containing the error.
|
||||
/// </summary>
|
||||
public string SourceText
|
||||
{
|
||||
get { return _sourceText; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the absolute stream position of this error in the document, relative to the start of the document.
|
||||
/// </summary>
|
||||
public int StreamPosition
|
||||
{
|
||||
get { return _streamPosition; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the type of parsing error.
|
||||
/// </summary>
|
||||
public enum HtmlParseErrorCode
|
||||
{
|
||||
/// <summary>
|
||||
/// A tag was not closed.
|
||||
/// </summary>
|
||||
TagNotClosed,
|
||||
|
||||
/// <summary>
|
||||
/// A tag was not opened.
|
||||
/// </summary>
|
||||
TagNotOpened,
|
||||
|
||||
/// <summary>
|
||||
/// There is a charset mismatch between stream and declared (META) encoding.
|
||||
/// </summary>
|
||||
CharsetMismatch,
|
||||
|
||||
/// <summary>
|
||||
/// An end tag was not required.
|
||||
/// </summary>
|
||||
EndTagNotRequired,
|
||||
|
||||
/// <summary>
|
||||
/// An end tag is invalid at this position.
|
||||
/// </summary>
|
||||
EndTagInvalidHere
|
||||
}
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an HTML text node.
|
||||
/// </summary>
|
||||
public class HtmlTextNode : HtmlNode
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string _text;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal HtmlTextNode(HtmlDocument ownerdocument, int index)
|
||||
:
|
||||
base(HtmlNodeType.Text, ownerdocument, index)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
|
||||
/// </summary>
|
||||
public override string InnerHtml
|
||||
{
|
||||
get { return OuterHtml; }
|
||||
set { _text = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the object and its content in HTML.
|
||||
/// </summary>
|
||||
public override string OuterHtml
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_text == null)
|
||||
{
|
||||
return base.OuterHtml;
|
||||
}
|
||||
return _text;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the text of the node.
|
||||
/// </summary>
|
||||
public string Text
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_text == null)
|
||||
{
|
||||
return base.OuterHtml;
|
||||
}
|
||||
return _text;
|
||||
}
|
||||
set { _text = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,907 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using System.Xml.Xsl;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// A utility class to get HTML document from HTTP.
|
||||
/// </summary>
|
||||
public class HtmlWeb
|
||||
{
|
||||
#region Delegates
|
||||
|
||||
/// <summary>
|
||||
/// Represents the method that will handle the PostResponse event.
|
||||
/// </summary>
|
||||
public delegate void PostResponseHandler(HttpWebRequest request, HttpWebResponse response);
|
||||
|
||||
/// <summary>
|
||||
/// Represents the method that will handle the PreHandleDocument event.
|
||||
/// </summary>
|
||||
public delegate void PreHandleDocumentHandler(HtmlDocument document);
|
||||
|
||||
/// <summary>
|
||||
/// Represents the method that will handle the PreRequest event.
|
||||
/// </summary>
|
||||
public delegate bool PreRequestHandler(HttpWebRequest request);
|
||||
|
||||
#endregion
|
||||
|
||||
#region Fields
|
||||
|
||||
private bool _autoDetectEncoding = true;
|
||||
private bool _cacheOnly;
|
||||
|
||||
private string _cachePath;
|
||||
private bool _fromCache;
|
||||
private int _requestDuration;
|
||||
private Uri _responseUri;
|
||||
private HttpStatusCode _statusCode = HttpStatusCode.OK;
|
||||
private int _streamBufferSize = 1024;
|
||||
private bool _useCookies;
|
||||
private bool _usingCache;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs after an HTTP request has been executed.
|
||||
/// </summary>
|
||||
public PostResponseHandler PostResponse;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs before an HTML document is handled.
|
||||
/// </summary>
|
||||
public PreHandleDocumentHandler PreHandleDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs before an HTTP request is executed.
|
||||
/// </summary>
|
||||
public PreRequestHandler PreRequest;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets a value indicating if document encoding must be automatically detected.
|
||||
/// </summary>
|
||||
public bool AutoDetectEncoding
|
||||
{
|
||||
get { return _autoDetectEncoding; }
|
||||
set { _autoDetectEncoding = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets a value indicating whether to get document only from the cache.
|
||||
/// If this is set to true and document is not found in the cache, nothing will be loaded.
|
||||
/// </summary>
|
||||
public bool CacheOnly
|
||||
{
|
||||
get { return _cacheOnly; }
|
||||
set
|
||||
{
|
||||
if ((value) && !UsingCache)
|
||||
{
|
||||
throw new HtmlWebException("Cache is not enabled. Set UsingCache to true first.");
|
||||
}
|
||||
_cacheOnly = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the cache path. If null, no caching mechanism will be used.
|
||||
/// </summary>
|
||||
public string CachePath
|
||||
{
|
||||
get { return _cachePath; }
|
||||
set { _cachePath = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating if the last document was retrieved from the cache.
|
||||
/// </summary>
|
||||
public bool FromCache
|
||||
{
|
||||
get { return _fromCache; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the last request duration in milliseconds.
|
||||
/// </summary>
|
||||
public int RequestDuration
|
||||
{
|
||||
get { return _requestDuration; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the URI of the Internet resource that actually responded to the request.
|
||||
/// </summary>
|
||||
public Uri ResponseUri
|
||||
{
|
||||
get { return _responseUri; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the last request status.
|
||||
/// </summary>
|
||||
public HttpStatusCode StatusCode
|
||||
{
|
||||
get { return _statusCode; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the size of the buffer used for memory operations.
|
||||
/// </summary>
|
||||
public int StreamBufferSize
|
||||
{
|
||||
get { return _streamBufferSize; }
|
||||
set
|
||||
{
|
||||
if (_streamBufferSize <= 0)
|
||||
{
|
||||
throw new ArgumentException("Size must be greater than zero.");
|
||||
}
|
||||
_streamBufferSize = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets a value indicating if cookies will be stored.
|
||||
/// </summary>
|
||||
public bool UseCookies
|
||||
{
|
||||
get { return _useCookies; }
|
||||
set { _useCookies = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets a value indicating whether the caching mechanisms should be used or not.
|
||||
/// </summary>
|
||||
public bool UsingCache
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_cachePath == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return _usingCache;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((value) && (_cachePath == null))
|
||||
{
|
||||
throw new HtmlWebException("You need to define a CachePath first.");
|
||||
}
|
||||
_usingCache = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Gets the MIME content type for a given path extension.
|
||||
/// </summary>
|
||||
/// <param name="extension">The input path extension.</param>
|
||||
/// <param name="def">The default content type to return if any error occurs.</param>
|
||||
/// <returns>The path extension's MIME content type.</returns>
|
||||
public static string GetContentTypeForExtension(string extension, string def)
|
||||
{
|
||||
if (string.IsNullOrEmpty(extension))
|
||||
{
|
||||
return def;
|
||||
}
|
||||
string contentType = "";
|
||||
try
|
||||
{
|
||||
RegistryKey reg = Registry.ClassesRoot;
|
||||
reg = reg.OpenSubKey(extension, false);
|
||||
if (reg != null) contentType = (string)reg.GetValue("", def);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
contentType = def;
|
||||
}
|
||||
return contentType;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the path extension for a given MIME content type.
|
||||
/// </summary>
|
||||
/// <param name="contentType">The input MIME content type.</param>
|
||||
/// <param name="def">The default path extension to return if any error occurs.</param>
|
||||
/// <returns>The MIME content type's path extension.</returns>
|
||||
public static string GetExtensionForContentType(string contentType, string def)
|
||||
{
|
||||
if (string.IsNullOrEmpty(contentType))
|
||||
{
|
||||
return def;
|
||||
}
|
||||
string ext = "";
|
||||
try
|
||||
{
|
||||
RegistryKey reg = Registry.ClassesRoot;
|
||||
reg = reg.OpenSubKey(@"MIME\Database\Content Type\" + contentType, false);
|
||||
if (reg != null) ext = (string)reg.GetValue("Extension", def);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
ext = def;
|
||||
}
|
||||
return ext;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an instance of the given type from the specified Internet resource.
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="type">The requested type.</param>
|
||||
/// <returns>An newly created instance.</returns>
|
||||
public object CreateInstance(string url, Type type)
|
||||
{
|
||||
return CreateInstance(url, null, null, type);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an instance of the given type from the specified Internet resource.
|
||||
/// </summary>
|
||||
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
|
||||
/// <param name="xsltArgs">An <see cref="XsltArgumentList"/> containing the namespace-qualified arguments used as input to the transform.</param>
|
||||
/// <param name="type">The requested type.</param>
|
||||
/// <returns>An newly created instance.</returns>
|
||||
public object CreateInstance(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, Type type)
|
||||
{
|
||||
return CreateInstance(htmlUrl, xsltUrl, xsltArgs, type, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an instance of the given type from the specified Internet resource.
|
||||
/// </summary>
|
||||
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
|
||||
/// <param name="xsltArgs">An <see cref="XsltArgumentList"/> containing the namespace-qualified arguments used as input to the transform.</param>
|
||||
/// <param name="type">The requested type.</param>
|
||||
/// <param name="xmlPath">A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes.</param>
|
||||
/// <returns>An newly created instance.</returns>
|
||||
public object CreateInstance(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, Type type,
|
||||
string xmlPath)
|
||||
{
|
||||
StringWriter sw = new StringWriter();
|
||||
XmlTextWriter writer = new XmlTextWriter(sw);
|
||||
if (xsltUrl == null)
|
||||
{
|
||||
LoadHtmlAsXml(htmlUrl, writer);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (xmlPath == null)
|
||||
{
|
||||
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer);
|
||||
}
|
||||
else
|
||||
{
|
||||
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer, xmlPath);
|
||||
}
|
||||
}
|
||||
writer.Flush();
|
||||
StringReader sr = new StringReader(sw.ToString());
|
||||
XmlTextReader reader = new XmlTextReader(sr);
|
||||
XmlSerializer serializer = new XmlSerializer(type);
|
||||
object o;
|
||||
try
|
||||
{
|
||||
o = serializer.Deserialize(reader);
|
||||
}
|
||||
catch (InvalidOperationException ex)
|
||||
{
|
||||
throw new Exception(ex + ", --- xml:" + sw);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an HTML document from an Internet resource and saves it to the specified file.
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="path">The location of the file where you want to save the document.</param>
|
||||
public void Get(string url, string path)
|
||||
{
|
||||
Get(url, path, "GET");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an HTML document from an Internet resource and saves it to the specified file. - Proxy aware
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="path">The location of the file where you want to save the document.</param>
|
||||
/// <param name="proxy"></param>
|
||||
/// <param name="credentials"></param>
|
||||
public void Get(string url, string path, WebProxy proxy, NetworkCredential credentials)
|
||||
{
|
||||
Get(url, path, proxy, credentials, "GET");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an HTML document from an Internet resource and saves it to the specified file.
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="path">The location of the file where you want to save the document.</param>
|
||||
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
|
||||
public void Get(string url, string path, string method)
|
||||
{
|
||||
Uri uri = new Uri(url);
|
||||
if ((uri.Scheme == Uri.UriSchemeHttps) ||
|
||||
(uri.Scheme == Uri.UriSchemeHttp))
|
||||
{
|
||||
Get(uri, method, path, null, null, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an HTML document from an Internet resource and saves it to the specified file. Understands Proxies
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="path">The location of the file where you want to save the document.</param>
|
||||
/// <param name="credentials"></param>
|
||||
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
|
||||
/// <param name="proxy"></param>
|
||||
public void Get(string url, string path, WebProxy proxy, NetworkCredential credentials, string method)
|
||||
{
|
||||
Uri uri = new Uri(url);
|
||||
if ((uri.Scheme == Uri.UriSchemeHttps) ||
|
||||
(uri.Scheme == Uri.UriSchemeHttp))
|
||||
{
|
||||
Get(uri, method, path, null, proxy, credentials);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the cache file path for a specified url.
|
||||
/// </summary>
|
||||
/// <param name="uri">The url fo which to retrieve the cache path. May not be null.</param>
|
||||
/// <returns>The cache file path.</returns>
|
||||
public string GetCachePath(Uri uri)
|
||||
{
|
||||
if (uri == null)
|
||||
{
|
||||
throw new ArgumentNullException("uri");
|
||||
}
|
||||
if (!UsingCache)
|
||||
{
|
||||
throw new HtmlWebException("Cache is not enabled. Set UsingCache to true first.");
|
||||
}
|
||||
string cachePath;
|
||||
if (uri.AbsolutePath == "/")
|
||||
{
|
||||
cachePath = Path.Combine(_cachePath, ".htm");
|
||||
}
|
||||
else
|
||||
{
|
||||
cachePath = Path.Combine(_cachePath, (uri.Host + uri.AbsolutePath).Replace('/', '\\'));
|
||||
}
|
||||
return cachePath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an HTML document from an Internet resource.
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <returns>A new HTML document.</returns>
|
||||
public HtmlDocument Load(string url)
|
||||
{
|
||||
return Load(url, "GET");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an HTML document from an Internet resource.
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="proxyHost">Host to use for Proxy</param>
|
||||
/// <param name="proxyPort">Port the Proxy is on</param>
|
||||
/// <param name="userId">User Id for Authentication</param>
|
||||
/// <param name="password">Password for Authentication</param>
|
||||
/// <returns>A new HTML document.</returns>
|
||||
public HtmlDocument Load(string url, string proxyHost, int proxyPort, string userId, string password)
|
||||
{
|
||||
//Create my proxy
|
||||
WebProxy myProxy = new WebProxy(proxyHost, proxyPort);
|
||||
myProxy.BypassProxyOnLocal = true;
|
||||
|
||||
//Create my credentials
|
||||
NetworkCredential myCreds = null;
|
||||
if ((userId != null) && (password != null))
|
||||
{
|
||||
myCreds = new NetworkCredential(userId, password);
|
||||
CredentialCache credCache = new CredentialCache();
|
||||
//Add the creds
|
||||
credCache.Add(myProxy.Address, "Basic", myCreds);
|
||||
credCache.Add(myProxy.Address, "Digest", myCreds);
|
||||
}
|
||||
|
||||
return Load(url, "GET", myProxy, myCreds);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an HTML document from an Internet resource.
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
|
||||
/// <returns>A new HTML document.</returns>
|
||||
public HtmlDocument Load(string url, string method)
|
||||
{
|
||||
Uri uri = new Uri(url);
|
||||
HtmlDocument doc;
|
||||
if ((uri.Scheme == Uri.UriSchemeHttps) ||
|
||||
(uri.Scheme == Uri.UriSchemeHttp))
|
||||
{
|
||||
doc = LoadUrl(uri, method, null, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (uri.Scheme == Uri.UriSchemeFile)
|
||||
{
|
||||
doc = new HtmlDocument();
|
||||
doc.OptionAutoCloseOnEnd = false;
|
||||
doc.OptionAutoCloseOnEnd = true;
|
||||
doc.DetectEncodingAndLoad(url, _autoDetectEncoding);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
|
||||
}
|
||||
}
|
||||
if (PreHandleDocument != null)
|
||||
{
|
||||
PreHandleDocument(doc);
|
||||
}
|
||||
return doc;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an HTML document from an Internet resource.
|
||||
/// </summary>
|
||||
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
|
||||
/// <param name="proxy">Proxy to use with this request</param>
|
||||
/// <param name="credentials">Credentials to use when authenticating</param>
|
||||
/// <returns>A new HTML document.</returns>
|
||||
public HtmlDocument Load(string url, string method, WebProxy proxy, NetworkCredential credentials)
|
||||
{
|
||||
Uri uri = new Uri(url);
|
||||
HtmlDocument doc;
|
||||
if ((uri.Scheme == Uri.UriSchemeHttps) ||
|
||||
(uri.Scheme == Uri.UriSchemeHttp))
|
||||
{
|
||||
doc = LoadUrl(uri, method, proxy, credentials);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (uri.Scheme == Uri.UriSchemeFile)
|
||||
{
|
||||
doc = new HtmlDocument();
|
||||
doc.OptionAutoCloseOnEnd = false;
|
||||
doc.OptionAutoCloseOnEnd = true;
|
||||
doc.DetectEncodingAndLoad(url, _autoDetectEncoding);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
|
||||
}
|
||||
}
|
||||
if (PreHandleDocument != null)
|
||||
{
|
||||
PreHandleDocument(doc);
|
||||
}
|
||||
return doc;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter.
|
||||
/// </summary>
|
||||
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
|
||||
public void LoadHtmlAsXml(string htmlUrl, XmlTextWriter writer)
|
||||
{
|
||||
HtmlDocument doc = Load(htmlUrl);
|
||||
doc.Save(writer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation.
|
||||
/// </summary>
|
||||
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
|
||||
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
|
||||
/// <param name="xsltArgs">An XsltArgumentList containing the namespace-qualified arguments used as input to the transform.</param>
|
||||
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
|
||||
public void LoadHtmlAsXml(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, XmlTextWriter writer)
|
||||
{
|
||||
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation.
|
||||
/// </summary>
|
||||
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp". May not be null.</param>
|
||||
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
|
||||
/// <param name="xsltArgs">An XsltArgumentList containing the namespace-qualified arguments used as input to the transform.</param>
|
||||
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
|
||||
/// <param name="xmlPath">A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes.</param>
|
||||
public void LoadHtmlAsXml(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, XmlTextWriter writer,
|
||||
string xmlPath)
|
||||
{
|
||||
if (htmlUrl == null)
|
||||
{
|
||||
throw new ArgumentNullException("htmlUrl");
|
||||
}
|
||||
|
||||
HtmlDocument doc = Load(htmlUrl);
|
||||
|
||||
if (xmlPath != null)
|
||||
{
|
||||
XmlTextWriter w = new XmlTextWriter(xmlPath, doc.Encoding);
|
||||
doc.Save(w);
|
||||
w.Close();
|
||||
}
|
||||
if (xsltArgs == null)
|
||||
{
|
||||
xsltArgs = new XsltArgumentList();
|
||||
}
|
||||
|
||||
// add some useful variables to the xslt doc
|
||||
xsltArgs.AddParam("url", "", htmlUrl);
|
||||
xsltArgs.AddParam("requestDuration", "", RequestDuration);
|
||||
xsltArgs.AddParam("fromCache", "", FromCache);
|
||||
|
||||
XslCompiledTransform xslt = new XslCompiledTransform();
|
||||
xslt.Load(xsltUrl);
|
||||
xslt.Transform(doc, xsltArgs, writer);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static void FilePreparePath(string target)
|
||||
{
|
||||
if (File.Exists(target))
|
||||
{
|
||||
FileAttributes atts = File.GetAttributes(target);
|
||||
File.SetAttributes(target, atts & ~FileAttributes.ReadOnly);
|
||||
}
|
||||
else
|
||||
{
|
||||
string dir = Path.GetDirectoryName(target);
|
||||
if (!Directory.Exists(dir))
|
||||
{
|
||||
Directory.CreateDirectory(dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static DateTime RemoveMilliseconds(DateTime t)
|
||||
{
|
||||
return new DateTime(t.Year, t.Month, t.Day, t.Hour, t.Minute, t.Second, 0);
|
||||
}
|
||||
|
||||
// ReSharper disable UnusedMethodReturnValue.Local
|
||||
private static long SaveStream(Stream stream, string path, DateTime touchDate, int streamBufferSize)
|
||||
// ReSharper restore UnusedMethodReturnValue.Local
|
||||
{
|
||||
FilePreparePath(path);
|
||||
FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write);
|
||||
BinaryReader br = null;
|
||||
BinaryWriter bw = null;
|
||||
long len = 0;
|
||||
try
|
||||
{
|
||||
br = new BinaryReader(stream);
|
||||
bw = new BinaryWriter(fs);
|
||||
|
||||
byte[] buffer;
|
||||
do
|
||||
{
|
||||
buffer = br.ReadBytes(streamBufferSize);
|
||||
len += buffer.Length;
|
||||
if (buffer.Length > 0)
|
||||
{
|
||||
bw.Write(buffer);
|
||||
}
|
||||
} while (buffer.Length > 0);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (br != null)
|
||||
{
|
||||
br.Close();
|
||||
}
|
||||
if (bw != null)
|
||||
{
|
||||
bw.Flush();
|
||||
bw.Close();
|
||||
}
|
||||
if (fs != null)
|
||||
{
|
||||
fs.Close();
|
||||
}
|
||||
}
|
||||
File.SetLastWriteTime(path, touchDate);
|
||||
return len;
|
||||
}
|
||||
|
||||
private HttpStatusCode Get(Uri uri, string method, string path, HtmlDocument doc, IWebProxy proxy,
|
||||
ICredentials creds)
|
||||
{
|
||||
string cachePath = null;
|
||||
HttpWebRequest req;
|
||||
bool oldFile = false;
|
||||
|
||||
req = WebRequest.Create(uri) as HttpWebRequest;
|
||||
req.Method = method;
|
||||
|
||||
if (proxy != null)
|
||||
{
|
||||
if (creds != null)
|
||||
{
|
||||
proxy.Credentials = creds;
|
||||
req.Credentials = creds;
|
||||
}
|
||||
else
|
||||
{
|
||||
proxy.Credentials = CredentialCache.DefaultCredentials;
|
||||
req.Credentials = CredentialCache.DefaultCredentials;
|
||||
}
|
||||
req.Proxy = proxy;
|
||||
}
|
||||
|
||||
_fromCache = false;
|
||||
_requestDuration = 0;
|
||||
int tc = Environment.TickCount;
|
||||
if (UsingCache)
|
||||
{
|
||||
cachePath = GetCachePath(req.RequestUri);
|
||||
if (File.Exists(cachePath))
|
||||
{
|
||||
req.IfModifiedSince = File.GetLastAccessTime(cachePath);
|
||||
oldFile = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (_cacheOnly)
|
||||
{
|
||||
if (!File.Exists(cachePath))
|
||||
{
|
||||
throw new HtmlWebException("File was not found at cache path: '" + cachePath + "'");
|
||||
}
|
||||
|
||||
if (path != null)
|
||||
{
|
||||
IOLibrary.CopyAlways(cachePath, path);
|
||||
// touch the file
|
||||
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
|
||||
}
|
||||
_fromCache = true;
|
||||
return HttpStatusCode.NotModified;
|
||||
}
|
||||
|
||||
if (_useCookies)
|
||||
{
|
||||
req.CookieContainer = new CookieContainer();
|
||||
}
|
||||
|
||||
if (PreRequest != null)
|
||||
{
|
||||
// allow our user to change the request at will
|
||||
if (!PreRequest(req))
|
||||
{
|
||||
return HttpStatusCode.ResetContent;
|
||||
}
|
||||
|
||||
// dump cookie
|
||||
// if (_useCookies)
|
||||
// {
|
||||
// foreach(Cookie cookie in req.CookieContainer.GetCookies(req.RequestUri))
|
||||
// {
|
||||
// HtmlLibrary.Trace("Cookie " + cookie.Name + "=" + cookie.Value + " path=" + cookie.Path + " domain=" + cookie.Domain);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
HttpWebResponse resp;
|
||||
|
||||
try
|
||||
{
|
||||
resp = req.GetResponse() as HttpWebResponse;
|
||||
}
|
||||
catch (WebException we)
|
||||
{
|
||||
_requestDuration = Environment.TickCount - tc;
|
||||
resp = (HttpWebResponse)we.Response;
|
||||
if (resp == null)
|
||||
{
|
||||
if (oldFile)
|
||||
{
|
||||
if (path != null)
|
||||
{
|
||||
IOLibrary.CopyAlways(cachePath, path);
|
||||
// touch the file
|
||||
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
|
||||
}
|
||||
return HttpStatusCode.NotModified;
|
||||
}
|
||||
throw;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
_requestDuration = Environment.TickCount - tc;
|
||||
throw;
|
||||
}
|
||||
|
||||
// allow our user to get some info from the response
|
||||
if (PostResponse != null)
|
||||
{
|
||||
PostResponse(req, resp);
|
||||
}
|
||||
|
||||
_requestDuration = Environment.TickCount - tc;
|
||||
_responseUri = resp.ResponseUri;
|
||||
|
||||
bool html = IsHtmlContent(resp.ContentType);
|
||||
Encoding respenc;
|
||||
|
||||
if ((resp.ContentEncoding != null) && (resp.ContentEncoding.Length > 0))
|
||||
{
|
||||
respenc = Encoding.GetEncoding(resp.ContentEncoding);
|
||||
}
|
||||
else
|
||||
{
|
||||
respenc = null;
|
||||
}
|
||||
|
||||
if (resp.StatusCode == HttpStatusCode.NotModified)
|
||||
{
|
||||
if (UsingCache)
|
||||
{
|
||||
_fromCache = true;
|
||||
if (path != null)
|
||||
{
|
||||
IOLibrary.CopyAlways(cachePath, path);
|
||||
// touch the file
|
||||
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
|
||||
}
|
||||
return resp.StatusCode;
|
||||
}
|
||||
else
|
||||
{
|
||||
// this should *never* happen...
|
||||
throw new HtmlWebException("Server has send a NotModifed code, without cache enabled.");
|
||||
}
|
||||
}
|
||||
Stream s = resp.GetResponseStream();
|
||||
if (s != null)
|
||||
{
|
||||
if (UsingCache)
|
||||
{
|
||||
// NOTE: LastModified does not contain milliseconds, so we remove them to the file
|
||||
SaveStream(s, cachePath, RemoveMilliseconds(resp.LastModified), _streamBufferSize);
|
||||
|
||||
// save headers
|
||||
SaveCacheHeaders(req.RequestUri, resp);
|
||||
|
||||
if (path != null)
|
||||
{
|
||||
// copy and touch the file
|
||||
IOLibrary.CopyAlways(cachePath, path);
|
||||
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// try to work in-memory
|
||||
if ((doc != null) && (html))
|
||||
{
|
||||
if (respenc != null)
|
||||
{
|
||||
doc.Load(s, respenc);
|
||||
}
|
||||
else
|
||||
{
|
||||
doc.Load(s, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
resp.Close();
|
||||
}
|
||||
return resp.StatusCode;
|
||||
}
|
||||
|
||||
private string GetCacheHeader(Uri requestUri, string name, string def)
|
||||
{
|
||||
// note: some headers are collection (ex: www-authenticate)
|
||||
// we don't handle that here
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.Load(GetCacheHeadersPath(requestUri));
|
||||
XmlNode node =
|
||||
doc.SelectSingleNode("//h[translate(@n, 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')='" +
|
||||
name.ToUpper() + "']");
|
||||
if (node == null)
|
||||
{
|
||||
return def;
|
||||
}
|
||||
// attribute should exist
|
||||
return node.Attributes[name].Value;
|
||||
}
|
||||
|
||||
private string GetCacheHeadersPath(Uri uri)
|
||||
{
|
||||
//return Path.Combine(GetCachePath(uri), ".h.xml");
|
||||
return GetCachePath(uri) + ".h.xml";
|
||||
}
|
||||
|
||||
private bool IsCacheHtmlContent(string path)
|
||||
{
|
||||
string ct = GetContentTypeForExtension(Path.GetExtension(path), null);
|
||||
return IsHtmlContent(ct);
|
||||
}
|
||||
|
||||
private bool IsHtmlContent(string contentType)
|
||||
{
|
||||
return contentType.ToLower().StartsWith("text/html");
|
||||
}
|
||||
|
||||
private HtmlDocument LoadUrl(Uri uri, string method, WebProxy proxy, NetworkCredential creds)
|
||||
{
|
||||
HtmlDocument doc = new HtmlDocument();
|
||||
doc.OptionAutoCloseOnEnd = false;
|
||||
doc.OptionFixNestedTags = true;
|
||||
_statusCode = Get(uri, method, null, doc, proxy, creds);
|
||||
if (_statusCode == HttpStatusCode.NotModified)
|
||||
{
|
||||
// read cached encoding
|
||||
doc.DetectEncodingAndLoad(GetCachePath(uri));
|
||||
}
|
||||
return doc;
|
||||
}
|
||||
|
||||
private void SaveCacheHeaders(Uri requestUri, HttpWebResponse resp)
|
||||
{
|
||||
// we cache the original headers aside the cached document.
|
||||
string file = GetCacheHeadersPath(requestUri);
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.LoadXml("<c></c>");
|
||||
XmlNode cache = doc.FirstChild;
|
||||
foreach (string header in resp.Headers)
|
||||
{
|
||||
XmlNode entry = doc.CreateElement("h");
|
||||
XmlAttribute att = doc.CreateAttribute("n");
|
||||
att.Value = header;
|
||||
entry.Attributes.Append(att);
|
||||
|
||||
att = doc.CreateAttribute("v");
|
||||
att.Value = resp.Headers[header];
|
||||
entry.Attributes.Append(att);
|
||||
|
||||
cache.AppendChild(entry);
|
||||
}
|
||||
doc.Save(file);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an exception thrown by the HtmlWeb utility class.
|
||||
/// </summary>
|
||||
public class HtmlWebException : Exception
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Creates an instance of the HtmlWebException.
|
||||
/// </summary>
|
||||
/// <param name="message">The exception's message.</param>
|
||||
public HtmlWebException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System.IO;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
internal struct IOLibrary
|
||||
{
|
||||
#region Internal Methods
|
||||
|
||||
internal static void CopyAlways(string source, string target)
|
||||
{
|
||||
if (!File.Exists(source))
|
||||
return;
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(target));
|
||||
MakeWritable(target);
|
||||
File.Copy(source, target, true);
|
||||
}
|
||||
|
||||
internal static void MakeWritable(string path)
|
||||
{
|
||||
if (!File.Exists(path))
|
||||
return;
|
||||
File.SetAttributes(path, File.GetAttributes(path) & ~FileAttributes.ReadOnly);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
Microsoft Permissive License (Ms-PL)
|
||||
|
||||
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
|
||||
|
||||
1. Definitions
|
||||
|
||||
The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under U.S. copyright law.
|
||||
A “contribution” is the original software, or any additions or changes to the software.
|
||||
A “contributor” is any person that distributes its contribution under this license.
|
||||
“Licensed patents” are a contributor’s patent claims that read directly on its contribution.
|
||||
|
||||
2. Grant of Rights
|
||||
|
||||
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
|
||||
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
|
||||
|
||||
3. Conditions and Limitations
|
||||
|
||||
(A) No Trademark License- This license does not grant you rights to use any contributors’ name, logo, or trademarks.
|
||||
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
|
||||
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
|
||||
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
|
||||
(E) The software is licensed “as-is.” You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
|
||||
(F) If you distribute the software or derivative works with programs you develop, you agree to indemnify, defend, and hold harmless all contributors from any claims, including attorneys’ fees, related to the distribution or use of your programs. For clarity, you have no such obligations to a contributor for any claims based solely on the unmodified contributions of that contributor.
|
||||
(G) If you make any additions or changes to the original software, you may only distribute them under a new namespace. In addition, you will clearly identify your changes or additions as your own.
|
||||
|
||||
|
||||
@@ -1,453 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a document with mixed code and text. ASP, ASPX, JSP, are good example of such documents.
|
||||
/// </summary>
|
||||
public class MixedCodeDocument
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private int _c;
|
||||
internal MixedCodeDocumentFragmentList _codefragments;
|
||||
private MixedCodeDocumentFragment _currentfragment;
|
||||
internal MixedCodeDocumentFragmentList _fragments;
|
||||
private int _index;
|
||||
private int _line;
|
||||
private int _lineposition;
|
||||
private ParseState _state;
|
||||
private Encoding _streamencoding;
|
||||
internal string _text;
|
||||
internal MixedCodeDocumentFragmentList _textfragments;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the token representing code end.
|
||||
/// </summary>
|
||||
public string TokenCodeEnd = "%>";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the token representing code start.
|
||||
/// </summary>
|
||||
public string TokenCodeStart = "<%";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the token representing code directive.
|
||||
/// </summary>
|
||||
public string TokenDirective = "@";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the token representing response write directive.
|
||||
/// </summary>
|
||||
public string TokenResponseWrite = "Response.Write ";
|
||||
|
||||
|
||||
private string TokenTextBlock = "TextBlock({0})";
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
/// <summary>
|
||||
/// Creates a mixed code document instance.
|
||||
/// </summary>
|
||||
public MixedCodeDocument()
|
||||
{
|
||||
_codefragments = new MixedCodeDocumentFragmentList(this);
|
||||
_textfragments = new MixedCodeDocumentFragmentList(this);
|
||||
_fragments = new MixedCodeDocumentFragmentList(this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the code represented by the mixed code document seen as a template.
|
||||
/// </summary>
|
||||
public string Code
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = "";
|
||||
int i = 0;
|
||||
foreach (MixedCodeDocumentFragment frag in _fragments)
|
||||
{
|
||||
switch (frag._type)
|
||||
{
|
||||
case MixedCodeDocumentFragmentType.Text:
|
||||
s += TokenResponseWrite + string.Format(TokenTextBlock, i) + "\n";
|
||||
i++;
|
||||
break;
|
||||
|
||||
case MixedCodeDocumentFragmentType.Code:
|
||||
s += ((MixedCodeDocumentCodeFragment) frag).Code + "\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of code fragments in the document.
|
||||
/// </summary>
|
||||
public MixedCodeDocumentFragmentList CodeFragments
|
||||
{
|
||||
get { return _codefragments; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of all fragments in the document.
|
||||
/// </summary>
|
||||
public MixedCodeDocumentFragmentList Fragments
|
||||
{
|
||||
get { return _fragments; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the encoding of the stream used to read the document.
|
||||
/// </summary>
|
||||
public Encoding StreamEncoding
|
||||
{
|
||||
get { return _streamencoding; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of text fragments in the document.
|
||||
/// </summary>
|
||||
public MixedCodeDocumentFragmentList TextFragments
|
||||
{
|
||||
get { return _textfragments; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Create a code fragment instances.
|
||||
/// </summary>
|
||||
/// <returns>The newly created code fragment instance.</returns>
|
||||
public MixedCodeDocumentCodeFragment CreateCodeFragment()
|
||||
{
|
||||
return (MixedCodeDocumentCodeFragment) CreateFragment(MixedCodeDocumentFragmentType.Code);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a text fragment instances.
|
||||
/// </summary>
|
||||
/// <returns>The newly created text fragment instance.</returns>
|
||||
public MixedCodeDocumentTextFragment CreateTextFragment()
|
||||
{
|
||||
return (MixedCodeDocumentTextFragment) CreateFragment(MixedCodeDocumentFragmentType.Text);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
public void Load(Stream stream)
|
||||
{
|
||||
Load(new StreamReader(stream));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
public void Load(Stream stream, bool detectEncodingFromByteOrderMarks)
|
||||
{
|
||||
Load(new StreamReader(stream, detectEncodingFromByteOrderMarks));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
public void Load(Stream stream, Encoding encoding)
|
||||
{
|
||||
Load(new StreamReader(stream, encoding));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
public void Load(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
|
||||
{
|
||||
Load(new StreamReader(stream, encoding, detectEncodingFromByteOrderMarks));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a stream.
|
||||
/// </summary>
|
||||
/// <param name="stream">The input stream.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
/// <param name="buffersize">The minimum buffer size.</param>
|
||||
public void Load(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
|
||||
{
|
||||
Load(new StreamReader(stream, encoding, detectEncodingFromByteOrderMarks, buffersize));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
public void Load(string path)
|
||||
{
|
||||
Load(new StreamReader(path));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
public void Load(string path, bool detectEncodingFromByteOrderMarks)
|
||||
{
|
||||
Load(new StreamReader(path, detectEncodingFromByteOrderMarks));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
public void Load(string path, Encoding encoding)
|
||||
{
|
||||
Load(new StreamReader(path, encoding));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
public void Load(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks)
|
||||
{
|
||||
Load(new StreamReader(path, encoding, detectEncodingFromByteOrderMarks));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed code document from a file.
|
||||
/// </summary>
|
||||
/// <param name="path">The complete file path to be read.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
|
||||
/// <param name="buffersize">The minimum buffer size.</param>
|
||||
public void Load(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
|
||||
{
|
||||
Load(new StreamReader(path, encoding, detectEncodingFromByteOrderMarks, buffersize));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads the mixed code document from the specified TextReader.
|
||||
/// </summary>
|
||||
/// <param name="reader">The TextReader used to feed the HTML data into the document.</param>
|
||||
public void Load(TextReader reader)
|
||||
{
|
||||
_codefragments.Clear();
|
||||
_textfragments.Clear();
|
||||
|
||||
// all pseudo constructors get down to this one
|
||||
StreamReader sr = reader as StreamReader;
|
||||
if (sr != null)
|
||||
{
|
||||
_streamencoding = sr.CurrentEncoding;
|
||||
}
|
||||
|
||||
_text = reader.ReadToEnd();
|
||||
reader.Close();
|
||||
Parse();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a mixed document from a text
|
||||
/// </summary>
|
||||
/// <param name="html">The text to load.</param>
|
||||
public void LoadHtml(string html)
|
||||
{
|
||||
Load(new StringReader(html));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the mixed document to the specified stream.
|
||||
/// </summary>
|
||||
/// <param name="outStream">The stream to which you want to save.</param>
|
||||
public void Save(Stream outStream)
|
||||
{
|
||||
StreamWriter sw = new StreamWriter(outStream, GetOutEncoding());
|
||||
Save(sw);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the mixed document to the specified stream.
|
||||
/// </summary>
|
||||
/// <param name="outStream">The stream to which you want to save.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
public void Save(Stream outStream, Encoding encoding)
|
||||
{
|
||||
StreamWriter sw = new StreamWriter(outStream, encoding);
|
||||
Save(sw);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the mixed document to the specified file.
|
||||
/// </summary>
|
||||
/// <param name="filename">The location of the file where you want to save the document.</param>
|
||||
public void Save(string filename)
|
||||
{
|
||||
StreamWriter sw = new StreamWriter(filename, false, GetOutEncoding());
|
||||
Save(sw);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the mixed document to the specified file.
|
||||
/// </summary>
|
||||
/// <param name="filename">The location of the file where you want to save the document.</param>
|
||||
/// <param name="encoding">The character encoding to use.</param>
|
||||
public void Save(string filename, Encoding encoding)
|
||||
{
|
||||
StreamWriter sw = new StreamWriter(filename, false, encoding);
|
||||
Save(sw);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the mixed document to the specified StreamWriter.
|
||||
/// </summary>
|
||||
/// <param name="writer">The StreamWriter to which you want to save.</param>
|
||||
public void Save(StreamWriter writer)
|
||||
{
|
||||
Save((TextWriter) writer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the mixed document to the specified TextWriter.
|
||||
/// </summary>
|
||||
/// <param name="writer">The TextWriter to which you want to save.</param>
|
||||
public void Save(TextWriter writer)
|
||||
{
|
||||
writer.Flush();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
internal MixedCodeDocumentFragment CreateFragment(MixedCodeDocumentFragmentType type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case MixedCodeDocumentFragmentType.Text:
|
||||
return new MixedCodeDocumentTextFragment(this);
|
||||
|
||||
case MixedCodeDocumentFragmentType.Code:
|
||||
return new MixedCodeDocumentCodeFragment(this);
|
||||
|
||||
default:
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
internal Encoding GetOutEncoding()
|
||||
{
|
||||
if (_streamencoding != null)
|
||||
return _streamencoding;
|
||||
return Encoding.Default;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void IncrementPosition()
|
||||
{
|
||||
_index++;
|
||||
if (_c == 10)
|
||||
{
|
||||
_lineposition = 1;
|
||||
_line++;
|
||||
}
|
||||
else
|
||||
_lineposition++;
|
||||
}
|
||||
|
||||
private void Parse()
|
||||
{
|
||||
_state = ParseState.Text;
|
||||
_index = 0;
|
||||
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Text);
|
||||
|
||||
while (_index < _text.Length)
|
||||
{
|
||||
_c = _text[_index];
|
||||
IncrementPosition();
|
||||
|
||||
switch (_state)
|
||||
{
|
||||
case ParseState.Text:
|
||||
if (_index + TokenCodeStart.Length < _text.Length)
|
||||
{
|
||||
if (_text.Substring(_index - 1, TokenCodeStart.Length) == TokenCodeStart)
|
||||
{
|
||||
_state = ParseState.Code;
|
||||
_currentfragment.Length = _index - 1 - _currentfragment.Index;
|
||||
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Code);
|
||||
SetPosition();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case ParseState.Code:
|
||||
if (_index + TokenCodeEnd.Length < _text.Length)
|
||||
{
|
||||
if (_text.Substring(_index - 1, TokenCodeEnd.Length) == TokenCodeEnd)
|
||||
{
|
||||
_state = ParseState.Text;
|
||||
_currentfragment.Length = _index + TokenCodeEnd.Length - _currentfragment.Index;
|
||||
_index += TokenCodeEnd.Length;
|
||||
_lineposition += TokenCodeEnd.Length;
|
||||
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Text);
|
||||
SetPosition();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_currentfragment.Length = _index - _currentfragment.Index;
|
||||
}
|
||||
|
||||
private void SetPosition()
|
||||
{
|
||||
_currentfragment.Line = _line;
|
||||
_currentfragment._lineposition = _lineposition;
|
||||
_currentfragment.Index = _index - 1;
|
||||
_currentfragment.Length = 0;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Nested type: ParseState
|
||||
|
||||
private enum ParseState
|
||||
{
|
||||
Text,
|
||||
Code
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a fragment of code in a mixed code document.
|
||||
/// </summary>
|
||||
public class MixedCodeDocumentCodeFragment : MixedCodeDocumentFragment
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string _code;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal MixedCodeDocumentCodeFragment(MixedCodeDocument doc)
|
||||
:
|
||||
base(doc, MixedCodeDocumentFragmentType.Code)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the fragment code text.
|
||||
/// </summary>
|
||||
public string Code
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_code == null)
|
||||
{
|
||||
_code = FragmentText.Substring(Doc.TokenCodeStart.Length,
|
||||
FragmentText.Length - Doc.TokenCodeEnd.Length -
|
||||
Doc.TokenCodeStart.Length - 1).Trim();
|
||||
if (_code.StartsWith("="))
|
||||
{
|
||||
_code = Doc.TokenResponseWrite + _code.Substring(1, _code.Length - 1);
|
||||
}
|
||||
}
|
||||
return _code;
|
||||
}
|
||||
set { _code = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,95 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a base class for fragments in a mixed code document.
|
||||
/// </summary>
|
||||
public abstract class MixedCodeDocumentFragment
|
||||
{
|
||||
#region Fields
|
||||
|
||||
internal MixedCodeDocument Doc;
|
||||
private string _fragmentText;
|
||||
internal int Index;
|
||||
internal int Length;
|
||||
private int _line;
|
||||
internal int _lineposition;
|
||||
internal MixedCodeDocumentFragmentType _type;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal MixedCodeDocumentFragment(MixedCodeDocument doc, MixedCodeDocumentFragmentType type)
|
||||
{
|
||||
Doc = doc;
|
||||
_type = type;
|
||||
switch (type)
|
||||
{
|
||||
case MixedCodeDocumentFragmentType.Text:
|
||||
Doc._textfragments.Append(this);
|
||||
break;
|
||||
|
||||
case MixedCodeDocumentFragmentType.Code:
|
||||
Doc._codefragments.Append(this);
|
||||
break;
|
||||
}
|
||||
Doc._fragments.Append(this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the fragement text.
|
||||
/// </summary>
|
||||
public string FragmentText
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_fragmentText == null)
|
||||
{
|
||||
_fragmentText = Doc._text.Substring(Index, Length);
|
||||
}
|
||||
return FragmentText;
|
||||
}
|
||||
internal set { _fragmentText = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of fragment.
|
||||
/// </summary>
|
||||
public MixedCodeDocumentFragmentType FragmentType
|
||||
{
|
||||
get { return _type; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the line number of the fragment.
|
||||
/// </summary>
|
||||
public int Line
|
||||
{
|
||||
get { return _line; }
|
||||
internal set { _line = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the line position (column) of the fragment.
|
||||
/// </summary>
|
||||
public int LinePosition
|
||||
{
|
||||
get { return _lineposition; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the fragment position in the document's stream.
|
||||
/// </summary>
|
||||
public int StreamPosition
|
||||
{
|
||||
get { return Index; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,236 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a list of mixed code fragments.
|
||||
/// </summary>
|
||||
public class MixedCodeDocumentFragmentList : IEnumerable
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private MixedCodeDocument _doc;
|
||||
private ArrayList _items = new ArrayList();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal MixedCodeDocumentFragmentList(MixedCodeDocument doc)
|
||||
{
|
||||
_doc = doc;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
///<summary>
|
||||
/// Gets the Document
|
||||
///</summary>
|
||||
public MixedCodeDocument Doc
|
||||
{
|
||||
get { return _doc; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of fragments contained in the list.
|
||||
/// </summary>
|
||||
public int Count
|
||||
{
|
||||
get { return _items.Count; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a fragment from the list using its index.
|
||||
/// </summary>
|
||||
public MixedCodeDocumentFragment this[int index]
|
||||
{
|
||||
get { return _items[index] as MixedCodeDocumentFragment; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IEnumerable Members
|
||||
|
||||
/// <summary>
|
||||
/// Gets an enumerator that can iterate through the fragment list.
|
||||
/// </summary>
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return GetEnumerator();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Appends a fragment to the list of fragments.
|
||||
/// </summary>
|
||||
/// <param name="newFragment">The fragment to append. May not be null.</param>
|
||||
public void Append(MixedCodeDocumentFragment newFragment)
|
||||
{
|
||||
if (newFragment == null)
|
||||
{
|
||||
throw new ArgumentNullException("newFragment");
|
||||
}
|
||||
_items.Add(newFragment);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an enumerator that can iterate through the fragment list.
|
||||
/// </summary>
|
||||
public MixedCodeDocumentFragmentEnumerator GetEnumerator()
|
||||
{
|
||||
return new MixedCodeDocumentFragmentEnumerator(_items);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Prepends a fragment to the list of fragments.
|
||||
/// </summary>
|
||||
/// <param name="newFragment">The fragment to append. May not be null.</param>
|
||||
public void Prepend(MixedCodeDocumentFragment newFragment)
|
||||
{
|
||||
if (newFragment == null)
|
||||
{
|
||||
throw new ArgumentNullException("newFragment");
|
||||
}
|
||||
_items.Insert(0, newFragment);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove a fragment from the list of fragments. If this fragment was not in the list, an exception will be raised.
|
||||
/// </summary>
|
||||
/// <param name="fragment">The fragment to remove. May not be null.</param>
|
||||
public void Remove(MixedCodeDocumentFragment fragment)
|
||||
{
|
||||
if (fragment == null)
|
||||
{
|
||||
throw new ArgumentNullException("fragment");
|
||||
}
|
||||
int index = GetFragmentIndex(fragment);
|
||||
if (index == -1)
|
||||
{
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
RemoveAt(index);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove all fragments from the list.
|
||||
/// </summary>
|
||||
public void RemoveAll()
|
||||
{
|
||||
_items.Clear();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove a fragment from the list of fragments, using its index in the list.
|
||||
/// </summary>
|
||||
/// <param name="index">The index of the fragment to remove.</param>
|
||||
public void RemoveAt(int index)
|
||||
{
|
||||
//MixedCodeDocumentFragment frag = (MixedCodeDocumentFragment) _items[index];
|
||||
_items.RemoveAt(index);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
internal void Clear()
|
||||
{
|
||||
_items.Clear();
|
||||
}
|
||||
|
||||
internal int GetFragmentIndex(MixedCodeDocumentFragment fragment)
|
||||
{
|
||||
if (fragment == null)
|
||||
{
|
||||
throw new ArgumentNullException("fragment");
|
||||
}
|
||||
for (int i = 0; i < _items.Count; i++)
|
||||
{
|
||||
if ((_items[i]) == fragment)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Nested type: MixedCodeDocumentFragmentEnumerator
|
||||
|
||||
/// <summary>
|
||||
/// Represents a fragment enumerator.
|
||||
/// </summary>
|
||||
public class MixedCodeDocumentFragmentEnumerator : IEnumerator
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private int _index;
|
||||
private ArrayList _items;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal MixedCodeDocumentFragmentEnumerator(ArrayList items)
|
||||
{
|
||||
_items = items;
|
||||
_index = -1;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
public MixedCodeDocumentFragment Current
|
||||
{
|
||||
get { return (MixedCodeDocumentFragment) (_items[_index]); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IEnumerator Members
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get { return (Current); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next element of the collection.
|
||||
/// </summary>
|
||||
/// <returns>true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
_index++;
|
||||
return (_index < _items.Count);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the enumerator to its initial position, which is before the first element in the collection.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the type of fragment in a mixed code document.
|
||||
/// </summary>
|
||||
public enum MixedCodeDocumentFragmentType
|
||||
{
|
||||
/// <summary>
|
||||
/// The fragment contains code.
|
||||
/// </summary>
|
||||
Code,
|
||||
|
||||
/// <summary>
|
||||
/// The fragment contains text.
|
||||
/// </summary>
|
||||
Text,
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a fragment of text in a mixed code document.
|
||||
/// </summary>
|
||||
public class MixedCodeDocumentTextFragment : MixedCodeDocumentFragment
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
internal MixedCodeDocumentTextFragment(MixedCodeDocument doc)
|
||||
:
|
||||
base(doc, MixedCodeDocumentFragmentType.Text)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the fragment text.
|
||||
/// </summary>
|
||||
public string Text
|
||||
{
|
||||
get { return FragmentText; }
|
||||
set { FragmentText = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
internal class NameValuePair
|
||||
{
|
||||
#region Fields
|
||||
|
||||
internal readonly string Name;
|
||||
internal string Value;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal NameValuePair()
|
||||
{
|
||||
}
|
||||
|
||||
internal NameValuePair(string name)
|
||||
:
|
||||
this()
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
internal NameValuePair(string name, string value)
|
||||
:
|
||||
this(name)
|
||||
{
|
||||
Value = value;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,101 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
internal class NameValuePairList
|
||||
{
|
||||
#region Fields
|
||||
|
||||
internal readonly string Text;
|
||||
private ArrayList _allPairs;
|
||||
private Hashtable _pairsWithName;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
internal NameValuePairList() :
|
||||
this(null)
|
||||
{
|
||||
}
|
||||
|
||||
internal NameValuePairList(string text)
|
||||
{
|
||||
Text = text;
|
||||
_allPairs = new ArrayList();
|
||||
_pairsWithName = new Hashtable();
|
||||
|
||||
Parse(text);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
internal static string GetNameValuePairsValue(string text, string name)
|
||||
{
|
||||
NameValuePairList l = new NameValuePairList(text);
|
||||
return l.GetNameValuePairValue(name);
|
||||
}
|
||||
|
||||
internal ArrayList GetNameValuePairs(string name)
|
||||
{
|
||||
if (name == null)
|
||||
return _allPairs;
|
||||
return _pairsWithName[name] as ArrayList;
|
||||
}
|
||||
|
||||
internal string GetNameValuePairValue(string name)
|
||||
{
|
||||
if (name == null)
|
||||
throw new ArgumentNullException();
|
||||
ArrayList al = GetNameValuePairs(name);
|
||||
if (al == null)
|
||||
return null;
|
||||
|
||||
// return first item
|
||||
NameValuePair nvp = al[0] as NameValuePair;
|
||||
return nvp != null ? nvp.Value : string.Empty;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Parse(string text)
|
||||
{
|
||||
_allPairs.Clear();
|
||||
_pairsWithName.Clear();
|
||||
if (text == null)
|
||||
return;
|
||||
|
||||
string[] p = text.Split(';');
|
||||
foreach (string pv in p)
|
||||
{
|
||||
if (pv.Length == 0)
|
||||
continue;
|
||||
string[] onep = pv.Split(new char[] {'='}, 2);
|
||||
if (onep.Length==0)
|
||||
continue;
|
||||
NameValuePair nvp = new NameValuePair(onep[0].Trim().ToLower());
|
||||
|
||||
nvp.Value = onep.Length < 2 ? "" : onep[1];
|
||||
|
||||
_allPairs.Add(nvp);
|
||||
|
||||
// index by name
|
||||
ArrayList al = _pairsWithName[nvp.Name] as ArrayList;
|
||||
if (al == null)
|
||||
{
|
||||
al = new ArrayList();
|
||||
_pairsWithName[nvp.Name] = al;
|
||||
}
|
||||
al.Add(nvp);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
|
||||
namespace HtmlAgilityPack
|
||||
{
|
||||
/// <summary>
|
||||
/// A utility class to compute CRC32.
|
||||
/// </summary>
|
||||
public class Crc32
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private uint _crc32;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Static Members
|
||||
|
||||
private static uint[] crc_32_tab = // CRC polynomial 0xedb88320
|
||||
{
|
||||
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
|
||||
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
|
||||
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
|
||||
0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,
|
||||
0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
|
||||
0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,
|
||||
0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c,
|
||||
0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,
|
||||
0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423,
|
||||
0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
|
||||
0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106,
|
||||
0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433,
|
||||
0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d,
|
||||
0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e,
|
||||
0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,
|
||||
0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65,
|
||||
0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7,
|
||||
0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0,
|
||||
0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa,
|
||||
0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
|
||||
0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81,
|
||||
0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a,
|
||||
0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84,
|
||||
0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1,
|
||||
0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,
|
||||
0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc,
|
||||
0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e,
|
||||
0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b,
|
||||
0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55,
|
||||
0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
|
||||
0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28,
|
||||
0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d,
|
||||
0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f,
|
||||
0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38,
|
||||
0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,
|
||||
0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777,
|
||||
0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69,
|
||||
0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2,
|
||||
0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc,
|
||||
0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
|
||||
0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693,
|
||||
0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94,
|
||||
0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d
|
||||
};
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
internal uint CheckSum
|
||||
{
|
||||
get { return _crc32; }
|
||||
set { _crc32 = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Compute a checksum for a given array of bytes.
|
||||
/// </summary>
|
||||
/// <param name="bytes">The array of bytes to compute the checksum for.</param>
|
||||
/// <returns>The computed checksum.</returns>
|
||||
public static uint CRC32Bytes(byte[] bytes)
|
||||
{
|
||||
uint oldcrc32;
|
||||
oldcrc32 = 0xFFFFFFFF;
|
||||
int len = bytes.Length;
|
||||
|
||||
for (int i = 0; len > 0; i++)
|
||||
{
|
||||
--len;
|
||||
oldcrc32 = UPDC32(bytes[len], oldcrc32);
|
||||
}
|
||||
return ~oldcrc32;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Compute a checksum for a given string.
|
||||
/// </summary>
|
||||
/// <param name="text">The string to compute the checksum for.</param>
|
||||
/// <returns>The computed checksum.</returns>
|
||||
public static uint CRC32String(string text)
|
||||
{
|
||||
uint oldcrc32;
|
||||
oldcrc32 = 0xFFFFFFFF;
|
||||
int len = text.Length;
|
||||
ushort uCharVal;
|
||||
byte lowByte, hiByte;
|
||||
|
||||
for (int i = 0; len > 0; i++)
|
||||
{
|
||||
--len;
|
||||
uCharVal = text[len];
|
||||
unchecked
|
||||
{
|
||||
lowByte = (byte) (uCharVal & 0x00ff);
|
||||
hiByte = (byte) (uCharVal >> 8);
|
||||
}
|
||||
oldcrc32 = UPDC32(hiByte, oldcrc32);
|
||||
oldcrc32 = UPDC32(lowByte, oldcrc32);
|
||||
}
|
||||
|
||||
return ~oldcrc32;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal Methods
|
||||
|
||||
internal uint AddToCRC32(int c)
|
||||
{
|
||||
return AddToCRC32((ushort) c);
|
||||
}
|
||||
|
||||
internal uint AddToCRC32(ushort c)
|
||||
{
|
||||
byte lowByte, hiByte;
|
||||
lowByte = (byte) (c & 0x00ff);
|
||||
hiByte = (byte) (c >> 8);
|
||||
_crc32 = UPDC32(hiByte, _crc32);
|
||||
_crc32 = UPDC32(lowByte, _crc32);
|
||||
return ~_crc32;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private static uint UPDC32(byte octet, uint crc)
|
||||
{
|
||||
return (crc_32_tab[((crc) ^ (octet)) & 0xff] ^ ((crc) >> 8));
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+9
-17
@@ -13,6 +13,7 @@ ASSEMBLED_DOCS = \
|
||||
|
||||
EXTRA_DIST = \
|
||||
abc-removal.txt \
|
||||
AgilityPack.dll \
|
||||
api-style.css \
|
||||
assembly-bundle \
|
||||
check-exports \
|
||||
@@ -67,33 +68,31 @@ EXTRA_DIST = \
|
||||
dist-hook:
|
||||
$(mkdir_p) $(distdir)/sources
|
||||
$(mkdir_p) $(distdir)/svgs
|
||||
$(mkdir_p) $(distdir)/HtmlAgilityPack
|
||||
cp sources/* $(distdir)/sources
|
||||
cp svgs/* $(distdir)/svgs
|
||||
cp HtmlAgilityPack/* $(distdir)/HtmlAgilityPack
|
||||
|
||||
clean-local:
|
||||
-rm -Rf $(srcdir)/html
|
||||
-rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe* $(srcdir)/AgilityPack.dll*
|
||||
-rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe*
|
||||
-cd $(srcdir) && rm -f $(ASSEMBLED_DOCS)
|
||||
|
||||
monoapi.zip: monoapi.tree
|
||||
@test -f $@ || { rm -f $(srcdir)/monoapi.tree && $(MAKE) monoapi.tree; }
|
||||
monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp perms
|
||||
cd $(srcdir) && cp -f api-style.css deploy
|
||||
monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp
|
||||
cd $(srcdir) && cp api-style.css deploy
|
||||
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
|
||||
|
||||
mono-tools.zip: mono-tools.tree
|
||||
@test -f $@ || { rm -f $(srcdir)/mono-tools.tree && $(MAKE) mono-tools.tree; }
|
||||
mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp perms
|
||||
mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
|
||||
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
|
||||
|
||||
mono-file-formats.zip: mono-file-formats.tree perms
|
||||
mono-file-formats.zip: mono-file-formats.tree
|
||||
@test -f $@ || { rm -f $(srcdir)/mono-file-formats.tree && $(MAKE) mono-file-formats.tree; }
|
||||
mono-file-formats.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
|
||||
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
|
||||
|
||||
$(srcdir)/deploy/.stamp: convert.exe Makefile.am perms
|
||||
$(srcdir)/deploy/.stamp: convert.exe Makefile.am
|
||||
$(mkdir_p) $(srcdir)/html
|
||||
runtimedir=`cd ../runtime && pwd`; export runtimedir; \
|
||||
cd $(srcdir) && MONO_PATH=$(mcs_topdir_from_srcdir)/class/lib/net_2_0 perl ./exdoc -h . ../mono/*/*.c
|
||||
@@ -101,13 +100,6 @@ $(srcdir)/deploy/.stamp: convert.exe Makefile.am perms
|
||||
|
||||
extract: $(srcdir)/deploy/.stamp
|
||||
|
||||
convert.exe: convert.cs AgilityPack.dll perms
|
||||
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
|
||||
|
||||
AgilityPack.dll: perms
|
||||
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) AgilityPack.dll
|
||||
|
||||
.PHONY: perms
|
||||
perms:
|
||||
-@test -w $(srcdir) || chmod a+w $(srcdir)
|
||||
convert.exe: convert.cs AgilityPack.dll
|
||||
cd $(srcdir) && $(MAKE) PROFILE=net_1_1 -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
|
||||
|
||||
+4
-2
@@ -64,8 +64,10 @@ PROGRAMS
|
||||
* convert.cs
|
||||
|
||||
Converts an HTML file into a valid XML document, uses the
|
||||
AgilityPack.dll. The sources to this DLL live in the
|
||||
HtmlAgilityPack folder, and are a prerequisite for convert.exe.
|
||||
AgilityPack.dll. The sources to this DLL live in GNOME CVS
|
||||
module beagle/Filters/AgilityPack.
|
||||
|
||||
A binary is shipped for our convenience.
|
||||
|
||||
DATAFILES:
|
||||
---------
|
||||
|
||||
+914
-836
File diff suppressed because it is too large.
Load diff
@@ -10,9 +10,6 @@ ASSEMBLED_DOCS = \
|
||||
convert.exe: convert.cs AgilityPack.dll
|
||||
$(CSCOMPILE) -out:$@ $< -r:AgilityPack.dll
|
||||
|
||||
AgilityPack.dll:
|
||||
$(CSCOMPILE) -target:library -out:$@ HtmlAgilityPack/*.cs
|
||||
|
||||
monoapi.zip: monoapi.tree
|
||||
@test -f $@ || { rm -f $< && $(MAKE) $<; }
|
||||
monoapi.tree: toc.xml docs.make
|
||||
|
||||
+148
-159
@@ -1,6 +1,7 @@
|
||||
mono_assembly_open
|
||||
mono_assembly_close
|
||||
mono_assembly_load
|
||||
mono_assembly_load_from
|
||||
mono_assembly_load_full
|
||||
mono_assembly_loaded
|
||||
mono_assembly_get_image
|
||||
@@ -179,6 +180,7 @@ mono_domain_get_tls_key
|
||||
mono_domain_owns_vtable_slot
|
||||
mono_context_get
|
||||
mono_context_set
|
||||
mono_create_jit_trampoline
|
||||
mono_mb_new
|
||||
mono_mb_add_data
|
||||
mono_mb_add_local
|
||||
@@ -257,6 +259,8 @@ mono_get_exception_not_supported
|
||||
mono_get_exception_reflection_type_load
|
||||
mono_gchandle_new
|
||||
mono_gchandle_new_weakref
|
||||
mono_gchandle_new
|
||||
mono_gchandle_new_weakref
|
||||
mono_gchandle_get_target
|
||||
mono_gchandle_is_in_domain
|
||||
mono_gchandle_free
|
||||
@@ -283,33 +287,42 @@ mono_gc_is_gc_thread
|
||||
mono_gc_pending_finalizers
|
||||
mono_gc_register_thread
|
||||
mono_gc_finalize_notify
|
||||
mono_image_open
|
||||
mono_image_open_full
|
||||
mono_image_open_from_data
|
||||
mono_image_open_from_data_full
|
||||
mono_image_close
|
||||
mono_image_addref
|
||||
mono_image_load_file_for_image
|
||||
mono_image_get_guid
|
||||
mono_image_add_to_name_cache
|
||||
mono_image_close
|
||||
mono_image_ensure_section_idx
|
||||
mono_image_ensure_section
|
||||
mono_image_get_assembly
|
||||
mono_image_get_entry_point
|
||||
mono_image_get_filename
|
||||
mono_image_get_name
|
||||
mono_image_get_public_key
|
||||
mono_image_get_resource
|
||||
mono_image_get_strong_name
|
||||
mono_image_get_table_info
|
||||
mono_image_get_table_rows
|
||||
mono_image_has_authenticode_entry
|
||||
mono_image_is_dynamic
|
||||
mono_image_loaded_by_guid
|
||||
mono_image_loaded
|
||||
mono_image_load_file_for_image
|
||||
mono_image_lookup_resource
|
||||
mono_image_open_from_data
|
||||
mono_image_open
|
||||
mono_image_rva_map
|
||||
mono_image_strerror
|
||||
mono_image_strong_name_position
|
||||
mono_image_get_public_key
|
||||
mono_image_get_strong_name
|
||||
mono_image_has_authenticode_entry
|
||||
mono_image_rva_map
|
||||
mono_image_ensure_section_idx
|
||||
mono_image_ensure_section
|
||||
mono_image_verify_tables
|
||||
mono_image_get_guid
|
||||
mono_image_open_from_data_full
|
||||
mono_image_open_full
|
||||
mono_image_basic_init
|
||||
mono_image_build_metadata
|
||||
mono_image_create_method_token
|
||||
mono_image_create_pefile
|
||||
mono_image_create_token
|
||||
mono_image_insert_string
|
||||
mono_image_load_module
|
||||
mono_burg_kids
|
||||
mono_burg_label
|
||||
mono_burg_rule
|
||||
@@ -320,6 +333,7 @@ mono_interp_get_runtime_method
|
||||
mono_interp_transform_init
|
||||
mono_interp_transform_method
|
||||
mono_pmip
|
||||
mono_print_code
|
||||
mono_print_method_from_ip
|
||||
mono_print_thread_dump
|
||||
mono_threads_request_thread_dump
|
||||
@@ -386,35 +400,38 @@ mono_marshal_realloc
|
||||
mono_marshal_set_last_error
|
||||
mono_marshal_string_to_utf16
|
||||
mono_marshal_type_size
|
||||
mono_metadata_guid_heap
|
||||
mono_metadata_string_heap
|
||||
mono_metadata_blob_heap
|
||||
mono_metadata_user_string
|
||||
mono_metadata_decode_blob_size
|
||||
mono_image_get_table_info
|
||||
mono_image_get_table_rows
|
||||
mono_metadata_get_table
|
||||
mono_loader_lock
|
||||
mono_loader_unlock
|
||||
mono_cli_rva_image_map
|
||||
mono_pe_file_open
|
||||
mono_meta_table_name
|
||||
mono_metadata_decode_row_col
|
||||
mono_metadata_decode_row
|
||||
mono_metadata_blob_heap
|
||||
mono_metadata_compute_size
|
||||
mono_metadata_custom_attrs_from_index
|
||||
mono_metadata_decode_blob_size
|
||||
mono_metadata_decode_row_col
|
||||
mono_metadata_decode_row
|
||||
mono_metadata_decode_signed_value
|
||||
mono_metadata_decode_value
|
||||
mono_metadata_encode_value
|
||||
mono_cli_rva_image_map
|
||||
mono_pe_file_open
|
||||
mono_metadata_events_from_typedef
|
||||
mono_metadata_field_info
|
||||
mono_metadata_free_array
|
||||
mono_metadata_free_marshal_spec
|
||||
mono_metadata_free_mh
|
||||
mono_metadata_free_type
|
||||
mono_metadata_generic_inst_equal
|
||||
mono_metadata_generic_inst_hash
|
||||
mono_metadata_generic_inst_is_valuetype
|
||||
mono_metadata_generic_method_equal
|
||||
mono_metadata_get_constant_index
|
||||
mono_metadata_get_marshal_info
|
||||
mono_metadata_get_table
|
||||
mono_metadata_guid_heap
|
||||
mono_metadata_implmap_from_method
|
||||
mono_metadata_interfaces_from_typedef_full
|
||||
mono_metadata_interfaces_from_typedef
|
||||
mono_metadata_load_generic_params
|
||||
mono_metadata_locate
|
||||
mono_metadata_locate_token
|
||||
mono_metadata_methods_from_event
|
||||
@@ -422,14 +439,8 @@ mono_metadata_methods_from_property
|
||||
mono_metadata_nested_in_typedef
|
||||
mono_metadata_nesting_typedef
|
||||
mono_metadata_packing_from_typedef
|
||||
mono_metadata_properties_from_typedef
|
||||
mono_metadata_token_from_dor
|
||||
mono_metadata_typedef_from_field
|
||||
mono_metadata_typedef_from_method
|
||||
mono_metadata_type_equal
|
||||
mono_metadata_type_hash
|
||||
mono_metadata_declsec_from_index
|
||||
mono_metadata_free_method_signature
|
||||
mono_metadata_parse_array_full
|
||||
mono_metadata_parse_array
|
||||
mono_metadata_parse_custom_mod
|
||||
mono_metadata_parse_field_type
|
||||
mono_metadata_parse_marshal_spec
|
||||
@@ -443,22 +454,34 @@ mono_metadata_parse_signature
|
||||
mono_metadata_parse_typedef_or_ref
|
||||
mono_metadata_parse_type_full
|
||||
mono_metadata_parse_type
|
||||
mono_loader_lock
|
||||
mono_loader_unlock
|
||||
mono_metadata_properties_from_typedef
|
||||
mono_metadata_string_heap
|
||||
mono_metadata_token_from_dor
|
||||
mono_metadata_typedef_from_field
|
||||
mono_metadata_typedef_from_method
|
||||
mono_metadata_type_equal
|
||||
mono_metadata_type_hash
|
||||
mono_metadata_user_string
|
||||
mono_metadata_declsec_from_index
|
||||
mono_metadata_free_method_signature
|
||||
mono_metadata_generic_class_is_valuetype
|
||||
mono_metadata_has_generic_params
|
||||
mono_metadata_inflate_generic_inst
|
||||
mono_metadata_parse_generic_inst
|
||||
mono_metadata_generic_inst_equal
|
||||
mono_metadata_generic_inst_hash
|
||||
mono_metadata_load_generic_params
|
||||
mono_metadata_generic_inst_is_valuetype
|
||||
mono_metadata_generic_method_equal
|
||||
mono_ldtoken
|
||||
mono_lookup_dynamic_token
|
||||
mono_ldstr
|
||||
mono_exception_from_token
|
||||
mono_create_jit_trampoline_from_token
|
||||
mono_signature_explicit_this
|
||||
mono_signature_get_call_conv
|
||||
mono_signature_get_desc
|
||||
mono_signature_get_param_count
|
||||
mono_signature_get_params
|
||||
mono_signature_get_return_type
|
||||
mono_signature_hash
|
||||
mono_signature_is_instance
|
||||
mono_signature_vararg_start
|
||||
mono_opcode_name
|
||||
mono_opcode_value
|
||||
mono_loader_set_error_field_load
|
||||
@@ -467,8 +490,8 @@ mono_loader_set_error_type_load
|
||||
mono_loader_get_last_error
|
||||
mono_loader_clear_error
|
||||
mono_loader_error_prepare_exception
|
||||
mono_runtime_invoke
|
||||
mono_runtime_invoke_array
|
||||
mono_runtime_invoke
|
||||
mono_remoting_invoke
|
||||
mono_runtime_delegate_invoke
|
||||
mono_method_call_message_new
|
||||
@@ -496,17 +519,8 @@ mono_method_get_wrapper_data
|
||||
mono_method_has_marshal_info
|
||||
mono_method_return_message_restore
|
||||
mono_method_same_domain
|
||||
mono_method_verify
|
||||
mono_method_signature
|
||||
mono_signature_explicit_this
|
||||
mono_signature_get_call_conv
|
||||
mono_signature_get_desc
|
||||
mono_signature_get_param_count
|
||||
mono_signature_get_params
|
||||
mono_signature_get_return_type
|
||||
mono_signature_hash
|
||||
mono_signature_is_instance
|
||||
mono_signature_vararg_start
|
||||
mono_method_verify
|
||||
mono_method_get_header
|
||||
mono_method_header_get_clauses
|
||||
mono_method_header_get_code
|
||||
@@ -531,23 +545,17 @@ mono_object_get_size
|
||||
mono_value_box
|
||||
mono_value_copy
|
||||
mono_value_copy_array
|
||||
mono_array_new
|
||||
mono_array_new_full
|
||||
mono_array_new_specific
|
||||
mono_array_class_get
|
||||
mono_array_clone_in_domain
|
||||
mono_array_clone
|
||||
mono_array_element_size
|
||||
mono_array_full_copy
|
||||
mono_array_new_full
|
||||
mono_array_new
|
||||
mono_array_new_specific
|
||||
mono_array_to_lparray
|
||||
mono_array_to_savearray
|
||||
mono_dup_array_type
|
||||
mono_array_set
|
||||
mono_array_setref
|
||||
mono_array_length
|
||||
mono_array_addr
|
||||
mono_array_addr_with_size
|
||||
mono_array_get
|
||||
mono_array_element_size
|
||||
mono_field_from_token
|
||||
mono_field_get_flags
|
||||
mono_field_get_name
|
||||
@@ -659,6 +667,11 @@ mono_string_new_len
|
||||
mono_string_new_size
|
||||
mono_string_new_utf16
|
||||
mono_string_from_utf16
|
||||
mono_string_intern
|
||||
mono_string_is_interned
|
||||
mono_string_new_wrapper
|
||||
mono_string_to_ansibstr
|
||||
mono_string_to_bstr
|
||||
mono_string_to_byvalstr
|
||||
mono_string_to_byvalwstr
|
||||
mono_string_to_utf16
|
||||
@@ -667,11 +680,6 @@ mono_string_utf16_to_builder
|
||||
mono_string_utf8_to_builder
|
||||
mono_string_equal
|
||||
mono_string_hash
|
||||
mono_string_intern
|
||||
mono_string_is_interned
|
||||
mono_string_new_wrapper
|
||||
mono_string_chars
|
||||
mono_string_length
|
||||
mono_string_builder_to_utf16
|
||||
mono_string_builder_to_utf8
|
||||
mono_unicode_from_external
|
||||
@@ -712,6 +720,9 @@ mono_threads_clear_cached_culture
|
||||
mono_thread_suspend_all_other_threads
|
||||
mono_thread_has_appdomain_ref
|
||||
mono_trace_cleanup
|
||||
mono_trace_enter_method
|
||||
mono_trace_eval
|
||||
mono_trace_leave_method
|
||||
mono_trace
|
||||
mono_trace_parse_options
|
||||
mono_trace_pop
|
||||
@@ -723,6 +734,8 @@ mono_trace_set_mask
|
||||
mono_trace_set_mask_string
|
||||
mono_tracev
|
||||
mono_trace_is_traced
|
||||
mono_trace_enable
|
||||
mono_trace_is_enabled
|
||||
mono_type_create_from_typespec_full
|
||||
mono_type_create_from_typespec
|
||||
mono_type_full_name
|
||||
@@ -877,12 +890,12 @@ mono_md5_get_digest_from_file
|
||||
mono_md5_get_digest
|
||||
mono_md5_final
|
||||
mono_digest_get_public_token
|
||||
mono_mempool_new
|
||||
mono_mempool_destroy
|
||||
mono_mempool_alloc
|
||||
mono_mempool_alloc0
|
||||
mono_mempool_alloc
|
||||
mono_mempool_destroy
|
||||
mono_mempool_empty
|
||||
mono_mempool_invalidate
|
||||
mono_mempool_new
|
||||
mono_mempool_stats
|
||||
mono_mempool_contains_addr
|
||||
mono_is_power_of_two
|
||||
@@ -895,129 +908,105 @@ mono_walk_stack
|
||||
mono_stack_walk_no_il
|
||||
mono_escape_uri_string
|
||||
mono_guid_to_string
|
||||
BindIoCompletionCallback
|
||||
GetThreadContext
|
||||
DeleteCriticalSection
|
||||
EnterCriticalSection
|
||||
InitializeCriticalSection
|
||||
InitializeCriticalSectionAndSpinCount
|
||||
LeaveCriticalSection
|
||||
SetCriticalSectionSpinCount
|
||||
TryEnterCriticalSection
|
||||
errno_to_WSA
|
||||
GetLastError
|
||||
SetLastError
|
||||
CreateEvent
|
||||
PulseEvent
|
||||
ResetEvent
|
||||
SetEvent
|
||||
CloseHandle
|
||||
closesocket
|
||||
CopyFile
|
||||
CreateDirectory
|
||||
CreateEvent
|
||||
CreateFile
|
||||
CreateMutex
|
||||
CreatePipe
|
||||
CreateProcess
|
||||
CreateProcessWithLogonW
|
||||
CreateSemaphore
|
||||
CreateThread
|
||||
DeleteCriticalSection
|
||||
DeleteFile
|
||||
DuplicateHandle
|
||||
EnterCriticalSection
|
||||
EnumProcesses
|
||||
EnumProcessModules
|
||||
errno_to_WSA
|
||||
ExitThread
|
||||
FileTimeToSystemTime
|
||||
FindClose
|
||||
FindFirstFile
|
||||
FindNextFile
|
||||
FlushFileBuffers
|
||||
FormatMessage
|
||||
GetCurrentDirectory
|
||||
GetCurrentProcess
|
||||
GetCurrentProcessId
|
||||
GetCurrentThread
|
||||
GetCurrentThreadId
|
||||
GetDiskFreeSpaceEx
|
||||
GetDriveType
|
||||
GetExitCodeProcess
|
||||
GetExitCodeThread
|
||||
GetFileAttributesEx
|
||||
GetFileAttributes
|
||||
GetFileAttributesEx
|
||||
GetFileSize
|
||||
GetFileTime
|
||||
GetFileType
|
||||
GetFileVersionInfo
|
||||
GetFileVersionInfoSize
|
||||
GetLastError
|
||||
GetLogicalDriveStrings
|
||||
GetModuleBaseName
|
||||
GetModuleFileNameEx
|
||||
GetModuleInformation
|
||||
GetPriorityClass
|
||||
GetProcessId
|
||||
GetProcessTimes
|
||||
GetProcessWorkingSetSize
|
||||
GetStdHandle
|
||||
GetSystemInfo
|
||||
GetTempPath
|
||||
GetThreadContext
|
||||
GetTickCount
|
||||
ImpersonateLoggedOnUser
|
||||
InitializeCriticalSectionAndSpinCount
|
||||
InitializeCriticalSection
|
||||
ioctlsocket
|
||||
LeaveCriticalSection
|
||||
LockFile
|
||||
MoveFile
|
||||
OpenEvent
|
||||
OpenMutex
|
||||
OpenProcess
|
||||
OpenSemaphore
|
||||
OpenThread
|
||||
PulseEvent
|
||||
QueryPerformanceCounter
|
||||
QueryPerformanceFrequency
|
||||
QueueUserAPC
|
||||
ReadFile
|
||||
ReleaseMutex
|
||||
ReleaseSemaphore
|
||||
RemoveDirectory
|
||||
ReplaceFile
|
||||
ResetEvent
|
||||
ResumeThread
|
||||
RevertToSelf
|
||||
SetCriticalSectionSpinCount
|
||||
SetCurrentDirectory
|
||||
SetEndOfFile
|
||||
SetEvent
|
||||
SetFileAttributes
|
||||
SetFilePointer
|
||||
SetFileTime
|
||||
SetLastError
|
||||
SetPriorityClass
|
||||
UnlockFile
|
||||
WriteFile
|
||||
mono_once
|
||||
CreateMutex
|
||||
ReleaseMutex
|
||||
CreateProcess
|
||||
EnumProcesses
|
||||
EnumProcessModules
|
||||
GetCurrentProcess
|
||||
GetCurrentProcessId
|
||||
GetExitCodeProcess
|
||||
GetModuleBaseName
|
||||
GetProcessTimes
|
||||
GetProcessWorkingSetSize
|
||||
OpenProcess
|
||||
SetProcessWorkingSetSize
|
||||
ShellExecuteEx
|
||||
SignalObjectAndWait
|
||||
SleepEx
|
||||
Sleep
|
||||
SuspendThread
|
||||
TerminateProcess
|
||||
ImpersonateLoggedOnUser
|
||||
RevertToSelf
|
||||
CreateSemaphore
|
||||
ReleaseSemaphore
|
||||
closesocket
|
||||
ioctlsocket
|
||||
WSACleanup
|
||||
WSAGetLastError
|
||||
WSAIoctl
|
||||
WSASetLastError
|
||||
WSAStartup
|
||||
GetSystemInfo
|
||||
BindIoCompletionCallback
|
||||
CreateThread
|
||||
ExitThread
|
||||
GetCurrentThread
|
||||
GetCurrentThreadId
|
||||
GetExitCodeThread
|
||||
OpenThread
|
||||
QueueUserAPC
|
||||
ResumeThread
|
||||
Sleep
|
||||
SleepEx
|
||||
SuspendThread
|
||||
TlsAlloc
|
||||
TlsFree
|
||||
TlsGetValue
|
||||
TlsSetValue
|
||||
TransmitFile
|
||||
TryEnterCriticalSection
|
||||
UnlockFile
|
||||
VerLanguageName
|
||||
VerQueryValue
|
||||
WaitForInputIdle
|
||||
WaitForMultipleObjectsEx
|
||||
GetTickCount
|
||||
QueryPerformanceCounter
|
||||
QueryPerformanceFrequency
|
||||
SignalObjectAndWait
|
||||
WaitForMultipleObjects
|
||||
WaitForSingleObjectEx
|
||||
WaitForMultipleObjectsEx
|
||||
WaitForSingleObject
|
||||
WriteFile
|
||||
WSACleanup
|
||||
WSAGetLastError
|
||||
WSAIoctl
|
||||
WSARecv
|
||||
WSASend
|
||||
WSASetLastError
|
||||
WSAStartup
|
||||
mono_once
|
||||
wapi_clear_interruption
|
||||
wapi_current_thread_desc
|
||||
wapi_interrupt_thread
|
||||
wapi_self_interrupt
|
||||
wapi_thread_clear_wait_handle
|
||||
wapi_thread_set_wait_handle
|
||||
WaitForSingleObjectEx
|
||||
OpenEvent
|
||||
OpenMutex
|
||||
GetProcessId
|
||||
ShellExecuteEx
|
||||
OpenSemaphore
|
||||
+2
-642
@@ -23,39 +23,9 @@ TestVectorList
|
||||
__bsd_dtoa
|
||||
bsd_strtod
|
||||
TestBlittableClass
|
||||
SByteIn
|
||||
ShortIn
|
||||
test_method_thunk
|
||||
UIntIn
|
||||
ULongIn
|
||||
UShortIn
|
||||
add_delegate
|
||||
ByteIn
|
||||
DoubleIn
|
||||
FloatIn
|
||||
get_ITest
|
||||
IntIn
|
||||
ITestIn
|
||||
ITestOut
|
||||
LongIn
|
||||
#
|
||||
# Produced by the tests
|
||||
#
|
||||
mono_invoke_delegate
|
||||
mono_invoke_simple_delegate
|
||||
mono_safe_handle_ref
|
||||
mono_safe_handle_return
|
||||
mono_safe_handle_struct
|
||||
mono_safe_handle_struct_ref
|
||||
mono_safe_handle_struct_simple
|
||||
mono_test_marshal_inout_byval_class_delegate
|
||||
mono_test_marshal_lpstruct
|
||||
mono_test_marshal_lpstruct_blittable
|
||||
mono_test_marshal_pass_inout_custom
|
||||
mono_test_marshal_pass_out_byval_custom
|
||||
mono_test_marshal_return_fnptr
|
||||
mono_xr
|
||||
mono_xr_as_handle
|
||||
mono_test_asany
|
||||
mono_test_byvalstr_check
|
||||
mono_test_byvalstr_gen
|
||||
@@ -141,108 +111,6 @@ mono_test_marshal_return_enum_delegate
|
||||
mono_test_return_vtype
|
||||
mono_test_split_double_arguments
|
||||
mono_test_stdcall_name_mangling
|
||||
mono_test_managed_marshal_bool_in
|
||||
mono_test_managed_marshal_bool_out
|
||||
mono_test_managed_marshal_bool_ref
|
||||
mono_test_managed_Winx64_struct1_in
|
||||
mono_test_managed_Winx64_struct1_struct5_in
|
||||
mono_test_managed_Winx64_struct5_in
|
||||
mono_test_marshal_asany_in
|
||||
mono_test_marshal_asany_out
|
||||
mono_test_marshal_bool_in
|
||||
mono_test_marshal_bool_in_as_I1_U1
|
||||
mono_test_marshal_bool_out
|
||||
mono_test_marshal_bool_out_as_I1_U1
|
||||
mono_test_marshal_bool_ref
|
||||
mono_test_marshal_bool_ref_as_I1_U1
|
||||
mono_test_marshal_bstr_in
|
||||
mono_test_marshal_bstr_in_null
|
||||
mono_test_marshal_bstr_out
|
||||
mono_test_marshal_bstr_out_null
|
||||
mono_test_marshal_byref_string_delegate
|
||||
mono_test_marshal_ccw_itest
|
||||
mono_test_marshal_com_object_create
|
||||
mono_test_marshal_com_object_destroy
|
||||
mono_test_marshal_com_object_ref_count
|
||||
mono_test_marshal_com_object_same
|
||||
mono_test_marshal_custom_out_param_delegate
|
||||
mono_test_marshal_date_time
|
||||
mono_test_marshal_long_struct
|
||||
mono_test_marshal_out_delegate
|
||||
mono_test_marshal_pass_return_float
|
||||
mono_test_marshal_return_unicode_string_delegate
|
||||
mono_test_marshal_variant_in_bool_false
|
||||
mono_test_marshal_variant_in_bool_false_unmanaged
|
||||
mono_test_marshal_variant_in_bool_true
|
||||
mono_test_marshal_variant_in_bool_true_unmanaged
|
||||
mono_test_marshal_variant_in_bstr
|
||||
mono_test_marshal_variant_in_bstr_unmanaged
|
||||
mono_test_marshal_variant_in_byte
|
||||
mono_test_marshal_variant_in_byte_unmanaged
|
||||
mono_test_marshal_variant_in_double
|
||||
mono_test_marshal_variant_in_double_unmanaged
|
||||
mono_test_marshal_variant_in_float
|
||||
mono_test_marshal_variant_in_float_unmanaged
|
||||
mono_test_marshal_variant_in_int
|
||||
mono_test_marshal_variant_in_int_unmanaged
|
||||
mono_test_marshal_variant_in_long
|
||||
mono_test_marshal_variant_in_long_unmanaged
|
||||
mono_test_marshal_variant_in_sbyte
|
||||
mono_test_marshal_variant_in_sbyte_unmanaged
|
||||
mono_test_marshal_variant_in_short
|
||||
mono_test_marshal_variant_in_short_unmanaged
|
||||
mono_test_marshal_variant_in_uint
|
||||
mono_test_marshal_variant_in_uint_unmanaged
|
||||
mono_test_marshal_variant_in_ulong
|
||||
mono_test_marshal_variant_in_ulong_unmanaged
|
||||
mono_test_marshal_variant_in_ushort
|
||||
mono_test_marshal_variant_in_ushort_unmanaged
|
||||
mono_test_marshal_variant_out_bool_false
|
||||
mono_test_marshal_variant_out_bool_false_unmanaged
|
||||
mono_test_marshal_variant_out_bool_true
|
||||
mono_test_marshal_variant_out_bool_true_unmanaged
|
||||
mono_test_marshal_variant_out_bstr
|
||||
mono_test_marshal_variant_out_bstr_unmanaged
|
||||
mono_test_marshal_variant_out_byte
|
||||
mono_test_marshal_variant_out_byte_unmanaged
|
||||
mono_test_marshal_variant_out_double
|
||||
mono_test_marshal_variant_out_double_unmanaged
|
||||
mono_test_marshal_variant_out_float
|
||||
mono_test_marshal_variant_out_float_unmanaged
|
||||
mono_test_marshal_variant_out_int
|
||||
mono_test_marshal_variant_out_int_unmanaged
|
||||
mono_test_marshal_variant_out_long
|
||||
mono_test_marshal_variant_out_long_unmanaged
|
||||
mono_test_marshal_variant_out_sbyte
|
||||
mono_test_marshal_variant_out_sbyte_unmanaged
|
||||
mono_test_marshal_variant_out_short
|
||||
mono_test_marshal_variant_out_short_unmanaged
|
||||
mono_test_marshal_variant_out_uint
|
||||
mono_test_marshal_variant_out_uint_unmanaged
|
||||
mono_test_marshal_variant_out_ulong
|
||||
mono_test_marshal_variant_out_ulong_unmanaged
|
||||
mono_test_marshal_variant_out_ushort
|
||||
mono_test_marshal_variant_out_ushort_unmanaged
|
||||
mono_test_Winx64_doubleStruct
|
||||
mono_test_Winx64_floatStruct
|
||||
mono_test_Winx64_struct1_in
|
||||
mono_test_Winx64_struct1_ret
|
||||
mono_test_Winx64_struct1_ret_5_args
|
||||
mono_test_Winx64_struct1_ret_managed
|
||||
mono_test_Winx64_struct2_in
|
||||
mono_test_Winx64_struct2_ret
|
||||
mono_test_Winx64_struct3_in
|
||||
mono_test_Winx64_struct3_ret
|
||||
mono_test_Winx64_struct4_in
|
||||
mono_test_Winx64_struct4_ret
|
||||
mono_test_Winx64_struct5_in
|
||||
mono_test_Winx64_struct5_ret
|
||||
mono_test_Winx64_struct5_ret6_args
|
||||
mono_test_Winx64_struct5_ret_managed
|
||||
mono_test_Winx64_struct6_in
|
||||
mono_test_Winx64_structs_in1
|
||||
mono_test_Winx64_structs_in2
|
||||
mono_test_Winx64_structs_in3
|
||||
mono_union_test_1
|
||||
NameManglingAnsi
|
||||
NameManglingAnsi2A
|
||||
@@ -275,7 +143,6 @@ mono_return_sc1
|
||||
mono_return_sc3
|
||||
mono_return_sc5
|
||||
mono_return_ss
|
||||
mono_profiler_startup
|
||||
#
|
||||
# The following are internal calls that are exposed because of cross
|
||||
# library dependencies but could be private
|
||||
@@ -316,6 +183,7 @@ mono_metadata_signature_deep_dup
|
||||
mono_metadata_get_param_attrs
|
||||
mono_metadata_load_generic_param_constraints
|
||||
mono_find_jit_opcode_emulation
|
||||
mono_marshal_get_ldflda_wrapper
|
||||
mono_debug_free_method_jit_info
|
||||
mono_jit_info_table_add
|
||||
mono_jit_info_table_remove
|
||||
@@ -536,16 +404,6 @@ mono_print_code
|
||||
mono_method_same_domain
|
||||
mono_register_opcode_emulation
|
||||
#
|
||||
# mono_shared_area: this is used by the performance counters, not sure that
|
||||
# this is worth documenting to the public
|
||||
#
|
||||
mono_shared_area
|
||||
mono_shared_area_for_pid
|
||||
mono_shared_area_instances
|
||||
mono_shared_area_remove
|
||||
mono_shared_area_unload
|
||||
#
|
||||
#
|
||||
# I believe these are internal, but I should check with the JIT guys
|
||||
#
|
||||
mono_assembly_open_full
|
||||
@@ -594,398 +452,8 @@ alu_reg_to_alu_membase_imm
|
||||
mono_secman_inheritancedemand_method
|
||||
mono_secman_inheritancedemand_class
|
||||
#
|
||||
# From the GC
|
||||
#
|
||||
GC_abort
|
||||
GC_acquire_mark_lock
|
||||
GC_add_ext_descriptor
|
||||
GC_add_leaked
|
||||
GC_add_map_entry
|
||||
GC_add_roots
|
||||
GC_add_roots_inner
|
||||
GC_add_smashed
|
||||
GC_add_to_black_list_normal
|
||||
GC_add_to_black_list_stack
|
||||
GC_add_to_fl
|
||||
GC_add_to_heap
|
||||
GC_adj_words_allocd
|
||||
GC_allochblk
|
||||
GC_allochblk_nth
|
||||
GC_alloc_large
|
||||
GC_alloc_large_and_clear
|
||||
GC_allocobj
|
||||
GC_alloc_reclaim_list
|
||||
GC_apply_to_all_blocks
|
||||
GC_apply_to_maps
|
||||
GC_approx_sp
|
||||
GC_array_mark_proc
|
||||
GC_base
|
||||
GC_bl_init
|
||||
GC_block_empty
|
||||
GC_block_nearly_full
|
||||
GC_block_nearly_full1
|
||||
GC_block_nearly_full3
|
||||
GC_block_was_dirty
|
||||
GC_build_fl
|
||||
GC_build_fl1
|
||||
GC_build_fl2
|
||||
GC_build_fl4
|
||||
GC_build_fl_clear2
|
||||
GC_build_fl_clear3
|
||||
GC_build_fl_clear4
|
||||
GC_calloc_explicitly_typed
|
||||
GC_call_with_alloc_lock
|
||||
GC_change_stubborn
|
||||
GC_check_annotated_obj
|
||||
GC_check_heap_block
|
||||
GC_check_heap_proc
|
||||
GC_clear_a_few_frames
|
||||
GC_clear_bl
|
||||
GC_clear_fl_links
|
||||
GC_clear_fl_marks
|
||||
GC_clear_hdr_marks
|
||||
GC_clear_mark_bit
|
||||
GC_clear_marks
|
||||
GC_clear_roots
|
||||
GC_clear_stack
|
||||
GC_clear_stack_inner
|
||||
GC_collect_a_little
|
||||
GC_collect_a_little_inner
|
||||
GC_collection_in_progress
|
||||
GC_collect_or_expand
|
||||
GC_cond_register_dynamic_libraries
|
||||
GC_continue_reclaim
|
||||
GC_copy_bl
|
||||
GC_debug_change_stubborn
|
||||
GC_debug_end_stubborn_change
|
||||
GC_debug_free
|
||||
GC_debug_free_inner
|
||||
GC_debug_gcj_fast_malloc
|
||||
GC_debug_gcj_malloc
|
||||
GC_debug_invoke_finalizer
|
||||
GC_debug_malloc
|
||||
GC_debug_malloc_atomic
|
||||
GC_debug_malloc_atomic_ignore_off_page
|
||||
GC_debug_malloc_atomic_uncollectable
|
||||
GC_debug_malloc_ignore_off_page
|
||||
GC_debug_malloc_replacement
|
||||
GC_debug_malloc_stubborn
|
||||
GC_debug_malloc_uncollectable
|
||||
GC_debug_print_heap_obj_proc
|
||||
GC_debug_realloc
|
||||
GC_debug_realloc_replacement
|
||||
GC_debug_register_displacement
|
||||
GC_debug_register_finalizer
|
||||
GC_debug_register_finalizer_ignore_self
|
||||
GC_debug_register_finalizer_no_order
|
||||
GC_default_is_valid_displacement_print_proc
|
||||
GC_default_is_visible_print_proc
|
||||
GC_default_oom_fn
|
||||
GC_default_print_heap_obj_proc
|
||||
GC_default_push_other_roots
|
||||
GC_default_same_obj_print_proc
|
||||
GC_default_warn_proc
|
||||
GC_delete_gc_thread
|
||||
GC_delete_thread
|
||||
GC_descr_obj_size
|
||||
GC_destroy_thread_local
|
||||
GC_dirty_init
|
||||
GC_disable
|
||||
GC_disable_signals
|
||||
GC_dlopen
|
||||
GC_do_local_mark
|
||||
GC_do_nothing
|
||||
GC_do_parallel_mark
|
||||
GC_double_descr
|
||||
GC_dump
|
||||
GC_dump_finalization
|
||||
GC_dump_regions
|
||||
GC_enable
|
||||
GC_enable_incremental
|
||||
GC_enable_signals
|
||||
GC_end_blocking
|
||||
GC_end_stubborn_change
|
||||
GC_enqueue_all_finalizers
|
||||
GC_err_printf
|
||||
GC_err_puts
|
||||
GC_err_write
|
||||
GC_exclude_static_roots
|
||||
GC_exit_check
|
||||
GC_expand_hp
|
||||
GC_expand_hp_inner
|
||||
GC_extend_size_map
|
||||
GC_fault_handler
|
||||
GC_finalize
|
||||
GC_finalize_all
|
||||
GC_find_header
|
||||
GC_find_limit
|
||||
GC_find_start
|
||||
GC_finish_collection
|
||||
GC_free
|
||||
GC_free_block_ending_at
|
||||
GC_freehblk
|
||||
GC_free_inner
|
||||
GC_gcj_fast_malloc
|
||||
GC_gcj_malloc
|
||||
GC_gcj_malloc_ignore_off_page
|
||||
GC_gcollect
|
||||
GC_general_register_disappearing_link
|
||||
GC_generic_lock
|
||||
GC_generic_malloc
|
||||
GC_generic_malloc_ignore_off_page
|
||||
GC_generic_malloc_inner
|
||||
GC_generic_malloc_inner_ignore_off_page
|
||||
GC_generic_malloc_many
|
||||
GC_generic_malloc_words_small
|
||||
GC_generic_malloc_words_small_inner
|
||||
GC_generic_or_special_malloc
|
||||
GC_generic_push_regs
|
||||
GC_get_bytes_since_gc
|
||||
GC_get_first_part
|
||||
GC_get_free_bytes
|
||||
GC_get_heap_size
|
||||
GC_get_nprocs
|
||||
GC_get_stack_base
|
||||
GC_get_suspend_signal
|
||||
GC_get_total_bytes
|
||||
GC_grow_table
|
||||
GC_has_other_debug_info
|
||||
GC_hblk_fl_from_blocks
|
||||
GC_help_marker
|
||||
GC_ignore_self_finalize_mark_proc
|
||||
GC_incremental_protection_needs
|
||||
GC_incr_mem_freed
|
||||
GC_incr_words_allocd
|
||||
GC_init
|
||||
GC_init_explicit_typing
|
||||
GC_init_gcj_malloc
|
||||
GC_init_headers
|
||||
GC_initiate_gc
|
||||
GC_init_inner
|
||||
GC_init_linux_data_start
|
||||
GC_init_parallel
|
||||
GC_init_size_map
|
||||
GC_init_thread_local
|
||||
GC_install_counts
|
||||
GC_install_header
|
||||
GC_invalidate_map
|
||||
GC_invalidate_mark_state
|
||||
GC_invoke_finalizers
|
||||
GC_is_black_listed
|
||||
GC_is_fresh
|
||||
GC_is_marked
|
||||
GC_is_static_root
|
||||
GC_is_valid_displacement
|
||||
GC_is_visible
|
||||
GC_key_create
|
||||
GC_linux_stack_base
|
||||
GC_local_gcj_fast_malloc
|
||||
GC_local_gcj_malloc
|
||||
GC_local_malloc
|
||||
GC_local_malloc_atomic
|
||||
GC_lock
|
||||
GC_lookup_thread
|
||||
GC_make_array_descriptor
|
||||
GC_make_closure
|
||||
GC_make_descriptor
|
||||
GC_make_sequence_descriptor
|
||||
GC_malloc
|
||||
GC_malloc_atomic
|
||||
GC_malloc_atomic_ignore_off_page
|
||||
GC_malloc_atomic_uncollectable
|
||||
GC_malloc_explicitly_typed
|
||||
GC_malloc_explicitly_typed_ignore_off_page
|
||||
GC_malloc_ignore_off_page
|
||||
GC_malloc_many
|
||||
GC_malloc_stubborn
|
||||
GC_malloc_uncollectable
|
||||
GC_mark_and_push
|
||||
GC_mark_and_push_stack
|
||||
GC_mark_from
|
||||
GC_mark_init
|
||||
GC_mark_local
|
||||
GC_mark_some
|
||||
GC_mark_stack_empty
|
||||
GC_mark_thread
|
||||
GC_mark_thread_local_free_lists
|
||||
GC_max
|
||||
GC_maybe_gc
|
||||
GC_memalign
|
||||
GC_merge_unmapped
|
||||
GC_min
|
||||
GC_mono_debugger_get_stack_ptr
|
||||
GC_never_stop_func
|
||||
GC_new_free_list
|
||||
GC_new_free_list_inner
|
||||
GC_new_hblk
|
||||
GC_new_kind
|
||||
GC_new_kind_inner
|
||||
GC_new_proc
|
||||
GC_new_proc_inner
|
||||
GC_new_thread
|
||||
GC_next_exclusion
|
||||
GC_next_used_block
|
||||
GC_noop
|
||||
GC_noop1
|
||||
GC_normal_finalize_mark_proc
|
||||
GC_notify_all_builder
|
||||
GC_notify_all_marker
|
||||
GC_notify_full_gc
|
||||
GC_notify_or_invoke_finalizers
|
||||
GC_n_set_marks
|
||||
GC_null_finalize_mark_proc
|
||||
GC_number_stack_black_listed
|
||||
GC_on_stack
|
||||
GC_page_was_dirty
|
||||
GC_page_was_ever_dirty
|
||||
GC_pause
|
||||
GC_post_incr
|
||||
GC_pre_incr
|
||||
GC_prev_block
|
||||
GC_print_address_map
|
||||
GC_print_all_errors
|
||||
GC_print_all_smashed_proc
|
||||
GC_print_block_descr
|
||||
GC_print_block_list
|
||||
GC_printf
|
||||
GC_print_finalization_stats
|
||||
GC_print_hblkfreelist
|
||||
GC_print_heap_sects
|
||||
GC_print_obj
|
||||
GC_print_smashed_obj
|
||||
GC_print_source_ptr
|
||||
GC_print_static_roots
|
||||
GC_print_type
|
||||
GC_project2
|
||||
GC_promote_black_lists
|
||||
GC_pthread_create
|
||||
GC_pthread_detach
|
||||
GC_pthread_join
|
||||
GC_pthread_sigmask
|
||||
GC_push_all
|
||||
GC_push_all_eager
|
||||
GC_push_all_stack
|
||||
GC_push_all_stacks
|
||||
GC_push_complex_descriptor
|
||||
GC_push_conditional
|
||||
GC_push_conditional_with_exclusions
|
||||
GC_push_current_stack
|
||||
GC_push_finalizer_structures
|
||||
GC_push_gc_structures
|
||||
GC_push_marked
|
||||
GC_push_marked1
|
||||
GC_push_marked2
|
||||
GC_push_marked4
|
||||
GC_push_next_marked
|
||||
GC_push_next_marked_dirty
|
||||
GC_push_next_marked_uncollectable
|
||||
GC_push_one
|
||||
GC_push_roots
|
||||
GC_push_selected
|
||||
GC_push_stubborn_structures
|
||||
GC_push_thread_structures
|
||||
GC_read_dirty
|
||||
GC_realloc
|
||||
GC_reclaim1
|
||||
GC_reclaim_all
|
||||
GC_reclaim_block
|
||||
GC_reclaim_check
|
||||
GC_reclaim_clear
|
||||
GC_reclaim_clear2
|
||||
GC_reclaim_clear4
|
||||
GC_reclaim_generic
|
||||
GC_reclaim_small_nonempty_block
|
||||
GC_reclaim_uninit
|
||||
GC_reclaim_uninit2
|
||||
GC_reclaim_uninit4
|
||||
GC_register_data_segments
|
||||
GC_register_describe_type_fn
|
||||
GC_register_disappearing_link
|
||||
GC_register_displacement
|
||||
GC_register_displacement_inner
|
||||
GC_register_dynamic_libraries
|
||||
GC_register_dynamic_libraries_dl_iterate_phdr
|
||||
GC_register_finalizer
|
||||
GC_register_finalizer_ignore_self
|
||||
GC_register_finalizer_inner
|
||||
GC_register_finalizer_no_order
|
||||
GC_register_main_static_data
|
||||
GC_release_mark_lock
|
||||
GC_remap
|
||||
GC_remove_allowed_signals
|
||||
GC_remove_counts
|
||||
GC_remove_from_fl
|
||||
GC_remove_header
|
||||
GC_remove_protection
|
||||
GC_remove_roots
|
||||
GC_remove_roots_inner
|
||||
GC_remove_specific
|
||||
GC_remove_tmp_roots
|
||||
GC_repeat_read
|
||||
GC_reset_fault_handler
|
||||
GC_restart_handler
|
||||
GC_return_mark_stack
|
||||
GC_roots_present
|
||||
GC_same_obj
|
||||
GC_scratch_alloc
|
||||
GC_set_and_save_fault_handler
|
||||
GC_set_fl_marks
|
||||
GC_set_free_space_divisor
|
||||
GC_set_hdr_marks
|
||||
GC_set_mark_bit
|
||||
GC_set_max_heap_size
|
||||
GC_setpagesize
|
||||
GC_setspecific
|
||||
GC_setup_temporary_fault_handler
|
||||
GC_set_warn_proc
|
||||
GC_should_collect
|
||||
GC_should_invoke_finalizers
|
||||
GC_signal_mark_stack_overflow
|
||||
GC_size
|
||||
GC_sleep
|
||||
GC_slow_getspecific
|
||||
GC_split_block
|
||||
GC_start_blocking
|
||||
GC_start_debugging
|
||||
GC_start_reclaim
|
||||
GC_start_routine
|
||||
GC_start_routine_head
|
||||
GC_start_world
|
||||
GC_steal_mark_stack
|
||||
GC_stop_init
|
||||
GC_stopped_mark
|
||||
GC_stop_world
|
||||
GC_store_debug_info
|
||||
GC_suspend_all
|
||||
GC_suspend_handler
|
||||
GC_thread_deregister_foreign
|
||||
GC_thread_exit_proc
|
||||
GC_thread_is_registered
|
||||
GC_thread_register_foreign
|
||||
GC_thr_init
|
||||
GC_timeout_stop_func
|
||||
GC_true_func
|
||||
GC_try_to_collect
|
||||
GC_try_to_collect_inner
|
||||
GC_typed_mark_proc
|
||||
GC_unix_get_mem
|
||||
GC_unmap
|
||||
GC_unmap_end
|
||||
GC_unmap_gap
|
||||
GC_unmap_old
|
||||
GC_unmap_start
|
||||
GC_unpromote_black_lists
|
||||
GC_unregister_disappearing_link
|
||||
GC_wait_builder
|
||||
GC_wait_for_gc_completion
|
||||
GC_wait_for_reclaim
|
||||
GC_wait_marker
|
||||
GC_with_callee_saves_pushed
|
||||
GC_write
|
||||
#
|
||||
# Produced by matching against the MONO_INTERNAL macro
|
||||
#
|
||||
type_to_eval_stack_type
|
||||
mono_regstate_free
|
||||
mono_regstate_free_float
|
||||
mono_regstate_free_int
|
||||
@@ -1006,112 +474,4 @@ mono_trace_enable
|
||||
mono_trace_is_enabled
|
||||
mono_trace_eval
|
||||
mono_trace_leave_method
|
||||
mono_trace_enter_method
|
||||
img_writer_create
|
||||
img_writer_destroy
|
||||
img_writer_emit_alignment
|
||||
img_writer_emit_byte
|
||||
img_writer_emit_bytes
|
||||
img_writer_emit_global
|
||||
img_writer_emit_int16
|
||||
img_writer_emit_int32
|
||||
img_writer_emit_label
|
||||
img_writer_emit_line
|
||||
img_writer_emit_local_symbol
|
||||
img_writer_emit_pointer
|
||||
img_writer_emit_pointer_unaligned
|
||||
img_writer_emit_pop_section
|
||||
img_writer_emit_push_section
|
||||
img_writer_emit_reloc
|
||||
img_writer_emit_section_change
|
||||
img_writer_emit_start
|
||||
img_writer_emit_string
|
||||
img_writer_emit_symbol_diff
|
||||
img_writer_emit_symbol_size
|
||||
img_writer_emit_unset_mode
|
||||
img_writer_emit_writeout
|
||||
img_writer_emit_zero_bytes
|
||||
img_writer_get_fp
|
||||
img_writer_get_output
|
||||
img_writer_get_temp_label_prefix
|
||||
img_writer_set_section_addr
|
||||
img_writer_subsections_supported
|
||||
mono_verifier_set_mode
|
||||
mono_verifier_enable_verify_all
|
||||
mono_verifier_is_enabled_for_image
|
||||
mono_verifier_is_enabled_for_method
|
||||
mono_verifier_is_enabled_for_class
|
||||
mono_verifier_is_method_full_trust
|
||||
mono_verifier_is_class_full_trust
|
||||
mono_verifier_verify_class
|
||||
mono_verifier_verify_pe_data
|
||||
mono_verifier_verify_cli_data
|
||||
mono_verifier_verify_table_data
|
||||
mono_verifier_verify_full_table_data
|
||||
mono_verifier_verify_field_signature
|
||||
mono_verifier_verify_method_header
|
||||
mono_verifier_verify_method_signature
|
||||
mono_verifier_verify_memberref_signature
|
||||
mono_verifier_verify_standalone_signature
|
||||
mono_verifier_verify_typespec_signature
|
||||
mono_verifier_verify_methodspec_signature
|
||||
mono_unwind_cleanup
|
||||
mono_unwind_frame
|
||||
mono_unwind_get_dwarf_data_align
|
||||
mono_unwind_get_dwarf_pc_reg
|
||||
mono_unwind_get_ops_from_fde
|
||||
mono_unwind_init
|
||||
mono_unwind_ops_encode
|
||||
mono_marshal_get_ldflda_wrapper
|
||||
mono_marshal_cleanup
|
||||
mono_marshal_load_type_info
|
||||
mono_marshal_set_last_error
|
||||
mono_marshal_asany
|
||||
mono_marshal_free_asany
|
||||
mono_marshal_method_from_wrapper
|
||||
mono_marshal_get_remoting_invoke
|
||||
mono_marshal_get_xappdomain_invoke
|
||||
mono_marshal_get_remoting_invoke_for_target
|
||||
mono_marshal_get_remoting_invoke_with_check
|
||||
mono_marshal_get_delegate_begin_invoke
|
||||
mono_marshal_get_delegate_end_invoke
|
||||
mono_marshal_get_delegate_invoke
|
||||
mono_marshal_get_runtime_invoke
|
||||
mono_marshal_get_runtime_invoke_dynamic
|
||||
mono_marshal_get_string_ctor_signature
|
||||
mono_marshal_get_managed_wrapper
|
||||
mono_marshal_get_vtfixup_ftnptr
|
||||
mono_marshal_get_icall_wrapper
|
||||
mono_marshal_get_native_wrapper
|
||||
mono_marshal_get_native_func_wrapper
|
||||
mono_marshal_get_struct_to_ptr
|
||||
mono_marshal_get_ptr_to_struct
|
||||
mono_marshal_get_stfld_wrapper
|
||||
mono_marshal_get_ldfld_wrapper
|
||||
mono_marshal_get_ldfld_remote_wrapper
|
||||
mono_marshal_get_stfld_remote_wrapper
|
||||
mono_marshal_get_synchronized_wrapper
|
||||
mono_marshal_get_unbox_wrapper
|
||||
mono_marshal_get_isinst
|
||||
mono_marshal_get_castclass
|
||||
mono_marshal_get_proxy_cancast
|
||||
mono_marshal_get_stelemref
|
||||
mono_marshal_get_array_address
|
||||
mono_marshal_get_thunk_invoke_wrapper
|
||||
mono_marshal_free_dynamic_wrappers
|
||||
mono_marshal_free_inflated_wrappers
|
||||
mono_marshal_alloc
|
||||
mono_marshal_free
|
||||
mono_marshal_free_array
|
||||
mono_marshal_free_ccw
|
||||
mono_marshal_xdomain_copy_value
|
||||
mono_marshal_find_nonzero_bit_offset
|
||||
mono_marshal_emit_native_wrapper
|
||||
mono_marshal_emit_managed_wrapper
|
||||
mono_marshal_get_cache
|
||||
mono_marshal_find_in_cache
|
||||
mono_marshal_emit_thread_interrupt_checkpoint
|
||||
cominterop_release_all_rcws
|
||||
console_restore_signal_handlers
|
||||
console_set_signal_handlers
|
||||
__jit_debug_register_code
|
||||
mono_trace_enter_method
|
||||
+3
-3
@@ -24,7 +24,7 @@ A small note on the choice of magic_reg for different JIT backends: the IMT
|
||||
method identifier doesn't necessarily need to be stored in a register, though
|
||||
doing so is fast and the JIT code has already the infrastructure to handle this
|
||||
case in an arch-independent way. A JIT porter just needs to #define
|
||||
MONO_ARCH_IMT_REG to the chosen register. Note that this register should be
|
||||
MONO_ARCH_IMT_REG to the choosen register. Note that this register should be
|
||||
part of the MONO_ARCH_CALLEE_REGS set as it will be handled by the local register
|
||||
allocator (see mini/inssel.brg) and it must not be part of the registers used for
|
||||
argument passing as you'd overwrite an argument in that case.
|
||||
@@ -72,7 +72,7 @@ the IMT slot was asked to execute an interface method that the type doesn't impl
|
||||
In the future we might want to handle this case not with a breakpoint or assert, but
|
||||
by either throwing an InvalidCast exception or by going into the runtime and
|
||||
adding support for the interface automagically to the type/vtable: this could be used
|
||||
both for transparent proxies and for the implicit interfaces that vectors in 2.0
|
||||
both for tranparent proxies and for the implicit interfaces that vectors in 2.0
|
||||
provide.
|
||||
|
||||
For a bisect check the code is even simpler:
|
||||
@@ -131,7 +131,7 @@ called the magic trampoline will fill-in the IMT slot with the proper thunk or
|
||||
trampoline, so later calls will use the fast path.
|
||||
This single-instance trampoline will use MONO_FAKE_IMT_METHOD as the method
|
||||
it's asking to be compiled and executed: the trampoline code does recognize
|
||||
this special value and retrieves the interface method to call from the usual
|
||||
this special value and retrives the interface method to call from the usual
|
||||
MONO_ARCH_IMT_REG saved by the trampoline code.
|
||||
Given that only the IMT slots that are actually used will be initialized, this saves
|
||||
quite a bit of memory, as it's unlikely that all the interface methods are called on
|
||||
|
||||
+6
-32
@@ -4,15 +4,7 @@
|
||||
Miguel de Icaza (miguel@{ximian.com,gnome.org}),
|
||||
Paolo Molaro (lupus@{ximian.com,debian.org})
|
||||
|
||||
This documents overall design of the Mono JIT up to version
|
||||
2.0. After Mono 2.0 the JIT engine was upgraded from
|
||||
a tree-based intermediate representation to a linear
|
||||
intermediate representation.
|
||||
|
||||
The Linear IL is documented here:
|
||||
|
||||
http://www.mono-project.com/Linear_IL
|
||||
|
||||
|
||||
* Abstract
|
||||
|
||||
Mini is a new compilation engine for the Mono runtime. The
|
||||
@@ -78,24 +70,6 @@
|
||||
CIL code on the fly to marshal parameters, and then this
|
||||
code is in turned processed by the JIT engine.
|
||||
|
||||
Mono has now gone through three different JIT engines, these
|
||||
are:
|
||||
|
||||
* Original JIT engine: 2002, hard to port, hard to
|
||||
implement optimizations.
|
||||
|
||||
* Second JIT engine, used up until Mono 2.0, very
|
||||
portable, many new optimizations.
|
||||
|
||||
* Third JIT engine, replaced the code generation layer from
|
||||
being based on a tree representation to be based on a linear
|
||||
representation.
|
||||
|
||||
For more information on the code generation changes, see our
|
||||
web site for the details on the Linear IL:
|
||||
|
||||
http://www.mono-project.com/Linear_IL
|
||||
|
||||
* Previous Experiences
|
||||
|
||||
Mono has built a JIT engine, which has been used to bootstrap
|
||||
@@ -188,7 +162,7 @@
|
||||
application domains, or generate code that will not be shared
|
||||
across application domains.
|
||||
|
||||
* Second Generation JIT engine.
|
||||
* Objectives of the new JIT engine.
|
||||
|
||||
We wanted to support a number of features that were missing:
|
||||
|
||||
@@ -232,7 +206,7 @@
|
||||
necessary that the JIT engine works in most of today's
|
||||
commercial hardware platforms.
|
||||
|
||||
* Features of the Second JIT engine.
|
||||
* Features of the new JIT engine.
|
||||
|
||||
The new JIT engine was architected by Dietmar Maurer and Paolo
|
||||
Molaro, based on the new objectives.
|
||||
@@ -408,7 +382,7 @@
|
||||
temporary variables generated during the various
|
||||
optimizations.
|
||||
|
||||
** Instruction selection: Only used up until Mono 2.0
|
||||
** Instruction selection
|
||||
|
||||
At this point, the BURS instruction selector is invoked to
|
||||
transform the tree-based representation into a list of
|
||||
@@ -635,7 +609,7 @@
|
||||
registers, fixed registers and clobbered registers by each
|
||||
operation.
|
||||
|
||||
* BURG Code Generator Generator: Only used up to Mono 2.0
|
||||
* BURG Code Generator Generator
|
||||
|
||||
monoburg was written by Dietmar Maurer. It is based on the
|
||||
papers from Christopher W. Fraser, Robert R. Henry and Todd
|
||||
@@ -794,4 +768,4 @@
|
||||
processors, and some of the framework exists today in our
|
||||
register allocator and the instruction selector to cope with
|
||||
this, but has not been finished. The instruction selection
|
||||
would happen at the same time as local register allocation. <
|
||||
would happen at the same time as local register allocation. <
|
||||
@@ -34,8 +34,10 @@
|
||||
<manpage name="monodocs2html(1)" page="../man/monodocs2html.1" />
|
||||
<manpage name="monolinker(1)" page="../man/monolinker.1" />
|
||||
<manpage name="monop(1)" page="../man/monop.1" />
|
||||
<manpage name="monostyle(1)" page="../man/monostyle.1" />
|
||||
<manpage name="mono-xmltool(1)" page="../man/mono-xmltool.1" />
|
||||
<manpage name="mozroots(1)" page="../man/mozroots.1" />
|
||||
<manpage name="oldmono(1)" page="../man/oldmono.1" />
|
||||
<manpage name="permview(1)" page="../man/permview.1" />
|
||||
<manpage name="prj2make(1)" page="../man/prj2make.1" />
|
||||
<manpage name="resgen(1)" page="../man/resgen.1" />
|
||||
|
||||
+3
-11
@@ -13,12 +13,7 @@ add_h4()
|
||||
|
||||
ignore_known()
|
||||
{
|
||||
fgrep -v -f $dir/ignore
|
||||
}
|
||||
|
||||
ignore_hidden ()
|
||||
{
|
||||
fgrep -w -v -f $dir/hidden_methods
|
||||
egrep -v -f $dir/ignore
|
||||
}
|
||||
|
||||
clean_nm ()
|
||||
@@ -37,8 +32,5 @@ if grep ^$ ignore >/dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# generate the internals file
|
||||
objdump -t ../mono/mini/.libs/libmono-2.0.a | grep "\.hidden" | sed 's/.*\.hidden //' > hidden_methods
|
||||
|
||||
nm $dir/../mono/io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known | sort > $dir/wapi
|
||||
nm $dir/../mono/mini/.libs/libmono-2.0.a | clean_nm | ignore_known | ignore_hidden | ignore_wapi | grep -v ^ves_icall | egrep -v '^(mono_arch_|monoeg)' | sort > $dir/public-api
|
||||
nm $dir/../io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known > $dir/wapi
|
||||
nm $dir/../*/.libs/*.o | clean_nm | ignore_known | ignore_wapi | grep -v ^ves_icall | grep -v ^mono_arch_ > $dir/public-api
|
||||
+855
-754
File diff suppressed because it is too large.
Load diff
@@ -8,6 +8,18 @@
|
||||
typedef struct _MonoImage MonoImage;
|
||||
typedef struct _MonoAssembly MonoAssembly;
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const char *culture;
|
||||
const char *hash_value;
|
||||
const guint8* public_key;
|
||||
guchar public_key_token [MONO_PUBLIC_KEY_TOKEN_LENGTH];
|
||||
guint32 hash_alg;
|
||||
guint32 hash_len;
|
||||
guint32 flags;
|
||||
guint16 major, minor, build, revision;
|
||||
} MonoAssemblyName;
|
||||
|
||||
@API_IDX@
|
||||
|
||||
</div>
|
||||
@@ -20,13 +32,13 @@ typedef struct _MonoAssembly MonoAssembly;
|
||||
<h4><a name="api:mono_assembly_load">mono_assembly_load</a></h4>
|
||||
<h4><a name="api:mono_assembly_load_full">mono_assembly_load_full</a></h4>
|
||||
<h4><a name="api:mono_assembly_loaded">mono_assembly_loaded</a></h4>
|
||||
<h4><a name="api:mono_assembly_get_object">mono_assembly_get_object</a></h4>
|
||||
|
||||
<h3>Working with Assemblies</h3>
|
||||
|
||||
<h4><a name="api:mono_assembly_get_image">mono_assembly_get_image</a></h4>
|
||||
<h4><a name="api:mono_assembly_get_main">mono_assembly_get_main</a></h4>
|
||||
<h4><a name="api:mono_assembly_getrootdir">mono_assembly_getrootdir</a></h4>
|
||||
<h4><a name="api:mono_assembly_addref">mono_assembly_addref</a></h4>
|
||||
|
||||
<h3>Assembly Names</h3>
|
||||
|
||||
@@ -38,14 +50,7 @@ typedef struct _MonoAssembly MonoAssembly;
|
||||
href="http://www.mono-project.com/monodoc/T:System.Reflection.AssemblyName">System.Reflection.AssemblyName</a>
|
||||
managed type.
|
||||
|
||||
<h4><a name="api:mono_assembly_name_parse">mono_assembly_name_parse</a></h4>
|
||||
<h4><a name="api:mono_assembly_name_free">mono_assembly_name_free</a></h4>
|
||||
<h4><a name="api:mono_stringify_assembly_name">mono_stringify_assembly_name</a></h4>
|
||||
<h4><a name="api:mono_assembly_names_equal">mono_assembly_names_equal</a></h4>
|
||||
|
||||
<h3>Modules</h3>
|
||||
|
||||
<p>An assembly is made up of one or more modules.
|
||||
|
||||
<h4><a name="api:mono_module_file_get_object">mono_module_file_get_object</a></h4>
|
||||
<h4><a name="api:mono_module_get_object">mono_module_get_object</a></h4>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<h2>Class Operations</h2>
|
||||
|
||||
<h4><a name="api:mono_class_array_element_size">mono_class_array_element_size</a></h4>
|
||||
<h4><a name="api:mono_class_create_generic_2">mono_class_create_generic_2</a></h4>
|
||||
<h4><a name="api:mono_class_create_generic">mono_class_create_generic</a></h4>
|
||||
<h4><a name="api:mono_class_data_size">mono_class_data_size</a></h4>
|
||||
<h4><a name="api:mono_class_enum_basetype">mono_class_enum_basetype</a></h4>
|
||||
<h4><a name="api:mono_class_from_generic_parameter">mono_class_from_generic_parameter</a></h4>
|
||||
@@ -8,6 +10,7 @@
|
||||
<h4><a name="api:mono_class_from_name_case">mono_class_from_name_case</a></h4>
|
||||
<h4><a name="api:mono_class_from_name">mono_class_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_from_typeref">mono_class_from_typeref</a></h4>
|
||||
<h4><a name="api:mono_class_get_allocation_ftn">mono_class_get_allocation_ftn</a></h4>
|
||||
<h4><a name="api:mono_class_get_byref_type">mono_class_get_byref_type</a></h4>
|
||||
<h4><a name="api:mono_class_get_element_class">mono_class_get_element_class</a></h4>
|
||||
<h4><a name="api:mono_class_get_events">mono_class_get_events</a></h4>
|
||||
@@ -19,6 +22,7 @@
|
||||
<h4><a name="api:mono_class_get_flags">mono_class_get_flags</a></h4>
|
||||
<h4><a name="api:mono_class_get_full">mono_class_get_full</a></h4>
|
||||
<h4><a name="api:mono_class_get_image">mono_class_get_image</a></h4>
|
||||
<h4><a name="api:mono_class_get_implemented_interfaces">mono_class_get_implemented_interfaces</a></h4>
|
||||
<h4><a name="api:mono_class_get_interfaces">mono_class_get_interfaces</a></h4>
|
||||
<h4><a name="api:mono_class_get_method_from_name">mono_class_get_method_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_get_methods">mono_class_get_methods</a></h4>
|
||||
@@ -27,6 +31,7 @@
|
||||
<h4><a name="api:mono_class_get_namespace">mono_class_get_namespace</a></h4>
|
||||
<h4><a name="api:mono_class_get_nested_types">mono_class_get_nested_types</a></h4>
|
||||
<h4><a name="api:mono_class_get_nesting_type">mono_class_get_nesting_type</a></h4>
|
||||
<h4><a name="api:mono_class_get_overrides">mono_class_get_overrides</a></h4>
|
||||
<h4><a name="api:mono_class_get_parent">mono_class_get_parent</a></h4>
|
||||
<h4><a name="api:mono_class_get_properties">mono_class_get_properties</a></h4>
|
||||
<h4><a name="api:mono_class_get_property_from_name">mono_class_get_property_from_name</a></h4>
|
||||
@@ -39,14 +44,29 @@
|
||||
<h4><a name="api:mono_class_instance_size">mono_class_instance_size</a></h4>
|
||||
<h4><a name="api:mono_class_is_assignable_from">mono_class_is_assignable_from</a></h4>
|
||||
<h4><a name="api:mono_class_is_enum">mono_class_is_enum</a></h4>
|
||||
<h4><a name="api:mono_class_is_open_constructed_type">mono_class_is_open_constructed_type</a></h4>
|
||||
<h4><a name="api:mono_class_is_subclass_of">mono_class_is_subclass_of</a></h4>
|
||||
<h4><a name="api:mono_class_is_valuetype">mono_class_is_valuetype</a></h4>
|
||||
<h4><a name="api:mono_class_layout_fields">mono_class_layout_fields</a></h4>
|
||||
<h4><a name="api:mono_class_min_align">mono_class_min_align</a></h4>
|
||||
<h4><a name="api:mono_class_native_size">mono_class_native_size</a></h4>
|
||||
<h4><a name="api:mono_class_needs_cctor_run">mono_class_needs_cctor_run</a></h4>
|
||||
<h4><a name="api:mono_class_num_events">mono_class_num_events</a></h4>
|
||||
<h4><a name="api:mono_class_num_fields">mono_class_num_fields</a></h4>
|
||||
<h4><a name="api:mono_class_num_methods">mono_class_num_methods</a></h4>
|
||||
<h4><a name="api:mono_class_num_properties">mono_class_num_properties</a></h4>
|
||||
<h4><a name="api:mono_class_setup_mono_type">mono_class_setup_mono_type</a></h4>
|
||||
<h4><a name="api:mono_class_setup_parent">mono_class_setup_parent</a></h4>
|
||||
<h4><a name="api:mono_class_setup_supertypes">mono_class_setup_supertypes</a></h4>
|
||||
<h4><a name="api:mono_class_setup_vtable">mono_class_setup_vtable</a></h4>
|
||||
<h4><a name="api:mono_class_value_size">mono_class_value_size</a></h4>
|
||||
<h4><a name="api:mono_class_vtable">mono_class_vtable</a></h4>
|
||||
<h4><a name="api:mono_class_get_cctor">mono_class_get_cctor</a></h4>
|
||||
<h4><a name="api:mono_class_get_finalizer">mono_class_get_finalizer</a></h4>
|
||||
<h4><a name="api:mono_class_get_method_from_name_flags">mono_class_get_method_from_name_flags</a></h4>
|
||||
<h4><a name="api:mono_class_inflate_generic_signature">mono_class_inflate_generic_signature</a></h4>
|
||||
<h4><a name="api:mono_class_name_from_token">mono_class_name_from_token</a></h4>
|
||||
<h4><a name="api:mono_class_setup_methods">mono_class_setup_methods</a></h4>
|
||||
<h4><a name="api:mono_class_setup_vtable_general">mono_class_setup_vtable_general</a></h4>
|
||||
<h4><a name="api:mono_class_get_exception_for_failure">mono_class_get_exception_for_failure</a></h4>
|
||||
<h4><a name="api:mono_class_is_nullable">mono_class_is_nullable</a></h4>
|
||||
@@ -8,3 +8,33 @@
|
||||
<h4><a name="api:mono_code_manager_new">mono_code_manager_new</a></h4>
|
||||
<h4><a name="api:mono_code_manager_reserve">mono_code_manager_reserve</a></h4>
|
||||
|
||||
<h3>Registration services</h3>
|
||||
|
||||
<p>The core services of Mono are independent of the execution
|
||||
system. The interpreter and the native code generator both
|
||||
use the functions in the following section to register
|
||||
handlers to execute code with the execution system.
|
||||
|
||||
<p>These APIs would allow a different execution engine (code
|
||||
generator or interpreter) to be hooked to the rest of the Mono
|
||||
VM.
|
||||
|
||||
<h4><a name="api:mono_install_assembly_load_hook">mono_install_assembly_load_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_preload_hook">mono_install_assembly_preload_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_search_hook">mono_install_assembly_search_hook</a></h4>
|
||||
<h4><a name="api:mono_install_compile_method">mono_install_compile_method</a></h4>
|
||||
<h4><a name="api:mono_install_free_method">mono_install_free_method</a></h4>
|
||||
<h4><a name="api:mono_install_handler">mono_install_handler</a></h4>
|
||||
<h4><a name="api:mono_install_lookup_dynamic_token">mono_install_lookup_dynamic_token</a></h4>
|
||||
<h4><a name="api:mono_install_remoting_trampoline">mono_install_remoting_trampoline</a></h4>
|
||||
<h4><a name="api:mono_install_runtime_invoke">mono_install_runtime_invoke</a></h4>
|
||||
<h4><a name="api:mono_install_stack_walk">mono_install_stack_walk</a></h4>
|
||||
<h4><a name="api:mono_install_thread_callbacks">mono_install_thread_callbacks</a></h4>
|
||||
<h4><a name="api:mono_install_trampoline">mono_install_trampoline</a></h4>
|
||||
<h4><a name="api:mono_install_runtime_cleanup">mono_install_runtime_cleanup</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_postload_refonly_search_hook">mono_install_assembly_postload_refonly_search_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_postload_search_hook">mono_install_assembly_postload_search_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_refonly_preload_hook">mono_install_assembly_refonly_preload_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_refonly_search_hook">mono_install_assembly_refonly_search_hook</a></h4>
|
||||
<h4><a name="api:mono_install_delegate_trampoline">mono_install_delegate_trampoline</a></h4>
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
<h4><a name="api:mono_debug_il_offset_from_address">mono_debug_il_offset_from_address</a></h4>
|
||||
<h4><a name="api:mono_debug_open_mono_symbol_file">mono_debug_open_mono_symbol_file</a></h4>
|
||||
<h4><a name="api:mono_debug_source_location_from_address">mono_debug_source_location_from_address</a></h4>
|
||||
<h4><a name="api:mono_debug_source_location_from_il_offset">mono_debug_source_location_from_il_offset</a></h4>
|
||||
<h4><a name="api:mono_debug_add_aot_method">mono_debug_add_aot_method</a></h4>
|
||||
<h4><a name="api:mono_debug_add_method">mono_debug_add_method</a></h4>
|
||||
<h4><a name="api:_mono_debug_address_from_il_offset">_mono_debug_address_from_il_offset</a></h4>
|
||||
<h4><a name="api:mono_debug_address_from_il_offset">mono_debug_address_from_il_offset</a></h4>
|
||||
<h4><a name="api:mono_debug_add_wrapper">mono_debug_add_wrapper</a></h4>
|
||||
<h4><a name="api:mono_debug_close_mono_symbol_file">mono_debug_close_mono_symbol_file</a></h4>
|
||||
<h4><a name="api:mono_debug_find_method">mono_debug_find_method</a></h4>
|
||||
<h4><a name="api:mono_debug_find_source_location">mono_debug_find_source_location</a></h4>
|
||||
<h4><a name="api:mono_debug_using_mono_debugger">mono_debug_using_mono_debugger</a></h4>
|
||||
|
||||
<h3>Mono Debugger Interface</h3>
|
||||
@@ -9,15 +17,29 @@
|
||||
<p>These are methods that are invoked by the debugger at
|
||||
runtime.
|
||||
|
||||
<h4><a name="api:mono_debugger_add_builtin_types">mono_debugger_add_builtin_types</a></h4>
|
||||
<h4><a name="api:mono_debugger_add_method">mono_debugger_add_method</a></h4>
|
||||
<h4><a name="api:mono_debugger_add_symbol_file">mono_debugger_add_symbol_file</a></h4>
|
||||
<h4><a name="api:mono_debugger_add_type">mono_debugger_add_type</a></h4>
|
||||
<h4><a name="api:mono_debugger_add_wrapper">mono_debugger_add_wrapper</a></h4>
|
||||
<h4><a name="api:mono_debugger_breakpoint_callback">mono_debugger_breakpoint_callback</a></h4>
|
||||
<h4><a name="api:mono_debugger_check_runtime_version">mono_debugger_check_runtime_version</a></h4>
|
||||
<h4><a name="api:mono_debugger_create_notification_function">mono_debugger_create_notification_function</a></h4>
|
||||
<h4><a name="api:mono_debugger_event">mono_debugger_event</a></h4>
|
||||
<h4><a name="api:_mono_debugger_get_symfile">_mono_debugger_get_symfile</a></h4>
|
||||
<h4><a name="api:mono_debugger_handle_exception">mono_debugger_handle_exception</a></h4>
|
||||
<h4><a name="api:mono_debugger_insert_breakpoint_full">mono_debugger_insert_breakpoint_full</a></h4>
|
||||
<h4><a name="api:mono_debugger_insert_breakpoint">mono_debugger_insert_breakpoint</a></h4>
|
||||
<h4><a name="api:mono_debugger_lock">mono_debugger_lock</a></h4>
|
||||
<h4><a name="api:mono_debugger_lookup_assembly">mono_debugger_lookup_assembly</a></h4>
|
||||
<h4><a name="api:mono_debugger_lookup_type">mono_debugger_lookup_type</a></h4>
|
||||
<h4><a name="api:mono_debugger_method_has_breakpoint">mono_debugger_method_has_breakpoint</a></h4>
|
||||
<h4><a name="api:mono_debugger_remove_breakpoint">mono_debugger_remove_breakpoint</a></h4>
|
||||
<h4><a name="api:mono_debugger_runtime_invoke">mono_debugger_runtime_invoke</a></h4>
|
||||
<h4><a name="api:mono_debugger_start_add_type">mono_debugger_start_add_type</a></h4>
|
||||
<h4><a name="api:mono_debugger_throw_exception">mono_debugger_throw_exception</a></h4>
|
||||
<h4><a name="api:mono_debugger_unhandled_exception">mono_debugger_unhandled_exception</a></h4>
|
||||
<h4><a name="api:mono_debugger_unlock">mono_debugger_unlock</a></h4>
|
||||
<h4><a name="api:mono_debugger_run_finally">mono_debugger_run_finally</a></h4>
|
||||
<h4><a name="api:mono_debugger_finalize_threads">mono_debugger_finalize_threads</a></h4>
|
||||
<h4><a name="api:mono_debugger_main">mono_debugger_main</a></h4>
|
||||
<h4><a name="api:mono_debugger_run_finally">mono_debugger_run_finally</a></h4>
|
||||
@@ -0,0 +1,19 @@
|
||||
<h1>Decimal Support</h1>
|
||||
|
||||
<p>You can use the mono_decimal functions to access and
|
||||
manipulate <tt>System.Decimal</tt> types from C.
|
||||
|
||||
<h4><a name="api:mono_decimal2double">mono_decimal2double</a></h4>
|
||||
<h4><a name="api:mono_decimal2Int64">mono_decimal2Int64</a></h4>
|
||||
<h4><a name="api:mono_decimal2string">mono_decimal2string</a></h4>
|
||||
<h4><a name="api:mono_decimal2UInt64">mono_decimal2UInt64</a></h4>
|
||||
<h4><a name="api:mono_decimalCompare">mono_decimalCompare</a></h4>
|
||||
<h4><a name="api:mono_decimalDiv">mono_decimalDiv</a></h4>
|
||||
<h4><a name="api:mono_decimalFloorAndTrunc">mono_decimalFloorAndTrunc</a></h4>
|
||||
<h4><a name="api:mono_decimalIncr">mono_decimalIncr</a></h4>
|
||||
<h4><a name="api:mono_decimalIntDiv">mono_decimalIntDiv</a></h4>
|
||||
<h4><a name="api:mono_decimalMult">mono_decimalMult</a></h4>
|
||||
<h4><a name="api:mono_decimalRound">mono_decimalRound</a></h4>
|
||||
<h4><a name="api:mono_decimalSetExponent">mono_decimalSetExponent</a></h4>
|
||||
<h4><a name="api:mono_double2decimal">mono_double2decimal</a></h4>
|
||||
<h4><a name="api:mono_string2decimal">mono_string2decimal</a></h4>
|
||||
@@ -45,6 +45,7 @@ typedef struct _MonoAppContext MonoAppContext
|
||||
<h4><a name="api:mono_domain_set_internal">mono_domain_set_internal</a></h4>
|
||||
<h4><a name="api:mono_domain_set">mono_domain_set</a></h4>
|
||||
<h4><a name="api:mono_domain_try_type_resolve">mono_domain_try_type_resolve</a></h4>
|
||||
<h4><a name="api:mono_domain_get_tls_key">mono_domain_get_tls_key</a></h4>
|
||||
<h4><a name="api:mono_domain_owns_vtable_slot">mono_domain_owns_vtable_slot</a></h4>
|
||||
|
||||
<h3>Contexts</h3>
|
||||
|
||||
@@ -110,11 +110,9 @@ MonoMethod *adder ()
|
||||
MONO_WRAPPER_UNKNOWN
|
||||
</pre>
|
||||
|
||||
<h3>Emitting IL</h3>
|
||||
|
||||
<p>Functions that can be used to generate IL on the flight,
|
||||
similar in spirit to System.Reflection.Emit.ILGenerator.
|
||||
|
||||
<h4><a name="api:mono_mb_add_data">mono_mb_add_data</a></h4>
|
||||
<h4><a name="api:mono_mb_add_local">mono_mb_add_local</a></h4>
|
||||
<h4><a name="api:mono_mb_create_method">mono_mb_create_method</a></h4>
|
||||
<h4><a name="api:mono_mb_emit_add_to_local">mono_mb_emit_add_to_local</a></h4>
|
||||
<h4><a name="api:mono_mb_emit_branch">mono_mb_emit_branch</a></h4>
|
||||
<h4><a name="api:mono_mb_emit_byte">mono_mb_emit_byte</a></h4>
|
||||
@@ -131,18 +129,11 @@ MonoMethod *adder ()
|
||||
<h4><a name="api:mono_mb_emit_managed_call">mono_mb_emit_managed_call</a></h4>
|
||||
<h4><a name="api:mono_mb_emit_native_call">mono_mb_emit_native_call</a></h4>
|
||||
<h4><a name="api:mono_mb_emit_stloc">mono_mb_emit_stloc</a></h4>
|
||||
|
||||
<h3>Local variables and Methods</h3>
|
||||
<h4><a name="api:mono_mb_create_method">mono_mb_create_method</a></h4>
|
||||
<h4><a name="api:mono_mb_add_data">mono_mb_add_data</a></h4>
|
||||
<h4><a name="api:mono_mb_add_local">mono_mb_add_local</a></h4>
|
||||
<h4><a name="api:mono_mb_free">mono_mb_free</a></h4>
|
||||
|
||||
<h3>Patching Addresses</h3>
|
||||
<h4><a name="api:mono_mb_patch_addr">mono_mb_patch_addr</a></h4>
|
||||
<h4><a name="api:mono_mb_patch_addr_s">mono_mb_patch_addr_s</a></h4>
|
||||
|
||||
<h3>Method Signatures</h3>
|
||||
|
||||
<h4><a name="api:mono_metadata_signature_alloc">mono_metadata_signature_alloc</a></h4>
|
||||
<h4><a name="api:mono_metadata_signature_dup">mono_metadata_signature_dup</a></h4>
|
||||
<h4><a name="api:mono_metadata_signature_equal">mono_metadata_signature_equal</a></h4>
|
||||
|
||||
@@ -1,57 +1,9 @@
|
||||
<h2>Embedding Mono</h2>
|
||||
|
||||
<p>The simplest way of embedding Mono is illustrated here:
|
||||
<pre>
|
||||
int main (int argc, char *argv)
|
||||
{
|
||||
/*
|
||||
* Load the default Mono configuration file, this is needed
|
||||
* if you are planning on using the dllmaps defined on the
|
||||
* system configuration
|
||||
*/
|
||||
mono_config_parse (NULL);
|
||||
|
||||
/*
|
||||
* mono_jit_init() creates a domain: each assembly is
|
||||
* loaded and run in a MonoDomain.
|
||||
*/
|
||||
MonoDomain *domain = mono_jit_init ("startup.exe");
|
||||
|
||||
/*
|
||||
* Optionally, add an internal call that your startup.exe
|
||||
* code can call, this will bridge startup.exe to Mono
|
||||
*/
|
||||
mono_add_internal_call ("Sample::GetMessage", getMessage);
|
||||
|
||||
/*
|
||||
* Open the executable, and run the Main method declared
|
||||
* in the executable
|
||||
*/
|
||||
MonoAssembly *assembly = mono_domain_assembly_open (domain, "startup.exe");
|
||||
|
||||
if (!assembly)
|
||||
exit (2);
|
||||
/*
|
||||
* mono_jit_exec() will run the Main() method in the assembly.
|
||||
* The return value needs to be looked up from
|
||||
* System.Environment.ExitCode.
|
||||
*/
|
||||
mono_jit_exec (domain, assembly, argc, argv);
|
||||
}
|
||||
|
||||
/* The C# signature for this method is: string GetMessage () in class Sample */
|
||||
MonoString*
|
||||
getMessage ()
|
||||
{
|
||||
return mono_string_new (mono_domain_get (), "Hello, world");
|
||||
}
|
||||
</pre>
|
||||
|
||||
<h4><a name="api:mono_jit_init">mono_jit_init</a></h4>
|
||||
<h4><a name="api:mono_jit_exec">mono_jit_exec</a></h4>
|
||||
<h4><a name="api:mono_set_dirs">mono_set_dirs</a></h4>
|
||||
<h4><a name="api:mono_main">mono_main</a></h4>
|
||||
<h4><a name="api:mono_parse_default_optimizations">mono_parse_default_optimizations</a></h4>
|
||||
<h4><a name="api:mono_runtime_exec_main">mono_runtime_exec_main</a></h4>
|
||||
<h4><a name="api:mono_runtime_exec_managed_code">mono_runtime_exec_managed_code</a></h4>
|
||||
|
||||
<h4><a name="api:mono_jit_cleanup">mono_jit_cleanup</a></h4>
|
||||
<h4><a name="api:mono_set_defaults">mono_set_defaults</a></h4>
|
||||
@@ -66,44 +18,12 @@ getMessage ()
|
||||
|
||||
<p>The other option is to use the Platform Invoke (P/Invoke)
|
||||
to call C code from the CIL universe, using the standard
|
||||
<a href="http://www.mono-project.com/Interop_with_Native_Libraries">P/Invoke</a>
|
||||
mechanisms.
|
||||
P/Invoke mechanisms.
|
||||
|
||||
<p>To register an internal call, use this call you use the
|
||||
<a href="#api:mono_add_internal_call"><tt>mono_add_internal_call</tt>
|
||||
routine.
|
||||
<tt>mono_add_internal_call</tt> routine.
|
||||
|
||||
<h4><a name="api:mono_add_internal_call">mono_add_internal_call</a></h4>
|
||||
|
||||
<h3>P/Invoke with embedded applications</h3>
|
||||
|
||||
<p>Unlike internal calls, Platform/Invoke is easier to use and
|
||||
more portable. It allows you to share code with Windows and
|
||||
.NET that have a different setup for internal calls to their
|
||||
own runtime.
|
||||
|
||||
<p>Usually P/Invoke declarations reference external libraries
|
||||
like:
|
||||
|
||||
<pre>
|
||||
[DllImport ("opengl")]
|
||||
void glBegin (GLEnum mode)
|
||||
</pre>
|
||||
|
||||
<p>Mono extends P/Invoke to support looking up symbols not in
|
||||
an external library, but looking up those symbols into the
|
||||
same address space as your program, to do this, use the
|
||||
special library name "__Internal". This will direct Mono to
|
||||
lookup the method in your own process.
|
||||
|
||||
<p>There are situations where the host operating system does
|
||||
not support looking up symbols on the process address space.
|
||||
For situations like this you can use
|
||||
the <a href="#api:mono_dl_register_library">mono_dl_register_library</a>.
|
||||
|
||||
<h4><a name="api:mono_dl_register_library">mono_dl_register_library</h4>
|
||||
|
||||
<h3>Data Marshalling</h3>
|
||||
<h4>Data Marshalling</h4>
|
||||
|
||||
<p>Managed objects are represented as <tt>MonoObject*</tt>
|
||||
types. Those objects that the runtime consumes directly have
|
||||
@@ -128,6 +48,8 @@ getMessage ()
|
||||
int64, etc) must be passed as a pointer, in C# this means
|
||||
passing the value as a "ref" or "out" parameter.
|
||||
|
||||
<h4><a name="api:mono_add_internal_call">mono_add_internal_call</a></h4>
|
||||
|
||||
<h3>Mono Runtime Configuration</h3>
|
||||
|
||||
<p>Certain features of the Mono runtime, like DLL mapping, are
|
||||
@@ -143,7 +65,6 @@ getMessage ()
|
||||
|
||||
<h4><a name="api:mono_config_parse">mono_config_parse</a></h4>
|
||||
<h4><a name="api:mono_config_parse_memory">mono_config_parse_memory</a></h4>
|
||||
<h4><a name="api:mono_get_config_dir">mono_get_config_dir</a></h4>
|
||||
|
||||
<h3>Function Pointers</h3>
|
||||
|
||||
@@ -155,14 +76,3 @@ getMessage ()
|
||||
|
||||
<h4><a name="api:mono_create_ftnptr">mono_create_ftnptr</a></h4>
|
||||
|
||||
<h3>Advanced Execution Setups</h3>
|
||||
|
||||
<p>These are not recommended ways of initializing Mono, they
|
||||
are done internally by mono_jit_init, but are here to explain
|
||||
what happens internally.
|
||||
|
||||
<h4><a name="api:mono_runtime_exec_managed_code">mono_runtime_exec_managed_code</a></h4>
|
||||
<h4><a name="api:mono_runtime_exec_main">mono_runtime_exec_main</a></h4>
|
||||
<h4><a name="api:mono_init_from_assembly">mono_init_from_assembly</a></h4>
|
||||
<h4><a name="api:mono_init">mono_init</a></h4>
|
||||
<h4><a name="api:mono_init_version">mono_init_version</a></h4>
|
||||
@@ -9,6 +9,7 @@
|
||||
<h4><a name="api:mono_raise_exception">mono_raise_exception</a></h4>
|
||||
<h4><a name="api:mono_unhandled_exception">mono_unhandled_exception</a></h4>
|
||||
<h4><a name="api:mono_print_unhandled_exception">mono_print_unhandled_exception</a></h4>
|
||||
<h4><a name="api:mono_handle_exception">mono_handle_exception</a></h4>
|
||||
|
||||
|
||||
<h3>Exception Types: General API</h3>
|
||||
|
||||
@@ -10,3 +10,33 @@
|
||||
<h4><a name="api:mono_gc_get_heap_size">mono_gc_get_heap_size</a></h4>
|
||||
<h4><a name="api:mono_gc_get_used_size">mono_gc_get_used_size</a></h4>
|
||||
|
||||
<h3>Weak Links</h3>
|
||||
|
||||
<h4><a name="api:mono_gc_weak_link_add">mono_gc_weak_link_add</a></h4>
|
||||
<h4><a name="api:mono_gc_weak_link_get">mono_gc_weak_link_get</a></h4>
|
||||
<h4><a name="api:mono_gc_weak_link_remove">mono_gc_weak_link_remove</a></h4>
|
||||
|
||||
<h2>Internal Interface</h2>
|
||||
|
||||
<p>The internal interface of the Mono GC is the interface used
|
||||
between the runtime engine and the garbage collector.
|
||||
|
||||
<h4><a name="api:mono_gc_disable">mono_gc_disable</a></h4>
|
||||
<h4><a name="api:mono_gc_enable">mono_gc_enable</a></h4>
|
||||
<h4><a name="api:mono_gc_is_finalizer_thread">mono_gc_is_finalizer_thread</a></h4>
|
||||
<h4><a name="api:mono_gc_out_of_memory">mono_gc_out_of_memory</a></h4>
|
||||
<h4><a name="api:mono_gc_start_world">mono_gc_start_world</a></h4>
|
||||
<h4><a name="api:mono_gc_stop_world">mono_gc_stop_world</a></h4>
|
||||
<h4><a name="api:mono_gc_alloc_fixed">mono_gc_alloc_fixed</a></h4>
|
||||
<h4><a name="api:mono_gc_enable_events">mono_gc_enable_events</a></h4>
|
||||
<h4><a name="api:mono_gc_free_fixed">mono_gc_free_fixed</a></h4>
|
||||
<h4><a name="api:mono_gc_make_descr_from_bitmap">mono_gc_make_descr_from_bitmap</a></h4>
|
||||
|
||||
|
||||
<h4><a name="api:mono_gc_base_init">mono_gc_base_init</a></h4>
|
||||
<h4><a name="api:mono_gc_invoke_finalizers">mono_gc_invoke_finalizers</a></h4>
|
||||
<h4><a name="api:mono_gc_is_gc_thread">mono_gc_is_gc_thread</a></h4>
|
||||
<h4><a name="api:mono_gc_pending_finalizers">mono_gc_pending_finalizers</a></h4>
|
||||
<h4><a name="api:mono_gc_register_thread">mono_gc_register_thread</a></h4>
|
||||
<h4><a name="api:mono_gc_finalize_notify">mono_gc_finalize_notify</a></h4>
|
||||
|
||||
@@ -91,4 +91,5 @@ static MonoObject* o = NULL;
|
||||
<h4><a name="api:mono_gchandle_new">mono_gchandle_new</a></h4>
|
||||
<h4><a name="api:mono_gchandle_new_weakref">mono_gchandle_new_weakref</a></h4>
|
||||
<h4><a name="api:mono_gchandle_get_target">mono_gchandle_get_target</a></h4>
|
||||
<h4><a name="api:mono_gchandle_is_in_domain">mono_gchandle_is_in_domain</a></h4>
|
||||
<h4><a name="api:mono_gchandle_free">mono_gchandle_free</a></h4>
|
||||
@@ -1,114 +1,14 @@
|
||||
<h1>Mono Internals</h1>
|
||||
<h1>Code Generator Internals</h1>
|
||||
|
||||
<p>This section documents some of the internal APIs used
|
||||
inside Mono that developers extending or altering Mono might
|
||||
want to use.
|
||||
|
||||
<h2>Marshalling functions</h2>
|
||||
|
||||
<h4><a name="api:mono_marshal_alloc">mono_marshal_alloc</a></h4>
|
||||
<h4><a name="api:mono_marshal_asany">mono_marshal_asany</a></h4>
|
||||
<h4><a name="api:mono_marshal_free_array">mono_marshal_free_array</a></h4>
|
||||
<h4><a name="api:mono_marshal_free_asany">mono_marshal_free_asany</a></h4>
|
||||
<h4><a name="api:mono_marshal_free">mono_marshal_free</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_castclass">mono_marshal_get_castclass</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_delegate_begin_invoke">mono_marshal_get_delegate_begin_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_delegate_end_invoke">mono_marshal_get_delegate_end_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_delegate_invoke">mono_marshal_get_delegate_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_icall_wrapper">mono_marshal_get_icall_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_isinst">mono_marshal_get_isinst</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_ldfld_remote_wrapper">mono_marshal_get_ldfld_remote_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_ldfld_wrapper">mono_marshal_get_ldfld_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_managed_wrapper">mono_marshal_get_managed_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_native_wrapper">mono_marshal_get_native_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_proxy_cancast">mono_marshal_get_proxy_cancast</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_ptr_to_struct">mono_marshal_get_ptr_to_struct</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_remoting_invoke_for_target">mono_marshal_get_remoting_invoke_for_target</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_remoting_invoke">mono_marshal_get_remoting_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_remoting_invoke_with_check">mono_marshal_get_remoting_invoke_with_check</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_runtime_invoke">mono_marshal_get_runtime_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stelemref">mono_marshal_get_stelemref</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stfld_remote_wrapper">mono_marshal_get_stfld_remote_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stfld_wrapper">mono_marshal_get_stfld_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_struct_to_ptr">mono_marshal_get_struct_to_ptr</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_synchronized_wrapper">mono_marshal_get_synchronized_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_unbox_wrapper">mono_marshal_get_unbox_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_xappdomain_invoke">mono_marshal_get_xappdomain_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_load_type_info">mono_marshal_load_type_info</a></h4>
|
||||
<h4><a name="api:mono_marshal_method_from_wrapper">mono_marshal_method_from_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_realloc">mono_marshal_realloc</a></h4>
|
||||
<h4><a name="api:mono_marshal_set_last_error">mono_marshal_set_last_error</a></h4>
|
||||
<h4><a name="api:mono_marshal_type_size">mono_marshal_type_size</a></h4>
|
||||
|
||||
<h2>Metadata Loading Errors</h2>
|
||||
|
||||
<p>The routines in this section are used to cope with errors
|
||||
during metadata loading. Errors in metadata handling can
|
||||
happen for many reason, and these include (this is not an
|
||||
exhaustive list).
|
||||
|
||||
<ul>
|
||||
<li>An assembly referenced is missing.
|
||||
<li>Fields referenced are missing.
|
||||
<li>Methods referenced are missing.
|
||||
</ul>
|
||||
|
||||
<p>The <tt>mono_loader_set_*</tt> routines are invoked during
|
||||
metadata loading to flag that an error has happened. The
|
||||
class loading errros are flagged in a per-thread basis.
|
||||
|
||||
<P>In various spots in the runtime the
|
||||
<tt>mono_loader_get_last_error</tt> routine is called to check
|
||||
if there was a problem, and then errors are propagated upwards
|
||||
on the stack until we reach a point where an exception can be
|
||||
raised and no runtime locks are held.
|
||||
|
||||
<p>The <tt>mono_loader_error_prepare_exception</tt> takes a
|
||||
<tt>MonoLoaderError</tt> structure (the value returned from
|
||||
<tt>mono_loader_get_last_error</tt>), turns that into an
|
||||
exception and clears the error condition from the current
|
||||
thread.
|
||||
<p>The functions in this document are internal to the JIT,
|
||||
they are here for completeness, but you should refer to the
|
||||
source code for more details.
|
||||
|
||||
<h4><a name="api:mono_loader_set_error_field_load">mono_loader_set_error_field_load</a></h4>
|
||||
<h4><a name="api:mono_loader_set_error_method_load">mono_loader_set_error_method_load</a></h4>
|
||||
<h4><a name="api:mono_loader_set_error_type_load">mono_loader_set_error_type_load</a></h4>
|
||||
<h3>BURG public API</h3>
|
||||
|
||||
<h4><a name="api:mono_loader_get_last_error">mono_loader_get_last_error</a></h4>
|
||||
<h4><a name="api:mono_loader_clear_error">mono_loader_clear_error</a></h4>
|
||||
<h4><a name="api:mono_loader_error_prepare_exception">mono_loader_error_prepare_exception</a></h4>
|
||||
|
||||
<h2>Metadata Loader Locking: Internals</h2>
|
||||
|
||||
<p>The locking functions here are used by code in class.c and
|
||||
metadata.c to lock access to the shared hashtables inside the
|
||||
MonoImage.
|
||||
|
||||
<h4><a name="api:mono_loader_lock">mono_loader_lock</a></h4>
|
||||
<h4><a name="api:mono_loader_unlock">mono_loader_unlock</a></h4>
|
||||
|
||||
<h2>Garbage Collector Internal Interface</h2>
|
||||
|
||||
<p>The internal interface of the Mono GC is the interface used
|
||||
between the runtime engine and the garbage collector.
|
||||
|
||||
<h4><a name="api:mono_gc_disable">mono_gc_disable</a></h4>
|
||||
<h4><a name="api:mono_gc_enable">mono_gc_enable</a></h4>
|
||||
<h4><a name="api:mono_gc_is_finalizer_thread">mono_gc_is_finalizer_thread</a></h4>
|
||||
<h4><a name="api:mono_gc_out_of_memory">mono_gc_out_of_memory</a></h4>
|
||||
<h4><a name="api:mono_gc_start_world">mono_gc_start_world</a></h4>
|
||||
<h4><a name="api:mono_gc_stop_world">mono_gc_stop_world</a></h4>
|
||||
<h4><a name="api:mono_gc_alloc_fixed">mono_gc_alloc_fixed</a></h4>
|
||||
<h4><a name="api:mono_gc_enable_events">mono_gc_enable_events</a></h4>
|
||||
<h4><a name="api:mono_gc_free_fixed">mono_gc_free_fixed</a></h4>
|
||||
<h4><a name="api:mono_gc_make_descr_from_bitmap">mono_gc_make_descr_from_bitmap</a></h4>
|
||||
|
||||
|
||||
<h4><a name="api:mono_gc_base_init">mono_gc_base_init</a></h4>
|
||||
<h4><a name="api:mono_gc_invoke_finalizers">mono_gc_invoke_finalizers</a></h4>
|
||||
<h4><a name="api:mono_gc_is_gc_thread">mono_gc_is_gc_thread</a></h4>
|
||||
<h4><a name="api:mono_gc_pending_finalizers">mono_gc_pending_finalizers</a></h4>
|
||||
<h4><a name="api:mono_gc_register_thread">mono_gc_register_thread</a></h4>
|
||||
<h4><a name="api:mono_gc_finalize_notify">mono_gc_finalize_notify</a></h4>
|
||||
<h4><a name="api:mono_burg_kids">mono_burg_kids</a></h4>
|
||||
<h4><a name="api:mono_burg_label">mono_burg_label</a></h4>
|
||||
<h4><a name="api:mono_burg_rule">mono_burg_rule</a></h4>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<h3>Interpreter API</h3>
|
||||
|
||||
<p>This describes the API exposed by the interpreter, but it
|
||||
is for the most part an internal to the interpreter.
|
||||
|
||||
<h4><a name="api:mono_interp_dis_mintop">mono_interp_dis_mintop</a></h4>
|
||||
<h4><a name="api:mono_interp_exec">mono_interp_exec</a></h4>
|
||||
<h4><a name="api:mono_interp_ftnptr_to_delegate">mono_interp_ftnptr_to_delegate</a></h4>
|
||||
<h4><a name="api:mono_interp_get_runtime_method">mono_interp_get_runtime_method</a></h4>
|
||||
<h4><a name="api:mono_interp_transform_init">mono_interp_transform_init</a></h4>
|
||||
<h4><a name="api:mono_interp_transform_method">mono_interp_transform_method</a></h4>
|
||||
@@ -1,8 +1,9 @@
|
||||
<h1>Notification Interface</h1>
|
||||
|
||||
<p>This is an internal profiler interface. In general, users
|
||||
would not be using this interface, but would be using the
|
||||
profiler interface.
|
||||
<p>Am not sure that we want to document this; This seems like
|
||||
an internal interface that third parties would not likely
|
||||
use, and if they do, they probably are reading the JIT's
|
||||
source code.
|
||||
|
||||
<p>These methods must be called to notify the profiler of an
|
||||
event that must be recorded. Mono's JIT engine currently
|
||||
|
||||
@@ -3,4 +3,37 @@
|
||||
<h4><a name="api:mono_delegate_free_ftnptr">mono_delegate_free_ftnptr</a></h4>
|
||||
<h4><a name="api:mono_delegate_to_ftnptr">mono_delegate_to_ftnptr</a></h4>
|
||||
<h4><a name="api:mono_ftnptr_to_delegate">mono_ftnptr_to_delegate</a></h4>
|
||||
<h4><a name="api:mono_marshal_alloc">mono_marshal_alloc</a></h4>
|
||||
<h4><a name="api:mono_marshal_asany">mono_marshal_asany</a></h4>
|
||||
<h4><a name="api:mono_marshal_free_array">mono_marshal_free_array</a></h4>
|
||||
<h4><a name="api:mono_marshal_free_asany">mono_marshal_free_asany</a></h4>
|
||||
<h4><a name="api:mono_marshal_free">mono_marshal_free</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_castclass">mono_marshal_get_castclass</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_delegate_begin_invoke">mono_marshal_get_delegate_begin_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_delegate_end_invoke">mono_marshal_get_delegate_end_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_delegate_invoke">mono_marshal_get_delegate_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_icall_wrapper">mono_marshal_get_icall_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_isinst">mono_marshal_get_isinst</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_ldfld_remote_wrapper">mono_marshal_get_ldfld_remote_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_ldfld_wrapper">mono_marshal_get_ldfld_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_managed_wrapper">mono_marshal_get_managed_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_native_wrapper">mono_marshal_get_native_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_proxy_cancast">mono_marshal_get_proxy_cancast</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_ptr_to_struct">mono_marshal_get_ptr_to_struct</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_remoting_invoke_for_target">mono_marshal_get_remoting_invoke_for_target</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_remoting_invoke">mono_marshal_get_remoting_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_remoting_invoke_with_check">mono_marshal_get_remoting_invoke_with_check</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_runtime_invoke">mono_marshal_get_runtime_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stelemref">mono_marshal_get_stelemref</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stfld_remote_wrapper">mono_marshal_get_stfld_remote_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stfld_wrapper">mono_marshal_get_stfld_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_struct_to_ptr">mono_marshal_get_struct_to_ptr</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_synchronized_wrapper">mono_marshal_get_synchronized_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_unbox_wrapper">mono_marshal_get_unbox_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_xappdomain_invoke">mono_marshal_get_xappdomain_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_load_type_info">mono_marshal_load_type_info</a></h4>
|
||||
<h4><a name="api:mono_marshal_method_from_wrapper">mono_marshal_method_from_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_realloc">mono_marshal_realloc</a></h4>
|
||||
<h4><a name="api:mono_marshal_set_last_error">mono_marshal_set_last_error</a></h4>
|
||||
<h4><a name="api:mono_marshal_string_to_utf16">mono_marshal_string_to_utf16</a></h4>
|
||||
<h4><a name="api:mono_marshal_type_size">mono_marshal_type_size</a></h4>
|
||||
@@ -618,6 +618,7 @@ MONO_TYPESPEC_SIZE
|
||||
<h4><a name="api:mono_image_get_table_info">mono_image_get_table_info</a></h4>
|
||||
<h4><a name="api:mono_image_get_table_rows">mono_image_get_table_rows</a></h4>
|
||||
<h4><a name="api:mono_metadata_get_table">mono_metadata_get_table</a></h4>
|
||||
<h4><a name="api:mono_meta_table_name">mono_meta_table_name</a></h4>
|
||||
<h4><a name="api:mono_metadata_decode_row_col">mono_metadata_decode_row_col</a></h4>
|
||||
<h4><a name="api:mono_metadata_decode_row">mono_metadata_decode_row</a></h4>
|
||||
<h4><a name="api:mono_metadata_compute_size">mono_metadata_compute_size</a></h4>
|
||||
@@ -642,6 +643,7 @@ MONO_TYPESPEC_SIZE
|
||||
<h4><a name="api:mono_metadata_get_constant_index">mono_metadata_get_constant_index</a></h4>
|
||||
<h4><a name="api:mono_metadata_get_marshal_info">mono_metadata_get_marshal_info</a></h4>
|
||||
<h4><a name="api:mono_metadata_implmap_from_method">mono_metadata_implmap_from_method</a></h4>
|
||||
<h4><a name="api:mono_metadata_interfaces_from_typedef_full">mono_metadata_interfaces_from_typedef_full</a></h4>
|
||||
<h4><a name="api:mono_metadata_interfaces_from_typedef">mono_metadata_interfaces_from_typedef</a></h4>
|
||||
<h4><a name="api:mono_metadata_locate">mono_metadata_locate</a></h4>
|
||||
<h4><a name="api:mono_metadata_locate_token">mono_metadata_locate_token</a></h4>
|
||||
@@ -669,25 +671,79 @@ MONO_TYPESPEC_SIZE
|
||||
<h4><a name="api:mono_metadata_parse_mh_full">mono_metadata_parse_mh_full</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_mh">mono_metadata_parse_mh</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_param">mono_metadata_parse_param</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_signature_full">mono_metadata_parse_signature_full</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_signature">mono_metadata_parse_signature</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_typedef_or_ref">mono_metadata_parse_typedef_or_ref</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_type_full">mono_metadata_parse_type_full</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_type">mono_metadata_parse_type</a></h4>
|
||||
|
||||
<h2>Metadata Loader Locking</h2>
|
||||
|
||||
<p>The locking functions here are used by code in class.c and
|
||||
metadata.c to lock access to the shared hashtables inside the
|
||||
MonoImage.
|
||||
|
||||
<h4><a name="api:mono_loader_lock">mono_loader_lock</a></h4>
|
||||
<h4><a name="api:mono_loader_unlock">mono_loader_unlock</a></h4>
|
||||
|
||||
<h2>Generics Support</h2>
|
||||
|
||||
<h4><a name="api:mono_metadata_generic_class_is_valuetype">mono_metadata_generic_class_is_valuetype</a></h4>
|
||||
<h4><a name="api:mono_metadata_has_generic_params">mono_metadata_has_generic_params</a></h4>
|
||||
<h4><a name="api:mono_metadata_inflate_generic_inst">mono_metadata_inflate_generic_inst</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_generic_inst">mono_metadata_parse_generic_inst</a></h4>
|
||||
<h4><a name="api:mono_metadata_generic_inst_equal">mono_metadata_generic_inst_equal</a></h4>
|
||||
<h4><a name="api:mono_metadata_generic_inst_hash">mono_metadata_generic_inst_hash</a></h4>
|
||||
<h4><a name="api:mono_metadata_load_generic_params">mono_metadata_load_generic_params</a></h4>
|
||||
<h4><a name="api:mono_metadata_generic_inst_is_valuetype">mono_metadata_generic_inst_is_valuetype</a></h4>
|
||||
<h4><a name="api:mono_metadata_generic_method_equal">mono_metadata_generic_method_equal</a></h4>
|
||||
|
||||
<h2>Tokens</h2>
|
||||
|
||||
<h4><a name="api:mono_ldtoken">mono_ldtoken</a></h4>
|
||||
<h4><a name="api:mono_lookup_dynamic_token">mono_lookup_dynamic_token</a></h4>
|
||||
<h4><a name="api:mono_ldstr">mono_ldstr</a></h4>
|
||||
<h4><a name="api:mono_exception_from_token">mono_exception_from_token</a></h4>
|
||||
<h4><a name="api:mono_create_jit_trampoline_from_token">mono_create_jit_trampoline_from_token</a></h4>
|
||||
|
||||
<h2>OpCodes</h2>
|
||||
|
||||
<h4><a name="api:mono_opcode_name">mono_opcode_name</a></h4>
|
||||
<h4><a name="api:mono_opcode_value">mono_opcode_value</a></h4>
|
||||
|
||||
<h2>Metadata Loading Errors</h2>
|
||||
|
||||
<p>The routines in this section are used to cope with errors
|
||||
during metadata loading. Errors in metadata handling can
|
||||
happen for many reason, and these include (this is not an
|
||||
exhaustive list).
|
||||
|
||||
<ul>
|
||||
<li>An assembly referenced is missing.
|
||||
<li>Fields referenced are missing.
|
||||
<li>Methods referenced are missing.
|
||||
</ul>
|
||||
|
||||
<p>The <tt>mono_loader_set_*</tt> routines are invoked during
|
||||
metadata loading to flag that an error has happened. The
|
||||
class loading errros are flagged in a per-thread basis.
|
||||
|
||||
<P>In various spots in the runtime the
|
||||
<tt>mono_loader_get_last_error</tt> routine is called to check
|
||||
if there was a problem, and then errors are propagated upwards
|
||||
on the stack until we reach a point where an exception can be
|
||||
raised and no runtime locks are held.
|
||||
|
||||
<p>The <tt>mono_loader_error_prepare_exception</tt> takes a
|
||||
<tt>MonoLoaderError</tt> structure (the value returned from
|
||||
<tt>mono_loader_get_last_error</tt>), turns that into an
|
||||
exception and clears the error condition from the current
|
||||
thread.
|
||||
|
||||
<h4><a name="api:mono_loader_set_error_field_load">mono_loader_set_error_field_load</a></h4>
|
||||
<h4><a name="api:mono_loader_set_error_method_load">mono_loader_set_error_method_load</a></h4>
|
||||
<h4><a name="api:mono_loader_set_error_type_load">mono_loader_set_error_type_load</a></h4>
|
||||
|
||||
<h4><a name="api:mono_loader_get_last_error">mono_loader_get_last_error</a></h4>
|
||||
<h4><a name="api:mono_loader_clear_error">mono_loader_clear_error</a></h4>
|
||||
<h4><a name="api:mono_loader_error_prepare_exception">mono_loader_error_prepare_exception</a></h4>
|
||||
@@ -26,9 +26,10 @@ mono_runtime_invoke (method, obj, args, &exception);
|
||||
|
||||
|
||||
<h4><a name="api:mono_runtime_invoke_array">mono_runtime_invoke_array</a></h4>
|
||||
<h4><a name="api:mono_remoting_invoke">mono_remoting_invoke</a></h4>
|
||||
<h4><a name="api:mono_runtime_delegate_invoke">mono_runtime_delegate_invoke</a></h4>
|
||||
|
||||
<h4><a name="api:mono_method_body_get_object">mono_method_body_get_object</a></h4>
|
||||
<h4><a name="api:mono_method_call_message_new">mono_method_call_message_new</a></h4>
|
||||
<h4><a name="api:mono_method_desc_free">mono_method_desc_free</a></h4>
|
||||
<h4><a name="api:mono_method_desc_from_method">mono_method_desc_from_method</a></h4>
|
||||
<h4><a name="api:mono_method_desc_full_match">mono_method_desc_full_match</a></h4>
|
||||
@@ -49,7 +50,10 @@ mono_runtime_invoke (method, obj, args, &exception);
|
||||
<h4><a name="api:mono_method_get_index">mono_method_get_index</a></h4>
|
||||
<h4><a name="api:mono_method_get_signature_full">mono_method_get_signature_full</a></h4>
|
||||
<h4><a name="api:mono_method_get_token">mono_method_get_token</a></h4>
|
||||
<h4><a name="api:mono_method_get_wrapper_data">mono_method_get_wrapper_data</a></h4>
|
||||
<h4><a name="api:mono_method_has_marshal_info">mono_method_has_marshal_info</a></h4>
|
||||
<h4><a name="api:mono_method_return_message_restore">mono_method_return_message_restore</a></h4>
|
||||
<h4><a name="api:mono_method_same_domain">mono_method_same_domain</a></h4>
|
||||
<h4><a name="api:mono_method_verify">mono_method_verify</a></h4>
|
||||
|
||||
<h3>Method Signatures</h3>
|
||||
@@ -64,9 +68,6 @@ mono_runtime_invoke (method, obj, args, &exception);
|
||||
<h4><a name="api:mono_signature_hash">mono_signature_hash</a></h4>
|
||||
<h4><a name="api:mono_signature_is_instance">mono_signature_is_instance</a></h4>
|
||||
<h4><a name="api:mono_signature_vararg_start">mono_signature_vararg_start</a></h4>
|
||||
<h4><a name="api:mono_param_get_objects">mono_param_get_objects</a></h4>
|
||||
<h4><a name="api:mono_get_method_full">mono_get_method_full</a></h4>
|
||||
<h4><a name="api:mono_get_method">mono_get_method</a></h4>
|
||||
|
||||
<h3>Methods Header Operations</h3>
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
<p>The object API deals with all the operations shared by
|
||||
<a href="#objects">objects</a>, <a href="#valuetypes">value
|
||||
types</a>, <a href="#arrays">arrays</a>.
|
||||
types</a>, <a href="#arrays">arrays</a> and <a
|
||||
href="#nullable">nullable types</a>.
|
||||
|
||||
<p>The object API has methods for accessing <a
|
||||
href="#fields">fields</a>, <a
|
||||
@@ -10,7 +11,8 @@
|
||||
href="#events">events</a>, <a href="#delegates">delegates</a>.
|
||||
|
||||
<p>There are some advanced uses that are useful to document
|
||||
here dealing with <a href="#remote">remote fields</a>.
|
||||
here dealing with <a href="#async">AsyncResults</a> and <a
|
||||
href="#remote">remote fields</a>.
|
||||
|
||||
<h2>Synopsis</h2>
|
||||
|
||||
@@ -91,6 +93,7 @@ result = mono_object_new (mono_domain_get (), version_class);
|
||||
<h4><a name="api:mono_object_get_virtual_method">mono_object_get_virtual_method</a></h4>
|
||||
<h4><a name="api:mono_object_isinst_mbyref">mono_object_isinst_mbyref</a></h4>
|
||||
<h4><a name="api:mono_object_isinst">mono_object_isinst</a></h4>
|
||||
<h4><a name="api:mono_object_register_finalizer">mono_object_register_finalizer</a></h4>
|
||||
<h4><a name="api:mono_object_unbox">mono_object_unbox</a></h4>
|
||||
<h4><a name="api:mono_object_castclass_mbyref">mono_object_castclass_mbyref</a></h4>
|
||||
<h4><a name="api:mono_object_is_alive">mono_object_is_alive</a></h4>
|
||||
@@ -134,7 +137,12 @@ result = mono_object_new (mono_domain_get (), version_class);
|
||||
<h4><a name="api:mono_array_new_full">mono_array_new_full</a></h4>
|
||||
<h4><a name="api:mono_array_new_specific">mono_array_new_specific</a></h4>
|
||||
<h4><a name="api:mono_array_class_get">mono_array_class_get</a></h4>
|
||||
<h4><a name="api:mono_array_clone_in_domain">mono_array_clone_in_domain</a></h4>
|
||||
<h4><a name="api:mono_array_clone">mono_array_clone</a></h4>
|
||||
<h4><a name="api:mono_array_full_copy">mono_array_full_copy</a></h4>
|
||||
<h4><a name="api:mono_array_to_lparray">mono_array_to_lparray</a></h4>
|
||||
<h4><a name="api:mono_array_to_savearray">mono_array_to_savearray</a></h4>
|
||||
<h4><a name="api:mono_dup_array_type">mono_dup_array_type</a></h4>
|
||||
|
||||
<h3>Using Arrays</h3>
|
||||
|
||||
@@ -159,12 +167,10 @@ result = mono_object_new (mono_domain_get (), version_class);
|
||||
<h4><a name="api:mono_field_set_value">mono_field_set_value</a></h4>
|
||||
<h4><a name="api:mono_field_static_get_value">mono_field_static_get_value</a></h4>
|
||||
<h4><a name="api:mono_field_static_set_value">mono_field_static_set_value</a></h4>
|
||||
<h4><a name="api:mono_field_get_object">mono_field_get_object</a></h4>
|
||||
|
||||
<a name="properties"></a>
|
||||
<h2>Properties</h2>
|
||||
|
||||
<h4><a name="api:mono_property_get_object">mono_property_get_object</a></h4>
|
||||
<h4><a name="api:mono_property_get_flags">mono_property_get_flags</a></h4>
|
||||
<h4><a name="api:mono_property_get_get_method">mono_property_get_get_method</a></h4>
|
||||
<h4><a name="api:mono_property_get_name">mono_property_get_name</a></h4>
|
||||
@@ -176,7 +182,6 @@ result = mono_object_new (mono_domain_get (), version_class);
|
||||
<a name="events"></a>
|
||||
<h2>Events</h2>
|
||||
|
||||
<h4><a name="api:mono_event_get_object">mono_event_get_object</a></h4>
|
||||
<h4><a name="api:mono_event_get_add_method">mono_event_get_add_method</a></h4>
|
||||
<h4><a name="api:mono_event_get_flags">mono_event_get_flags</a></h4>
|
||||
<h4><a name="api:mono_event_get_name">mono_event_get_name</a></h4>
|
||||
@@ -184,6 +189,14 @@ result = mono_object_new (mono_domain_get (), version_class);
|
||||
<h4><a name="api:mono_event_get_raise_method">mono_event_get_raise_method</a></h4>
|
||||
<h4><a name="api:mono_event_get_remove_method">mono_event_get_remove_method</a></h4>
|
||||
|
||||
<a name="delegates"></a>
|
||||
<h2>Delegates</h2>
|
||||
<h4><a name="api:mono_delegate_ctor">mono_delegate_ctor</a></h4>
|
||||
|
||||
<a name="async"></a>
|
||||
<h2>AsyncResults</h2>
|
||||
<h4><a name="api:mono_async_result_new">mono_async_result_new</a></h4>
|
||||
|
||||
<a name="remote"></a>
|
||||
<h2>Remote Fields</h2>
|
||||
<h4><a name="api:mono_load_remote_field">mono_load_remote_field</a></h4>
|
||||
@@ -191,3 +204,11 @@ result = mono_object_new (mono_domain_get (), version_class);
|
||||
<h4><a name="api:mono_store_remote_field">mono_store_remote_field</a></h4>
|
||||
<h4><a name="api:mono_store_remote_field_new">mono_store_remote_field_new</a></h4>
|
||||
|
||||
<a name="nullable"></a>
|
||||
<h2>Nullable Objects</h2>
|
||||
|
||||
<p>These methods are used to manipulate objects of type
|
||||
System.Nullable<T>
|
||||
|
||||
<h4><a name="api:mono_nullable_box">mono_nullable_box</a></h4>
|
||||
<h4><a name="api:mono_nullable_init">mono_nullable_init</a></h4>
|
||||
Loaded 100 of 15756 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user