Changeset 142 for trunk/src/helpers/textv_html.c
- Timestamp:
- Feb 21, 2002, 8:24:22 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/textv_html.c
r91 r142 175 175 */ 176 176 177 VOID AppendChar(PCOPYTARGET pct, // in/out: formatting buffer178 unsigned char c)177 static VOID AppendChar(PCOPYTARGET pct, // in/out: formatting buffer 178 unsigned char c) 179 179 { 180 180 // calculate ofs where to store next char … … 204 204 */ 205 205 206 VOID AppendString(PCOPYTARGET pct, // in/out: formatting buffer207 char *ach)206 static VOID AppendString(PCOPYTARGET pct, // in/out: formatting buffer 207 char *ach) 208 208 { 209 209 ULONG cbAppend = strlen(ach); … … 240 240 */ 241 241 242 VOID AppendLinebreakCheck(PCOPYTARGET pct)242 static VOID AppendLinebreakCheck(PCOPYTARGET pct) 243 243 { 244 244 if ((!pct->fPRE) && (pct->fNeedsLinebreak)) … … 267 267 */ 268 268 269 VOID AppendEscapeWith3Decimals(PCOPYTARGET pct, // in/out: formatting buffer270 char *ach,271 USHORT us)269 static VOID AppendEscapeWith3Decimals(PCOPYTARGET pct, // in/out: formatting buffer 270 char *ach, 271 USHORT us) 272 272 { 273 273 CHAR szDecimal[10]; … … 286 286 */ 287 287 288 VOID AppendEscapeWith4Decimals(PCOPYTARGET pct, // in/out: formatting buffer289 char *ach,290 USHORT us)288 static VOID AppendEscapeWith4Decimals(PCOPYTARGET pct, // in/out: formatting buffer 289 char *ach, 290 USHORT us) 291 291 { 292 292 CHAR szDecimal[10]; … … 314 314 */ 315 315 316 VOID StartList(PCOPYTARGET pct, // in/out: formatting buffer317 ULONG ulListType) // list type:318 // 0: unordered (UL)319 // 1: ordered (OL)320 // 2: definition lists (DL)316 static VOID StartList(PCOPYTARGET pct, // in/out: formatting buffer 317 ULONG ulListType) // list type: 318 // 0: unordered (UL) 319 // 1: ordered (OL) 320 // 2: definition lists (DL) 321 321 { 322 322 PLISTDESC pListDesc; … … 361 361 */ 362 362 363 VOID StopList(PCOPYTARGET pct)363 static VOID StopList(PCOPYTARGET pct) 364 364 { 365 365 if (pct->ulListLevel) … … 414 414 */ 415 415 416 VOID TagTITLE(PCOPYTARGET pct)416 static VOID TagTITLE(PCOPYTARGET pct) 417 417 { 418 418 // pSource currently points to <TITLE tag … … 447 447 */ 448 448 449 VOID TagP(PCOPYTARGET pct)449 static VOID TagP(PCOPYTARGET pct) 450 450 { 451 451 // append newline: … … 464 464 } 465 465 466 VOID TagBR(PCOPYTARGET pct)466 static VOID TagBR(PCOPYTARGET pct) 467 467 { 468 468 AppendChar(pct, … … 482 482 } 483 483 484 VOID TagPRE(PCOPYTARGET pct)484 static VOID TagPRE(PCOPYTARGET pct) 485 485 { 486 486 // start of PRE tag: … … 507 507 } 508 508 509 VOID TagXPRE(PCOPYTARGET pct)509 static VOID TagXPRE(PCOPYTARGET pct) 510 510 { 511 511 pct->fPRE = FALSE; … … 527 527 } 528 528 529 VOID TagH1(PCOPYTARGET pct)529 static VOID TagH1(PCOPYTARGET pct) 530 530 { 531 531 pct->fNeedsLinebreak = TRUE; … … 537 537 } 538 538 539 VOID TagXH1(PCOPYTARGET pct)539 static VOID TagXH1(PCOPYTARGET pct) 540 540 { 541 541 AppendString(pct, … … 548 548 } 549 549 550 VOID TagH2(PCOPYTARGET pct)550 static VOID TagH2(PCOPYTARGET pct) 551 551 { 552 552 pct->fNeedsLinebreak = TRUE; … … 558 558 } 559 559 560 VOID TagXH2(PCOPYTARGET pct)560 static VOID TagXH2(PCOPYTARGET pct) 561 561 { 562 562 AppendString(pct, … … 569 569 } 570 570 571 VOID TagH3(PCOPYTARGET pct)571 static VOID TagH3(PCOPYTARGET pct) 572 572 { 573 573 pct->fNeedsLinebreak = TRUE; … … 579 579 } 580 580 581 VOID TagXH3(PCOPYTARGET pct)581 static VOID TagXH3(PCOPYTARGET pct) 582 582 { 583 583 AppendString(pct, … … 590 590 } 591 591 592 VOID TagH4(PCOPYTARGET pct)592 static VOID TagH4(PCOPYTARGET pct) 593 593 { 594 594 pct->fNeedsLinebreak = TRUE; … … 600 600 } 601 601 602 VOID TagXH4(PCOPYTARGET pct)602 static VOID TagXH4(PCOPYTARGET pct) 603 603 { 604 604 AppendString(pct, … … 611 611 } 612 612 613 VOID TagH5(PCOPYTARGET pct)613 static VOID TagH5(PCOPYTARGET pct) 614 614 { 615 615 pct->fNeedsLinebreak = TRUE; … … 621 621 } 622 622 623 VOID TagXH5(PCOPYTARGET pct)623 static VOID TagXH5(PCOPYTARGET pct) 624 624 { 625 625 AppendString(pct, … … 632 632 } 633 633 634 VOID TagH6(PCOPYTARGET pct)634 static VOID TagH6(PCOPYTARGET pct) 635 635 { 636 636 pct->fNeedsLinebreak = TRUE; … … 642 642 } 643 643 644 VOID TagXH6(PCOPYTARGET pct)644 static VOID TagXH6(PCOPYTARGET pct) 645 645 { 646 646 AppendString(pct, … … 653 653 } 654 654 655 VOID TagUL(PCOPYTARGET pct)655 static VOID TagUL(PCOPYTARGET pct) 656 656 { 657 657 StartList(pct, … … 659 659 } 660 660 661 VOID TagXUL(PCOPYTARGET pct)661 static VOID TagXUL(PCOPYTARGET pct) 662 662 { 663 663 StopList(pct); 664 664 } 665 665 666 VOID TagOL(PCOPYTARGET pct)666 static VOID TagOL(PCOPYTARGET pct) 667 667 { 668 668 StartList(pct, … … 670 670 } 671 671 672 VOID TagXOL(PCOPYTARGET pct)672 static VOID TagXOL(PCOPYTARGET pct) 673 673 { 674 674 StopList(pct); 675 675 } 676 676 677 VOID TagLI(PCOPYTARGET pct)677 static VOID TagLI(PCOPYTARGET pct) 678 678 { 679 679 PLISTDESC pListDesc; … … 709 709 } 710 710 711 VOID TagDL(PCOPYTARGET pct)711 static VOID TagDL(PCOPYTARGET pct) 712 712 { 713 713 StartList(pct, … … 715 715 } 716 716 717 VOID TagXDL(PCOPYTARGET pct)717 static VOID TagXDL(PCOPYTARGET pct) 718 718 { 719 719 StopList(pct); … … 721 721 } 722 722 723 VOID TagDT(PCOPYTARGET pct)723 static VOID TagDT(PCOPYTARGET pct) 724 724 { 725 725 pct->fNeedsLinebreak = TRUE; … … 727 727 } 728 728 729 VOID TagDD(PCOPYTARGET pct)729 static VOID TagDD(PCOPYTARGET pct) 730 730 { 731 731 pct->fNeedsLinebreak = TRUE; … … 736 736 } 737 737 738 VOID TagTR(PCOPYTARGET pct)738 static VOID TagTR(PCOPYTARGET pct) 739 739 { 740 740 pct->fNeedsLinebreak = TRUE; 741 741 } 742 742 743 VOID TagB(PCOPYTARGET pct)743 static VOID TagB(PCOPYTARGET pct) 744 744 { 745 745 AppendString(pct, … … 747 747 } 748 748 749 VOID TagXB(PCOPYTARGET pct)749 static VOID TagXB(PCOPYTARGET pct) 750 750 { 751 751 AppendString(pct, … … 753 753 } 754 754 755 VOID TagI(PCOPYTARGET pct)755 static VOID TagI(PCOPYTARGET pct) 756 756 { 757 757 AppendString(pct, … … 759 759 } 760 760 761 VOID TagXI(PCOPYTARGET pct)761 static VOID TagXI(PCOPYTARGET pct) 762 762 { 763 763 AppendString(pct, … … 765 765 } 766 766 767 VOID TagU(PCOPYTARGET pct)767 static VOID TagU(PCOPYTARGET pct) 768 768 { 769 769 AppendString(pct, … … 771 771 } 772 772 773 VOID TagXU(PCOPYTARGET pct)773 static VOID TagXU(PCOPYTARGET pct) 774 774 { 775 775 AppendString(pct, … … 777 777 } 778 778 779 VOID TagSTRIKE(PCOPYTARGET pct)779 static VOID TagSTRIKE(PCOPYTARGET pct) 780 780 { 781 781 AppendString(pct, … … 783 783 } 784 784 785 VOID TagXSTRIKE(PCOPYTARGET pct)785 static VOID TagXSTRIKE(PCOPYTARGET pct) 786 786 { 787 787 AppendString(pct, … … 789 789 } 790 790 791 VOID TagCODE(PCOPYTARGET pct)791 static VOID TagCODE(PCOPYTARGET pct) 792 792 { 793 793 AppendEscapeWith3Decimals(pct, … … 796 796 } 797 797 798 VOID TagXCODE(PCOPYTARGET pct)798 static VOID TagXCODE(PCOPYTARGET pct) 799 799 { 800 800 AppendEscapeWith3Decimals(pct, … … 803 803 } 804 804 805 VOID TagA(PCOPYTARGET pct)805 static VOID TagA(PCOPYTARGET pct) 806 806 { 807 807 CHAR szAnchor[10]; … … 875 875 } 876 876 877 VOID TagXA(PCOPYTARGET pct)877 static VOID TagXA(PCOPYTARGET pct) 878 878 { 879 879 if (pct->fInLink) … … 899 899 */ 900 900 901 PFNPROCESSTAG FindTagProcessor(PSZ pszTag)901 static PFNPROCESSTAG FindTagProcessor(PSZ pszTag) 902 902 { 903 903 PFNPROCESSTAG pProcessor = NULL; … … 1270 1270 */ 1271 1271 1272 VOID HandleTag(PCOPYTARGET pct)1272 static VOID HandleTag(PCOPYTARGET pct) 1273 1273 { 1274 1274 PSZ pStartOfTag = pct->pSource; … … 1425 1425 */ 1426 1426 1427 unsigned char ConvertEscape(PSZ pszTag)1427 static unsigned char ConvertEscape(PSZ pszTag) 1428 1428 { 1429 1429 CHAR c0, c1; … … 1882 1882 */ 1883 1883 1884 VOID HandleEscape(PCOPYTARGET pct)1884 static VOID HandleEscape(PCOPYTARGET pct) 1885 1885 { 1886 1886 // ampersand:
Note:
See TracChangeset
for help on using the changeset viewer.