00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 #ifndef XIMOL_PARSER_UTILS_HPP_
00068 #define XIMOL_PARSER_UTILS_HPP_
00069
00070 #include <ximol/typedefs.hpp>
00071 #include <ximol/export_defs.hpp>
00072
00073
00074
00075 XIMOL_BEGIN_NAMESPACE
00076 class xostream;
00077 class xistream;
00078 XIMOL_END_NAMESPACE
00079
00080 XIMOL_XML_BEGIN_NAMESPACE
00081 class attributes;
00082 XIMOL_XML_END_NAMESPACE
00083
00084
00085 XIMOL_PARSER_BEGIN_NAMESPACE
00086
00087
00088
00089
00090
00091
00092
00093
00094 XIMOL_EXPORT void write_xchar(xostream& xos, xchar_t xc);
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106 XIMOL_EXPORT
00107 xistream& read_xchar(xistream& xis,
00108 xchar_t xc,
00109 const ::std::wstring & error_msg = L"");
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123 XIMOL_EXPORT
00124 xistream& read_xchar(xistream& xis,
00125 xchar_t & xc,
00126 bool (*is_good_xchar)(xchar_t),
00127 const ::std::wstring & error_msg = L"");
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140 XIMOL_EXPORT
00141 xistream& read_xstring(xistream& xis,
00142 xstring & xstr,
00143 bool (*is_good_xchar)(xchar_t),
00144 bool erase_string = true);
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155 XIMOL_EXPORT
00156 bool is_xstring(const xstring & xstr, bool (*is_good_xchar)(xchar_t));
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169 XIMOL_EXPORT
00170 xistream& read_xstring(xistream& xistream_, const ::std::string& str_,
00171 const ::std::wstring& strErrorMsg_ = L"",
00172 size_t size_ = 0);
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187 XIMOL_EXPORT
00188 xostream& write_string_with_forbidden_serie(xostream& xos,
00189 const xstring & xstr,
00190 bool (*is_good_xchar)(xchar_t),
00191 const ::std::string& forbidden_string,
00192 const ::std::string& entity_test,
00193 const ::std::string& entity_definition);
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203 XIMOL_EXPORT
00204 xistream& read_string_with_forbidden_serie(xistream& xis,
00205 xstring & xstr,
00206 bool (*is_good_xchar)(xchar_t),
00207 const ::std::string& forbidden_string);
00208
00209
00210
00211
00212
00213
00214
00215 XIMOL_EXPORT
00216 bool is_string_with_forbidden_serie(const xstring & xstr,
00217 bool (*is_good_xchar)(xchar_t),
00218 const ::std::string& forbidden_string);
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232 XIMOL_EXPORT
00233 bool is_in_range(xchar_t c, xchar_t lower, xchar_t upper);
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244 XIMOL_EXPORT
00245 bool is_space(xchar_t c);
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269 XIMOL_EXPORT
00270 bool is_digit(xchar_t c);
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281 XIMOL_EXPORT
00282 bool is_char(xchar_t c);
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292 XIMOL_EXPORT
00293 bool is_letter(xchar_t c);
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331 XIMOL_EXPORT
00332 bool is_combining_char(xchar_t c);
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404 XIMOL_EXPORT
00405 bool is_base_char(xchar_t c);
00406
00407
00408
00409
00410
00411
00412
00413
00414
00415 XIMOL_EXPORT
00416 bool is_ideographic(xchar_t c);
00417
00418
00419
00420
00421
00422
00423
00424
00425
00426
00427 XIMOL_EXPORT
00428 bool is_extender(xchar_t c);
00429
00430
00431
00432
00433
00434
00435
00436
00437
00438 XIMOL_EXPORT
00439 bool is_name_char(xchar_t c);
00440
00441
00442
00443
00444
00445
00446
00447
00448
00449 XIMOL_EXPORT
00450 bool is_pubid_char(xchar_t c);
00451
00452
00453
00454
00455
00456
00457
00458
00459
00460 XIMOL_EXPORT
00461 xostream& write_space(xostream& xos);
00462
00463
00464
00465
00466
00467
00468
00469
00470
00471 XIMOL_EXPORT
00472 xistream& read_space(xistream& xis);
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482 XIMOL_EXPORT
00483 xistream& read_optionnal_space(xistream& xis);
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493 XIMOL_EXPORT
00494 xostream& write_name(xostream& xos, const xstring & xstr);
00495
00496
00497
00498
00499
00500
00501
00502
00503
00504 XIMOL_EXPORT
00505 xistream& read_name(xistream& xis, xstring & xstr);
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515 XIMOL_EXPORT
00516 bool is_name(const xstring & xstr);
00517
00518
00519
00520
00521
00522
00523
00524
00525
00526 XIMOL_EXPORT
00527 xostream& write_ncname(xostream& xos, const xstring & xstr);
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537 XIMOL_EXPORT
00538 xistream& read_ncname(xistream& xis, xstring & xstr);
00539
00540
00541
00542
00543
00544
00545
00546
00547
00548 XIMOL_EXPORT
00549 bool is_ncname(const xstring & xstr);
00550
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561 XIMOL_EXPORT
00562 xostream& write_qname(xostream& xos, const xstring & localPart, const xstring & prefix = xstring());
00563
00564
00565
00566
00567
00568
00569
00570
00571
00572
00573
00574 XIMOL_EXPORT
00575 xistream& read_qname(xistream& xis, xstring & localPart, xstring & prefix);
00576
00577
00578
00579
00580
00581
00582
00583
00584
00585
00586
00587 XIMOL_EXPORT
00588 bool is_qname(const xstring & localPart, const xstring & prefix = xstring());
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598
00599
00600
00601 XIMOL_EXPORT
00602 xostream& write_ns_att_name(xostream& xos, const xstring & xstr);
00603
00604
00605
00606
00607
00608
00609
00610
00611
00612
00613
00614
00615 XIMOL_EXPORT
00616 xistream& read_ns_att_name(xistream& xis, xstring & xstr, int nb_read = 0);
00617
00618
00619
00620
00621
00622
00623
00624
00625
00626
00627
00628
00629 XIMOL_EXPORT
00630 bool is_ns_att_name(const xstring & xstr);
00631
00632
00633
00634
00635
00636
00637
00638
00639
00640 XIMOL_EXPORT
00641 bool is_first_char_name(xchar_t xc);
00642
00643
00644
00645
00646
00647
00648
00649
00650
00651 XIMOL_EXPORT
00652 bool is_first_char_ncname(xchar_t xc);
00653
00654
00655
00656
00657
00658
00659
00660
00661
00662 XIMOL_EXPORT
00663 xostream& write_char_data(xostream& xos, const xstring & xstr);
00664
00665
00666
00667
00668
00669
00670
00671
00672
00673
00674
00675 XIMOL_EXPORT
00676 xistream& read_char_data(xistream& xis, xstring & xstr);
00677
00678
00679
00680
00681
00682
00683
00684
00685
00686 XIMOL_EXPORT
00687 bool is_char_data(const xstring & xstr);
00688
00689
00690
00691
00692
00693
00694
00695
00696
00697 XIMOL_EXPORT
00698 xostream& write_nm_token(xostream& xos, const xstring & xstr);
00699
00700
00701
00702
00703
00704
00705
00706
00707
00708 XIMOL_EXPORT
00709 xistream& read_nm_token(xistream& xis, xstring & xstr);
00710
00711
00712
00713
00714
00715
00716
00717
00718
00719 XIMOL_EXPORT
00720 bool is_nm_token(const xstring & xstr);
00721
00722
00723
00724
00725
00726
00727
00728
00729
00730
00731 XIMOL_EXPORT
00732 xostream& write_char_ref(xostream& xos, xchar_t xc);
00733
00734
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744 XIMOL_EXPORT
00745 xistream& read_char_ref(xistream& xis, xchar_t & xc, int nb_read = 0);
00746
00747
00748
00749
00750
00751
00752
00753
00754
00755
00756 XIMOL_EXPORT
00757 xstring replace_char_ref(const xstring& xstr);
00758
00759
00760
00761
00762
00763
00764
00765
00766
00767 XIMOL_EXPORT
00768 xostream& write_entity_ref(xostream& xos, const xstring & xstr);
00769
00770
00771
00772
00773
00774
00775
00776
00777
00778 XIMOL_EXPORT
00779 xistream& read_entity_ref(xistream& xis, int nb_read = 0);
00780
00781
00782
00783
00784
00785
00786
00787
00788
00789 XIMOL_EXPORT
00790 xostream& write_pe_reference(xostream& xos, const xstring & xstr);
00791
00792
00793
00794
00795
00796
00797
00798
00799
00800 XIMOL_EXPORT
00801 xistream& read_pe_reference(xistream& xis, xstring & xstr, int nb_read = 0);
00802
00803
00804
00805
00806
00807
00808
00809
00810
00811 XIMOL_EXPORT
00812 xistream& read_reference(xistream& xis, xstring & xstr, int nb_read = 0);
00813
00814
00815
00816
00817
00818
00819
00820
00821
00822
00823 XIMOL_EXPORT
00824 xostream& write_pubid_literal(xostream& xos, const xstring & xstr);
00825
00826
00827
00828
00829
00830
00831
00832
00833
00834
00835 XIMOL_EXPORT
00836 xistream& read_pubid_literal(xistream& xis, xstring & xstr);
00837
00838
00839
00840
00841
00842
00843
00844
00845
00846
00847 XIMOL_EXPORT
00848 xostream& write_system_literal(xostream& xos, const xstring & xstr, xchar_t quote=0x0022);
00849
00850
00851
00852
00853
00854
00855
00856
00857
00858
00859 XIMOL_EXPORT
00860 xistream& read_system_literal(xistream& xis, xstring & xstr);
00861
00862
00863
00864
00865
00866
00867
00868
00869
00870
00871
00872 XIMOL_EXPORT
00873 xostream& write_entity_value(xostream& xos, const xstring & xstr, xchar_t quote=0x0022);
00874
00875
00876
00877
00878
00879
00880
00881
00882
00883
00884
00885 XIMOL_EXPORT
00886 xistream& read_entity_value(xistream& xis, xstring & xstr);
00887
00888
00889
00890
00891
00892
00893
00894
00895
00896
00897
00898 XIMOL_EXPORT
00899 xostream& write_att_value(xostream& xos, const xstring & xstr, xchar_t quote=0x0022);
00900
00901
00902
00903
00904
00905
00906
00907
00908
00909
00910
00911 XIMOL_EXPORT
00912 xistream& read_att_value(xistream& xis, xstring & xstr);
00913
00914
00915
00916
00917
00918
00919
00920
00921
00922
00923 XIMOL_EXPORT
00924 xostream& write_attribute(xostream& xos, const xstring & name, const xstring & att_value, const xstring & short_ns, xchar_t quote=0x0022);
00925
00926
00927
00928
00929
00930
00931
00932
00933
00934
00935 XIMOL_EXPORT
00936 xistream& read_attribute(xistream& xis, xstring & name, xstring & att_value, xstring& short_ns);
00937
00938
00939
00940
00941
00942
00943
00944
00945
00946 XIMOL_EXPORT
00947 bool is_comment(const xstring & xstr);
00948
00949
00950
00951
00952
00953
00954
00955
00956
00957 XIMOL_EXPORT
00958 xostream& write_comment(xostream& xos, const xstring & xstr);
00959
00960
00961
00962
00963
00964
00965
00966
00967
00968 XIMOL_EXPORT
00969 xistream& read_comment(xistream& xis, xstring & xstr, int nb_read=0);
00970
00971
00972
00973
00974
00975
00976
00977
00978
00979 XIMOL_EXPORT
00980 xistream& read_comment(xistream& xis, int nb_read=0);
00981
00982
00983
00984
00985
00986
00987
00988
00989
00990 XIMOL_EXPORT
00991 bool is_pi_target(const xstring & xstr);
00992
00993
00994
00995
00996
00997
00998
00999
01000
01001 XIMOL_EXPORT
01002 xostream& write_pi_target(xostream& xos, const xstring & xstr);
01003
01004
01005
01006
01007
01008
01009
01010
01011
01012 XIMOL_EXPORT
01013 xistream& read_pi_target(xistream& xis, xstring & xstr);
01014
01015
01016
01017
01018
01019
01020
01021
01022
01023 XIMOL_EXPORT
01024 xostream& write_pi(xostream& xos, const xstring & pi_target, const xstring & xext);
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034 XIMOL_EXPORT
01035 xistream& read_pi(xistream& xis, xstring & pi_target,xstring & xext, int nb_read=0);
01036
01037
01038
01039
01040
01041
01042
01043
01044
01045 XIMOL_EXPORT
01046 xistream& read_pi(xistream& xis, int nb_read=0);
01047
01048
01049
01050
01051
01052
01053
01054
01055
01056 XIMOL_EXPORT
01057 xostream& write_cd_end(xostream& xos);
01058
01059
01060
01061
01062
01063
01064
01065
01066
01067 XIMOL_EXPORT
01068 xistream& read_cd_end(xistream& xis, int nb_read=0);
01069
01070
01071
01072
01073
01074
01075
01076
01077
01078 XIMOL_EXPORT
01079 xostream& write_cd_start(xostream& xos);
01080
01081
01082
01083
01084
01085
01086
01087
01088
01089 XIMOL_EXPORT
01090 xistream& read_cd_start(xistream& xis, int nb_read=0);
01091
01092
01093
01094
01095
01096
01097
01098
01099
01100 XIMOL_EXPORT
01101 xostream& write_cdata(xostream& xos, const xstring & xstr);
01102
01103
01104
01105
01106
01107
01108
01109
01110
01111 XIMOL_EXPORT
01112 xistream& read_cdata(xistream& xis, xstring & xstr);
01113
01114
01115
01116
01117
01118
01119
01120
01121
01122 XIMOL_EXPORT
01123 xostream& write_cd_sect(xostream& xos, const xstring & xstr);
01124
01125
01126
01127
01128
01129
01130
01131
01132
01133 XIMOL_EXPORT
01134 xistream& read_cd_sect(xistream& xis, xstring & xstr, int nb_char=0);
01135
01136
01137
01138
01139
01140
01141
01142
01143
01144 XIMOL_EXPORT
01145 xostream& write_eq(xostream& xos);
01146
01147
01148
01149
01150
01151
01152
01153
01154
01155 XIMOL_EXPORT
01156 xistream& read_eq(xistream& xis);
01157
01158
01159
01160
01161
01162
01163
01164
01165
01166 XIMOL_EXPORT
01167 bool is_version_num(const xstring & xstr);
01168
01169
01170
01171
01172
01173
01174
01175
01176
01177 XIMOL_EXPORT
01178 xostream& write_version_num(xostream& xos, const xstring & xstr);
01179
01180
01181
01182
01183
01184
01185
01186
01187
01188 XIMOL_EXPORT
01189 xistream& read_version_num(xistream& xis, xstring & xstr);
01190
01191
01192
01193
01194
01195
01196
01197
01198
01199 XIMOL_EXPORT
01200 xostream& write_version_info(xostream& xos, const xstring & xstr);
01201
01202
01203
01204
01205
01206
01207
01208
01209
01210 XIMOL_EXPORT
01211 xistream& read_version_info(xistream& xis, xstring & xstr, bool read_first_space=true);
01212
01213
01214
01215
01216
01217
01218
01219
01220
01221 XIMOL_EXPORT
01222 xistream& read_version_info(xistream& xis, bool read_first_space=true);
01223
01224
01225
01226
01227
01228
01229
01230
01231
01232 XIMOL_EXPORT
01233 bool is_enc_name(const xstring & xstr);
01234
01235
01236
01237
01238
01239
01240
01241
01242
01243 XIMOL_EXPORT
01244 xostream& write_enc_name(xostream& xos, const xstring & xstr);
01245
01246
01247
01248
01249
01250
01251
01252
01253
01254 XIMOL_EXPORT
01255 xistream& read_enc_name(xistream& xis, xstring & xstr);
01256
01257
01258
01259
01260
01261
01262
01263
01264
01265 XIMOL_EXPORT
01266 xostream& write_encoding_decl(xostream& xos, const xstring & xstr);
01267
01268
01269
01270
01271
01272
01273
01274
01275
01276 XIMOL_EXPORT
01277 xistream& read_encoding_decl(xistream& xis, xstring & xstr, bool read_first_space=true);
01278
01279
01280
01281
01282
01283
01284
01285
01286
01287 XIMOL_EXPORT
01288 xostream& write_sd_decl(xostream& xos, bool standalone);
01289
01290
01291
01292
01293
01294
01295
01296
01297
01298 XIMOL_EXPORT
01299 xistream& read_sd_decl(xistream& xis, bool & standalone, bool read_first_space=true);
01300
01301
01302
01303
01304
01305
01306
01307
01308
01309 XIMOL_EXPORT
01310 xostream& write_xml_decl(xostream& xos, const xstring& version_info, const xstring& encoding_decl = L"", const xstring& standalone_decl = L"");
01311
01312
01313
01314
01315
01316
01317
01318
01319
01320 XIMOL_EXPORT
01321 xostream& write_xml_decl(xostream& xos);
01322
01323
01324
01325
01326
01327
01328
01329
01330
01331 XIMOL_EXPORT
01332 xistream& read_xml_decl(xistream& xis, xstring& version_info, xstring& encoding_decl, bool & standalone_decl, int nb_read=0);
01333
01334
01335
01336
01337
01338
01339
01340
01341
01342 XIMOL_EXPORT
01343 xistream& read_xml_decl(xistream& xis, int nb_read=0);
01344
01345
01346
01347
01348
01349
01350
01351
01352
01353 XIMOL_EXPORT
01354 xostream& write_external_id(xostream& xos, const xstring& system_literal, const xstring& pub_id_literal=xstring());
01355
01356
01357
01358
01359
01360
01361
01362
01363
01364 XIMOL_EXPORT
01365 xistream& read_external_id(xistream& xis, xstring& system_literal, xstring& pub_id_literal);
01366
01367
01368
01369
01370
01371
01372
01373
01374
01375 XIMOL_EXPORT
01376 xostream& write_public_id(xostream& xos, const xstring& pub_id_literal);
01377
01378
01379
01380
01381
01382
01383
01384
01385
01386 XIMOL_EXPORT
01387 xistream& read_public_id(xistream& xis, xstring& pub_id_literal);
01388
01389
01390
01391
01392
01393
01394
01395
01396
01397 XIMOL_EXPORT
01398 xostream& write_notation_decl(xostream& xos, const xstring& name, const xstring& system_literal, const xstring& pub_id_literal);
01399
01400
01401
01402
01403
01404
01405
01406
01407
01408 XIMOL_EXPORT
01409 xistream& read_notation_decl(xistream& xis, xstring& name, xstring& system_literal, xstring& pub_id_literal, int nb_read=0);
01410
01411
01412
01413
01414
01415
01416
01417
01418
01419 XIMOL_EXPORT
01420 xistream& read_notation_decl(xistream& xis, int nb_read=0);
01421
01422
01423
01424
01425
01426
01427
01428
01429
01430 XIMOL_EXPORT
01431 xostream& write_pe_def(xostream& xos, const xstring& entity_value, const xstring& system_literal, const xstring& pub_id_literal);
01432
01433
01434
01435
01436
01437
01438
01439
01440
01441 XIMOL_EXPORT
01442 xistream& read_pe_def(xistream& xis, xstring& entity_value, xstring& system_literal, xstring& pub_id_literal);
01443
01444
01445
01446
01447
01448
01449
01450
01451
01452 XIMOL_EXPORT
01453 xostream& write_open_stag(xostream& xos, const xstring& name, const XIMOL_XML_NAMESPACE_PATH::attributes& att, const xstring& uri=xstring());
01454
01455
01456
01457
01458
01459
01460
01461
01462
01463 XIMOL_EXPORT
01464 xostream& write_open_stag(xostream& xos, const xstring& name, const xstring& uri = xstring());
01465
01466
01467
01468
01469
01470
01471
01472
01473
01474 XIMOL_EXPORT
01475 xostream& write_stag(xostream& xos, const xstring& name, const XIMOL_XML_NAMESPACE_PATH::attributes& att, const xstring& uri = xstring());
01476
01477
01478
01479
01480
01481
01482
01483
01484
01485 XIMOL_EXPORT
01486 xostream& write_stag(xostream& xos, const xstring& name);
01487
01488
01489
01490
01491
01492
01493
01494
01495
01496 XIMOL_EXPORT
01497 xostream& write_stag(xostream& xos, const xstring& name, const xstring& uri);
01498
01499
01500
01501
01502
01503
01504
01505
01506
01507 XIMOL_EXPORT
01508 xistream& read_open_stag(xistream& xis, xstring& name, XIMOL_XML_NAMESPACE_PATH::attributes& att, xstring& uri, int nb_read=0);
01509
01510
01511
01512
01513
01514
01515
01516
01517
01518 XIMOL_EXPORT
01519 xistream& read_open_stag(xistream& xis, xstring& name, xstring &uri, int nb_read=0);
01520
01521
01522
01523
01524
01525
01526
01527
01528
01529 XIMOL_EXPORT
01530 xistream& read_open_stag(xistream& xis, xstring& name, int nb_read=0);
01531
01532
01533
01534
01535
01536
01537
01538
01539
01540 XIMOL_EXPORT
01541 xistream& read_stag(xistream& xis, xstring& name, XIMOL_XML_NAMESPACE_PATH::attributes& att, xstring& uri, int nb_read=0);
01542
01543
01544
01545
01546
01547
01548
01549
01550
01551 XIMOL_EXPORT
01552 xistream& read_stag(xistream& xis, xstring& name, XIMOL_XML_NAMESPACE_PATH::attributes& att, int nb_read=0);
01553
01554
01555
01556
01557
01558
01559
01560
01561
01562 XIMOL_EXPORT
01563 xistream& read_stag(xistream& xis, xstring& name, xstring& uri, int nb_read=0);
01564
01565
01566
01567
01568
01569
01570
01571
01572
01573 XIMOL_EXPORT
01574 xistream& read_stag(xistream& xis, xstring& name, int nb_read=0);
01575
01576
01577
01578
01579
01580
01581
01582
01583
01584 XIMOL_EXPORT
01585 xostream& write_etag(xostream& xos, const xstring& name, const xstring& uri);
01586
01587
01588
01589
01590
01591
01592
01593
01594
01595 XIMOL_EXPORT
01596 xostream& write_etag(xostream& xos, const xstring& name);
01597
01598
01599
01600
01601
01602
01603
01604
01605
01606 XIMOL_EXPORT
01607 xostream& write_etag(xostream& xos);
01608
01609
01610
01611
01612
01613
01614
01615
01616
01617 XIMOL_EXPORT
01618 xistream& read_etag(xistream& xis, xstring& name, xstring& uri, int nb_read=0);
01619
01620
01621
01622
01623
01624
01625
01626
01627
01628 XIMOL_EXPORT
01629 xistream& read_etag(xistream& xis, xstring& name, int nb_read=0);
01630
01631
01632
01633
01634
01635
01636
01637
01638
01639 XIMOL_EXPORT
01640 xistream& read_etag(xistream& xis, int nb_read=0);
01641
01642
01643
01644
01645
01646
01647
01648
01649
01650 XIMOL_EXPORT
01651 xostream& write_ndata_decl(xostream& xos, const xstring& name);
01652
01653
01654
01655
01656
01657
01658
01659
01660
01661 XIMOL_EXPORT
01662 xistream& read_ndata_decl(xistream& xis, xstring& name, int nb_read=0);
01663
01664
01665
01666
01667
01668
01669
01670
01671
01672 XIMOL_EXPORT
01673 xostream& write_entity_def(xostream& xos, const xstring& entity_value, const xstring& system_literal, const xstring& pub_id_literal, const xstring& ndata_name);
01674
01675
01676
01677
01678
01679
01680
01681
01682
01683 XIMOL_EXPORT
01684 xistream& read_entity_def(xistream& xis, xstring& entity_value, xstring& system_literal, xstring& pub_id_literal, xstring& ndata_name);
01685
01686
01687
01688
01689
01690
01691
01692
01693
01694 XIMOL_EXPORT
01695 xostream& write_pe_decl(xostream& xos, const xstring& entity_name, const xstring& entity_value, const xstring& system_literal = L"", const xstring& pubid_literal = L"");
01696
01697
01698
01699
01700
01701
01702
01703
01704
01705 XIMOL_EXPORT
01706 xistream& read_pe_decl(xistream& xis, xstring& entity_name, xstring& entity_value, xstring& system_literal, xstring & pubid_literal, int nb_read=0);
01707
01708
01709
01710
01711
01712
01713
01714
01715
01716 XIMOL_EXPORT
01717 xistream& read_pe_decl(xistream& xis,int nb_read=0);
01718
01719
01720
01721
01722
01723
01724
01725
01726
01727 XIMOL_EXPORT
01728 xostream& write_ge_decl(xostream& xos, const xstring& entity_name, const xstring& entity_value, const xstring& system_literal = L"", const xstring& pubid_literal = L"", const xstring& ndata_name = L"");
01729
01730
01731
01732
01733
01734
01735
01736
01737
01738 XIMOL_EXPORT
01739 xistream& read_ge_decl(xistream& xis, xstring& entity_name, xstring& entity_value, xstring& system_literal, xstring & pubid_literal, xstring & ndata_name, int nb_read=0);
01740
01741
01742
01743
01744
01745
01746
01747
01748
01749 XIMOL_EXPORT
01750 xistream& read_ge_decl(xistream& xis,int nb_read=0);
01751
01752
01753
01754
01755
01756
01757
01758
01759
01760 XIMOL_EXPORT
01761 xistream& read_misc(xistream& xis);
01762
01763
01764
01765
01766
01767
01768
01769
01770
01771 XIMOL_EXPORT
01772 xostream& write_prolog(xostream& xos);
01773
01774
01775
01776
01777
01778
01779
01780
01781
01782 XIMOL_EXPORT
01783 size_t read_bom(xistream& xis);
01784
01785
01786
01787
01788 XIMOL_EXPORT
01789 xistream& read_prolog_question(xistream& xis, int nb_read=0);
01790
01791
01792
01793
01794 XIMOL_EXPORT
01795 xistream& read_prolog_exclamation(xistream& xis, int nb_read=0);
01796
01797
01798
01799
01800 XIMOL_EXPORT
01801 xistream& read_doctype_element(xistream& xis, int nb_read=0);
01802
01803
01804
01805
01806
01807
01808
01809
01810
01811 XIMOL_EXPORT
01812 xistream& read_doctype_decl(xistream& xis, int nb_read=0);
01813
01814
01815
01816
01817
01818
01819
01820
01821
01822 XIMOL_EXPORT
01823 xistream& read_prolog(xistream& xis);
01824
01825
01826
01827
01828
01829
01830
01831
01832
01833
01834 XIMOL_EXPORT
01835 xistream& read_element_decl(xistream& xis, int nb_read=0);
01836
01837
01838
01839
01840
01841
01842
01843
01844
01845
01846 XIMOL_EXPORT
01847 xistream& read_att_list_decl(xistream& xis, int nb_read=0);
01848
01849
01850
01851
01852
01853
01854
01855
01856
01857 XIMOL_EXPORT
01858 xistream& read_entity_decl(xistream& xis, int nb_read=0);
01859
01860 XIMOL_PARSER_END_NAMESPACE
01861
01862 #endif // #ifndef XIMOL_PARSER_UTILS_HPP_