A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Add lists comparison to DevToys 2.0 (#1068)
Antjac55e6c7af01b5
diff --git a/assets/font/DevToys-Tools-Icons.afm b/assets/font/DevToys-Tools-Icons.afmnew file mode 100644index 000000000..f201045e3--- /dev/null+++ b/assets/font/DevToys-Tools-Icons.afm@@ -0,0 +1,57 @@+StartFontMetrics 2.0+Comment Generated by FontForge 20220308+Comment Creation Date: Wed Feb 14 16:00:09 2024+FontName DevToys-Tools-Icons+FullName DevToys-Tools-Icons+FamilyName DevToys-Tools-Icons+Weight Regular+Notice (Copyright (c) 2022)+ItalicAngle 0+IsFixedPitch true+UnderlinePosition 0+UnderlineThickness 0+Version 001.000+EncodingScheme FontSpecific+FontBBox 23 9 981 991+XHeight 946+StartCharMetrics 38+C -1 ; WX 1000 ; N Base64EncoderDecoder ; B 70 60 940 930 ;+C -1 ; WX 1000 ; N ColorBlindnessSimulator ; B 70 176 940 813 ;+C -1 ; WX 1000 ; N Base64ImageEncoderDecoder ; B 77 71 947 940 ;+C -1 ; WX 1000 ; N Converters ; B 43 129 960 879 ;+C -1 ; WX 1000 ; N CronParser ; B 64 61 945 942 ;+C -1 ; WX 1000 ; N EncodersDecoders ; B 25 101 981 907 ;+C -1 ; WX 1000 ; N UuidGenerator ; B 194 77 811 921 ;+C -1 ; WX 1000 ; N HtmlEncoderDecoder ; B 68 9 932 991 ;+C -1 ; WX 1000 ; N JsonFormatter ; B 59 187 934 839 ;+C -1 ; WX 1000 ; N JsonYaml ; B 59 143 940 874 ;+C -1 ; WX 1000 ; N JwtDecoder ; B 68 76 936 943 ;+C -1 ; WX 1000 ; N LoremIpsumGenerator ; B 200 113 797 900 ;+C -1 ; WX 1000 ; N MarkdownPreview ; B 69 215 944 772 ;+C -1 ; WX 1000 ; N RegexTester ; B 42 141 962 877 ;+C -1 ; WX 1000 ; N SqlFormatter ; B 154 50 860 952 ;+C -1 ; WX 1000 ; N TextDiff ; B 168 65 842 942 ;+C -1 ; WX 1000 ; N XMLValidator ; B 135 51 865 949 ;+C -1 ; WX 1000 ; N AllTools ; B 84 57 935 969 ;+C -1 ; WX 1000 ; N NumberBaseConverter ; B 64 54 934 924 ;+C -1 ; WX 1000 ; N Timestamp ; B 67 57 934 924 ;+C -1 ; WX 1000 ; N GZipEncoderDecoder ; B 59 123 919 875 ;+C -1 ; WX 1000 ; N UrlEncoderDecoder ; B 53 261 941 705 ;+C -1 ; WX 1000 ; N XmlFormatter ; B 56 84 960 876 ;+C -1 ; WX 1000 ; N Formatters ; B 68 204 966 824 ;+C -1 ; WX 1000 ; N ChecksumGenerator ; B 39 28 962 952 ;+C -1 ; WX 1000 ; N HashGenerator ; B 35 55 922 979 ;+C -1 ; WX 1000 ; N Generators ; B 49 94 940 897 ;+C -1 ; WX 1000 ; N ImageConverter ; B 58 71 919 932 ;+C -1 ; WX 1000 ; N PngJpgCompressor ; B 59 59 929 929 ;+C -1 ; WX 1000 ; N GraphicTools ; B 39 39 950 950 ;+C -1 ; WX 1000 ; N StringEscapeUnescape ; B 39 157 943 835 ;+C -1 ; WX 1000 ; N StringUtilities ; B 100 23 907 947 ;+C -1 ; WX 1000 ; N TextTools ; B 32 66 923 959 ;+C -1 ; WX 1000 ; N Settings ; B 23 11 957 989 ;+C -1 ; WX 1000 ; N ColorPicker ; B 107 126 876 877 ;+C -1 ; WX 1000 ; N Certificate ; B 55 101 917 860 ;+C -1 ; WX 1000 ; N PasswordGenerator ; B 83 200 917 785 ;+C -1 ; WX 1000 ; N ListCompare ; B 200 106 811 901 ;+EndCharMetrics+EndFontMetricsdiff --git a/assets/font/DevToys-Tools-Icons.sfd b/assets/font/DevToys-Tools-Icons.sfdindex a7d4bc0c9..c42303a0e 100644--- a/assets/font/DevToys-Tools-Icons.sfd+++ b/assets/font/DevToys-Tools-Icons.sfd@@ -22,7 +22,7 @@ OS2Version: 0OS2_WeightWidthSlopeOnly: 0OS2_UseTypoMetrics: 1CreationTime: 1642371451-ModificationTime: 1688570565+ModificationTime: 1707922798PfmFamily: 17TTFWeight: 400TTFWidth: 5@@ -51,16 +51,22 @@ NameList: AGL For New FontsDisplaySize: -48AntiAlias: 1FitToEm: 0-WinInfo: 0 33 12+WinInfo: 0 52 19BeginPrivate: 0EndPrivate+Grid+-791 1536 m 0+ -791 -512 l 1024+EndSplineSetTeXData: 1 0 0 346030 173015 115343 0 1048576 115343 783286 444596 497025 792723 393216 433062 380633 303038 157286 324010 404750 52429 2506097 1059062 262144-BeginChars: 310 37+BeginChars: 310 38StartChar: Base64EncoderDecoderEncoding: 256 256 0Width: 1024-Flags: HW+Flags: W+HStem: 62 82<156.195 869.671> 335 79<345.064 421.936> 454 80<393 421.936 627 667> 870 82<164.329 869.671>+VStem: 72 82<145.837 859.671> 262 81<414.242 452.477> 424 81<414.121 453.9> 546 81<534 652> 667 82<335 454 534 653> 880 82<154.329 859.671>LayerCount: 2ForeSplineSet@@ -133,7 +139,8 @@ EndCharStartChar: ColorBlindnessSimulatorEncoding: 257 257 1Width: 1024-Flags: H+HStem: 221 59<392.649 627.276> 330 59<473.236 585.578> 625 59<448.422 555.671> 734 59<406.724 623.004>+VStem: 340 59<457.621 575.578> 635 59<438.422 545.671>LayerCount: 2ForeSplineSet@@ -222,11 +229,12 @@ EndCharStartChar: Base64ImageEncoderDecoderEncoding: 258 258 2Width: 1024-Flags: H+HStem: 73 89<566.819 731.905 732.095 878.181> 73 80<170.33 477> 393 100<687.355 758.297> 524 80<363.291 438.675> 645 80<409 438.675 643 684> 881 81<170.33 876.671>+VStem: 79 81<164.329 870.67> 279 82<606.358 644.651> 441 81<605.179 644.565> 477 207<319.529 389.645> 563 80<725 845> 684 80<524 645 725 847> 762 206<320.367 388.845> 888 80<493 870.67>LayerCount: 2ForeSplineSet-409 849 m 1+409 849 m 1x3f80470 796 l 1409 725 l 1421 725 l 2@@ -236,8 +244,8 @@ SplineSet326 524 279 569 279 624 c 2279 637 l 2279 678 295 716 321 747 c 2- 409 849 l 1-684 847 m 1+ 409 849 l 1x3f80+684 847 m 1x3f30764 847 l 1764 524 l 1684 524 l 1@@ -247,13 +255,13 @@ SplineSet643 845 l 1643 725 l 1684 725 l 1- 684 847 l 1+ 684 847 l 1x3f30363 645 m 1363 643 361 639 361 637 c 2361 624 l 2361 613 370 604 381 604 c 2421 604 l 2- 432 604 441 613 441 624 c 0+ 432 604 441 613 441 624 c 0x3f80441 635 432 645 421 645 c 2363 645 l 179 855 m 2@@ -265,10 +273,10 @@ SplineSet968 420 l 2969 416 969 411 969 407 c 2969 159 l 2- 969 112 929 73 882 73 c 2- 862 73 l 1+ 969 112 929 73 882 73 c 2x7f24+ 862 73 l 1xbf24563 73 l 1- 184 73 l 2+ 184 73 l 2x7f24156 73 132 83 111 104 c 090 125 79 150 79 178 c 279 855 l 2@@ -280,7 +288,7 @@ SplineSet177 157 186 153 195 153 c 2477 153 l 1477 155 477 157 477 159 c 2- 477 407 l 2+ 477 407 l 2x7f44477 454 516 493 563 493 c 2882 493 l 2884 493 886 493 888 493 c 1@@ -291,9 +299,9 @@ SplineSet722 393 m 0701 393 684 376 684 355 c 0684 334 701 316 722 316 c 0- 743 316 762 334 762 355 c 0+ 743 316 762 334 762 355 c 0x3f48762 376 743 393 722 393 c 0-867 162 m 2+867 162 m 2xbf877 162 882 172 878 181 c 2816 289 l 2810 298 797 298 793 289 c 2@@ -305,7 +313,7 @@ SplineSet722 162 l 2726 162 730 164 732 166 c 1734 164 738 162 742 162 c 2- 867 162 l 2+ 867 162 l 2xbfEndSplineSetValidated: 1EndChar@@ -313,7 +321,8 @@ EndCharStartChar: ConvertersEncoding: 259 259 3Width: 1024-Flags: H+HStem: 133 64<205.214 822.647> 346 64<323.649 693.458> 484 65<323.649 565.458> 623 64<323.649 693.458> 836 64<205.214 822.647>+VStem: 130 64<207.353 471 645.649 825.647> 834 63<207.353 387.589 562 825.647>LayerCount: 2ForeSplineSet@@ -398,9 +407,8 @@ EndCharStartChar: CronParserEncoding: 260 260 4Width: 1024-Flags: H-HStem: 63 90<384.082 649.993> 874 90<384.082 649.993>-VStem: 66 90<381.082 646.993> 472 90<542.064 779.895> 877 90<381.082 646.993>+HStem: 63 90<393.471 640.429> 874 90<393.471 640.429>+VStem: 66 90<390.471 637.429> 472 90<542 777.287> 877 90<390.471 637.429>LayerCount: 2ForeSplineSet@@ -433,24 +441,25 @@ EndCharStartChar: EncodersDecodersEncoding: 261 261 5Width: 1024-Flags: H+HStem: 104 77<113.588 196.412 834.026 916.743> 362 74<312.385 335 519.382 542> 387 77<113.588 196.412 834.026 916.743> 568 77<345.257 428.358> 826 74<29.368 52 570.351 593 802.333 825> 851 77<345.257 428.358>+VStem: 26 78<191.721 376.279> 104 77<571.745 836> 206 78<191.721 376.279> 258 77<654.828 840.279> 387 77<107.938 372> 438 77<654.828 840.279> 592 77<107.938 372> 644 77<571.745 836> 748 77<191.721 376.279> 875 77<572.155 836> 927 77<191.721 376.279>LayerCount: 2ForeSplineSet-142 568 m 0+142 568 m 0x9502121 568 104 585 104 606 c 2104 836 l 178 827 l 2- 74 826 69 826 65 826 c 0- 49 826 33 835 28 851 c 0+ 74 826 69 826 65 826 c 0x9902+ 49 826 33 835 28 851 c 0x950227 855 27 860 27 864 c 0- 27 880 36 895 52 900 c 2+ 27 880 36 895 52 900 c 2x9902129 926 l 2133 927 138 928 142 928 c 0150 928 159 926 165 921 c 0175 913 181 902 181 889 c 2181 606 l 2- 181 585 163 568 142 568 c 0+ 181 585 163 568 142 568 c 0x9502425 104 m 0404 104 387 122 387 143 c 2387 372 l 1@@ -463,7 +472,7 @@ SplineSet417 464 420 465 424 465 c 0433 465 441 462 448 457 c 0458 449 464 439 464 426 c 2- 464 143 l 2+ 464 143 l 2xd062464 122 446 104 425 104 c 0631 104 m 0610 104 592 122 592 143 c 2@@ -477,70 +486,70 @@ SplineSet623 464 626 465 630 465 c 0639 465 647 462 654 457 c 0664 449 669 439 669 426 c 2- 669 143 l 2+ 669 143 l 2xd00a669 122 652 104 631 104 c 0683 568 m 0662 568 644 585 644 606 c 2644 836 l 1617 827 l 2- 613 826 609 826 605 826 c 0- 589 826 574 835 569 851 c 0+ 613 826 609 826 605 826 c 0x9806+ 589 826 574 835 569 851 c 0x9406568 855 568 860 568 864 c 0- 568 880 577 895 593 900 c 2+ 568 880 577 895 593 900 c 2x9806671 926 l 2675 927 679 928 683 928 c 0691 928 700 926 706 921 c 0716 913 721 902 721 889 c 2- 721 606 l 2+ 721 606 l 2x9406721 585 704 568 683 568 c 0915 568 m 0894 568 875 585 875 606 c 2875 836 l 1849 827 l 2- 845 826 840 826 836 826 c 0- 820 826 806 835 801 851 c 0+ 845 826 840 826 836 826 c 0x9803+ 820 826 806 835 801 851 c 0x9403800 855 800 860 800 864 c 0- 800 880 809 895 825 900 c 2+ 800 880 809 895 825 900 c 2x9803902 926 l 2906 927 911 928 915 928 c 0923 928 931 926 937 921 c 0947 913 952 902 952 889 c 2- 952 606 l 2+ 952 606 l 2x9403952 585 936 568 915 568 c 0875 104 m 0804 104 748 162 748 233 c 2748 335 l 2- 748 406 804 464 875 464 c 0+ 748 406 804 464 875 464 c 0xb003946 464 1004 406 1004 335 c 2- 1004 233 l 2+ 1004 233 l 2xb002801004 162 946 104 875 104 c 0875 387 m 0847 387 825 363 825 335 c 2825 233 l 2- 825 205 847 181 875 181 c 0+ 825 205 847 181 875 181 c 0xb003903 181 927 205 927 233 c 2- 927 335 l 2+ 927 335 l 2xb00280927 363 903 387 875 387 c 0-387 568 m 0+387 568 m 0x9422316 568 258 625 258 696 c 2258 799 l 2- 258 870 316 928 387 928 c 0+ 258 870 316 928 387 928 c 0x9462458 928 515 870 515 799 c 2- 515 696 l 2- 515 625 458 568 387 568 c 0+ 515 696 l 2x9412+ 515 625 458 568 387 568 c 0x9422387 851 m 0359 851 335 827 335 799 c 2335 696 l 2- 335 668 359 645 387 645 c 0+ 335 668 359 645 387 645 c 0x9462415 645 438 668 438 696 c 2- 438 799 l 2+ 438 799 l 2x9412438 827 415 851 387 851 c 0155 104 m 084 104 26 162 26 233 c 226 335 l 226 406 84 464 155 464 c 0226 464 284 406 284 335 c 2- 284 233 l 2+ 284 233 l 2xb282284 162 226 104 155 104 c 0155 387 m 0127 387 104 363 104 335 c 2@@ -556,11 +565,12 @@ EndCharStartChar: UuidGeneratorEncoding: 262 262 6Width: 1024-Flags: H+HStem: 79 46<232 321 374 465 601 722.193> 424 45<232 321 374 465 601 731.121> 541 46<304.985 428.847 620.686 744.411> 721 44<349 429> 895 48<311.165 474.373>+VStem: 199 56<639.866 834.277> 321 53<125 424> 429 52<591.134 721> 549 52<125 424 606.539 937> 767 53<611.801 937> 774 56<177.443 379.372>LayerCount: 2ForeSplineSet-385 943 m 0+385 943 m 0xff80403 943 418 941 434 938 c 0450 935 465 930 480 924 c 1480 870 l 1@@ -594,7 +604,7 @@ SplineSet199 771 204 799 213 824 c 0222 849 234 870 250 888 c 0267 906 286 920 309 929 c 0- 332 938 358 943 385 943 c 0+ 332 938 358 943 385 943 c 0xff80549 937 m 1601 937 l 1601 679 l 2@@ -606,7 +616,7 @@ SplineSet760 628 767 651 767 680 c 2767 937 l 1820 937 l 1- 820 683 l 2+ 820 683 l 2xffc0820 662 816 642 810 624 c 0804 607 796 593 784 580 c 0772 567 758 558 741 552 c 0@@ -632,7 +642,7 @@ SplineSet549 469 m 1649 469 l 2710 469 756 454 785 422 c 0- 815 390 830 342 830 278 c 0+ 815 390 830 342 830 278 c 0xffa0830 259 829 241 826 224 c 0823 207 818 192 812 177 c 0806 162 797 149 787 136 c 0@@ -644,8 +654,8 @@ SplineSet601 424 m 1601 125 l 1641 125 l 2- 730 125 774 175 774 275 c 0- 774 302 772 326 767 345 c 0+ 730 125 774 175 774 275 c 0xffa0+ 774 302 772 326 767 345 c 0xffc0762 364 753 379 743 391 c 0733 403 719 411 703 416 c 0687 421 668 424 647 424 c 2@@ -657,7 +667,7 @@ EndCharStartChar: HtmlEncoderDecoderEncoding: 263 263 7Width: 1024-Flags: H+HStem: 494 111<365 648> 718 111<355 779> 940 74<152 874>LayerCount: 2ForeSplineSet@@ -700,11 +710,12 @@ EndCharStartChar: JsonFormatterEncoding: 264 264 8Width: 1024-Flags: H+HStem: 192 58<214.615 274 743 795.433> 217 26<449 488.317> 490 70<61 95.6334 923.33 956> 584 110<474.425 546.576> 800 59<219.613 274 744 804.152>+VStem: 459 104<316.471 391.389 600.471 677.529> 511 52<267.489 299>LayerCount: 2ForeSplineSet-274 859 m 1+274 859 m 1xb8274 800 l 1250 800 232 795 219 785 c 0206 775 198 756 193 730 c 0@@ -740,31 +751,31 @@ SplineSet162 816 169 823 176 829 c 0183 835 192 841 201 845 c 0210 849 221 853 234 855 c 0- 247 857 259 859 274 859 c 1+ 247 857 259 859 274 859 c 1xb8560 639 m 0560 623 556 610 547 600 c 0539 590 527 584 511 584 c 0496 584 483 590 474 600 c 0465 610 461 623 461 639 c 0461 655 465 668 474 678 c 0- 483 688 495 694 511 694 c 0+ 483 688 495 694 511 694 c 0x3a526 694 538 688 547 678 c 0556 668 560 655 560 639 c 0449 218 m 2449 243 l 1465 243 479 247 492 259 c 0- 505 271 511 283 511 299 c 1+ 505 271 511 283 511 299 c 1x7a496 299 482 306 473 316 c 0- 464 326 459 339 459 355 c 0+ 464 326 459 339 459 355 c 0x7c459 371 464 384 473 394 c 0- 482 404 495 411 511 411 c 0+ 482 404 495 411 511 411 c 0x7a526 411 539 405 548 392 c 0557 379 563 364 563 346 c 0563 326 558 307 550 287 c 0542 267 531 250 516 237 c 0- 501 224 486 217 470 217 c 0+ 501 224 486 217 470 217 c 0x7c460 217 452 217 449 218 c 2-743 192 m 1+743 192 m 1xb8743 250 l 1766 250 784 256 796 265 c 0808 274 817 290 823 314 c 0@@ -802,7 +813,7 @@ SplineSet873 249 866 240 858 231 c 0851 223 840 215 830 210 c 0820 205 808 199 793 196 c 0- 778 193 761 192 743 192 c 1+ 778 193 761 192 743 192 c 1xb8EndSplineSetValidated: 1EndChar@@ -810,7 +821,8 @@ EndCharStartChar: JsonYamlEncoding: 265 265 9Width: 1024-Flags: H+HStem: 147 68<217.33 874.67> 351 68<353.33 568.67> 487 67<353.33 670.671> 622 68<353.33 670.671> 825 69<149.33 805.671>+VStem: 138 69<226.33 608> 817 68<433 814.67>LayerCount: 2ForeSplineSet@@ -908,17 +920,17 @@ EndCharStartChar: JwtDecoderEncoding: 266 272 10Width: 1024-Flags: H+VStem: 441 123<712 965> 465 122<78 330>LayerCount: 2ForeSplineSet-680 416 m 1+680 416 m 1x80834 206 l 1736 134 l 1587 338 l 1587 78 l 1465 78 l 1- 465 330 l 1+ 465 330 l 1x40312 120 l 1214 191 l 1363 396 l 1@@ -942,7 +954,7 @@ SplineSet710 534 l 1958 454 l 1921 338 l 1- 680 416 l 1+ 680 416 l 1x80672 418 m 1630 497 l 1703 531 l 1@@ -951,7 +963,7 @@ SplineSet661 640 l 1574 623 l 1564 704 l 1- 564 703 l 1+ 564 703 l 1x80503 639 l 1447 698 l 1447 697 l 1@@ -978,31 +990,32 @@ EndCharStartChar: LoremIpsumGeneratorEncoding: 267 273 11Width: 1024-Flags: H+HStem: 116 82<296 606> 806 115<717.563 802.219>+VStem: 205 91<198 887> 701 115<822.472 904.527> 713 87<116 667>LayerCount: 2ForeSplineSet-606 116 m 1+606 116 m 1xe0205 116 l 1205 887 l 1296 887 l 1296 198 l 1606 198 l 1- 606 116 l 1+ 606 116 l 1xe0758 806 m 0742 806 729 812 717 822 c 0705 832 701 847 701 863 c 0701 879 705 895 717 905 c 0729 917 742 921 758 921 c 0774 921 786 917 798 905 c 0- 810 895 816 879 816 863 c 0+ 810 895 816 879 816 863 c 0xf0816 847 810 836 798 824 c 0786 812 774 806 758 806 c 0-800 116 m 1+800 116 m 1xe8713 116 l 1713 667 l 1800 667 l 1- 800 116 l 1+ 800 116 l 1xe8EndSplineSetValidated: 1EndChar@@ -1010,11 +1023,13 @@ EndCharStartChar: MarkdownPreviewEncoding: 268 274 12Width: 1024-Flags: H+HStem: 221 61<142.734 895.127> 363 285<225.078 289.922 462.846 528.124 686.625 756.5> 729 61<142.734 895.127>+VStem: 71 62<291.873 719.127> 214 81<368.078 552> 458 81<368.078 541> 620 203<437.953 503.668> 681 82<505 642.922> 905 61<291.873 719.127>+CounterMasks: 1 e0LayerCount: 2ForeSplineSet-184 790 m 2+184 790 m 2xfc80854 790 l 2916 790 966 740 966 678 c 2966 333 l 2@@ -1022,7 +1037,7 @@ SplineSet184 221 l 2122 221 71 271 71 333 c 271 678 l 2- 71 740 122 790 184 790 c 2+ 71 740 122 790 184 790 c 2xfc80184 729 m 2155 729 133 707 133 678 c 2133 333 l 2@@ -1054,7 +1069,7 @@ SplineSet214 623 238 648 268 648 c 2722 648 m 0744 648 763 629 763 607 c 2- 763 505 l 1+ 763 505 l 1xfd80792 505 l 2811 505 823 489 823 474 c 0823 467 822 460 816 454 c 2@@ -1062,10 +1077,10 @@ SplineSet741 366 732 363 722 363 c 0712 363 702 366 695 375 c 2628 454 l 2- 622 460 620 467 620 474 c 0+ 622 460 620 467 620 474 c 0xfe80620 489 632 505 651 505 c 2681 505 l 1- 681 607 l 2+ 681 607 l 2xfd80681 629 700 648 722 648 c 0EndSplineSetValidated: 1@@ -1074,7 +1089,8 @@ EndCharStartChar: RegexTesterEncoding: 269 275 13Width: 1024-Flags: H+HStem: 285 142<296.887 398.969>+VStem: 44 75<351.037 690.375> 278 141<304.711 407.795> 608 47<475 603.485 674.281 804> 908 77<346.56 691.062>LayerCount: 2ForeSplineSet@@ -1195,7 +1211,8 @@ EndCharStartChar: SqlFormatterEncoding: 270 276 14Width: 1024-Flags: H+HStem: 52 53<211.49 826.392> 342 53<213.188 824.812> 632 53<213.189 824.811> 921 53<211.262 824.533>+VStem: 158 53<105.041 342 395 632 685.083 919.533> 827 53<105.041 341.917 395 631.686 686.467 919.533>LayerCount: 2ForeSplineSet@@ -1301,7 +1318,8 @@ EndCharStartChar: TextDiffEncoding: 271 277 15Width: 1024-Flags: H+HStem: 67 70<249.188 408.858 483 552 627.143 787.858> 205 70<483 552> 343 69<489.188 545.812> 481 69<489.188 545.812> 619 69<489.188 545.812> 756 70<483 552> 894 70<247.142 408.812 483 552 627.19 786.811>+VStem: 173 69<143.189 889.858> 483 69<67 137 205 275 343 405.812 487.188 543.812 625.188 688 756 826 894 964> 794 68<141.142 887.811>LayerCount: 2ForeSplineSet@@ -1453,7 +1471,8 @@ EndCharStartChar: XMLValidatorEncoding: 272 278 16Width: 1024-Flags: H+HStem: 53 1<140 884> 56 35<176 177 178 849> 561 1<243 244 580 581> 598 1<243 244 580 581> 661 1<243 503> 698 1<243 244 502 503> 702 34<687 826> 763 1<243 529> 801 1<243 244 527 529> 933 35<176 177 178 652 653 654> 970 1<140 142>+VStem: 139 1<54 970> 177 1<92 932> 242 1<562 598 662 698 764 801> 503 1<662 698> 581 2<562 598> 652 1<701 932> 849 33<91 702> 884 1<54 726>LayerCount: 2ForeSplineSet@@ -1574,7 +1593,9 @@ EndCharStartChar: AllToolsEncoding: 273 279 17Width: 1024-Flags: HW+Flags: W+HStem: 59 62<157.283 357.717 687.281 892.498> 402 62<429.208 614.431> 930 62<485.116 556.946>+VStem: 87 62<130.283 623.625> 368 59<130.283 400.014> 617 62<130.283 398.949> 895 62<122.039 623.625>LayerCount: 2ForeSplineSet@@ -1638,7 +1659,8 @@ EndCharStartChar: NumberBaseConverterEncoding: 274 280 18Width: 1024-Flags: H+HStem: 56 64<165.625 857.375> 374 63<267.282 341 420 562 641 722.718> 565 63<299.283 381 460 602 681 755.717> 882 64<164.5 857.655>+VStem: 66 64<154.5 847.5> 892 64<155.125 846.875>LayerCount: 2ForeSplineSet@@ -1734,11 +1756,12 @@ EndCharStartChar: TimestampEncoding: 275 281 19Width: 1024-Flags: H+HStem: 59 133<491.329 543.043> 258 66<424.164 600.594> 436 66<512 590.67> 470 65<70.7847 195.717 829.283 953.917> 680 66<424.164 600.594>+VStem: 189 113<222.781 249.219 755 780.938> 268 66<414.702 589.298> 447 65<502 624.67> 478 69<65.2827 188.913 820.236 937.717> 691 66<414.702 589.298>LayerCount: 2ForeSplineSet-512 946 m 0+512 946 m 0xc940520 946 528 944 535 938 c 0542 932 544 924 544 916 c 2547 847 l 2@@ -1746,9 +1769,9 @@ SplineSet530 817 522 814 514 813 c 0506 812 498 815 491 820 c 0484 825 481 832 481 842 c 2- 478 912 l 2+ 478 912 l 2xc8c0478 920 482 929 489 936 c 0- 496 943 504 946 512 946 c 0+ 496 943 504 946 512 946 c 0xc940826 814 m 0833 808 836 802 836 794 c 0836 786 834 778 829 772 c 2@@ -1768,11 +1791,11 @@ SplineSet287 715 280 712 272 711 c 0264 710 256 711 249 716 c 2198 768 l 2- 192 774 189 781 189 790 c 0+ 192 774 189 781 189 790 c 0xcc40189 799 192 806 198 813 c 0204 820 211 823 219 824 c 0227 825 235 824 242 819 c 1-170 535 m 2+170 535 m 2xd840178 535 185 533 192 526 c 0199 519 202 512 203 504 c 0204 496 202 488 196 481 c 0@@ -1782,7 +1805,7 @@ SplineSet73 485 70 492 69 500 c 068 508 71 516 77 523 c 083 530 89 534 97 535 c 2- 170 535 l 2+ 170 535 l 2xd840923 533 m 2931 533 938 531 945 525 c 0952 519 955 512 956 504 c 0@@ -1794,26 +1817,26 @@ SplineSet821 507 823 515 829 522 c 0835 529 843 532 851 533 c 2923 533 l 2-478 636 m 1+478 636 m 1xe8c0486 635 493 631 500 626 c 0507 621 511 614 512 606 c 2- 512 502 l 1+ 512 502 l 1xe940567 502 l 2575 502 584 500 591 494 c 0598 488 601 480 602 472 c 2602 467 l 2602 459 599 452 593 446 c 0587 440 580 437 572 436 c 2- 478 436 l 2+ 478 436 l 2xe8c0470 436 464 438 458 443 c 0452 448 448 456 447 464 c 2- 447 601 l 2+ 447 601 l 2xe940447 609 449 618 456 625 c 0463 632 470 635 478 634 c 1- 478 636 l 1+ 478 636 l 1xe8c0512 680 m 0462 680 421 663 386 628 c 0- 351 593 334 552 334 502 c 0+ 351 593 334 552 334 502 c 0xeb40334 452 351 411 386 376 c 0421 341 462 324 512 324 c 0562 324 604 341 639 376 c 0@@ -1839,7 +1862,7 @@ SplineSet245 189 l 2239 181 230 178 221 178 c 0218 178 215 178 212 179 c 0- 199 182 191 191 189 204 c 0+ 199 182 191 191 189 204 c 0xcc40189 207 188 210 188 212 c 0188 221 192 230 198 236 c 2245 283 l 2@@ -1857,7 +1880,7 @@ SplineSet724 281 734 289 747 292 c 0751 293 754 294 757 294 c 0765 294 772 290 778 283 c 2-512 192 m 0+512 192 m 0xc940520 192 528 188 535 182 c 0542 176 544 170 544 162 c 2547 91 l 2@@ -1865,9 +1888,9 @@ SplineSet530 62 522 60 514 59 c 0506 58 498 59 491 65 c 0484 71 479 79 478 87 c 2- 478 157 l 2+ 478 157 l 2xc8c0478 167 481 174 488 181 c 0- 495 188 502 192 512 192 c 0+ 495 188 502 192 512 192 c 0xc940EndSplineSetValidated: 1EndChar@@ -1875,11 +1898,12 @@ EndCharStartChar: GZipEncoderDecoderEncoding: 276 288 20Width: 1024-Flags: H+HStem: 126 56<141.766 666 721 859.977> 210 54<721 767.765> 291 55<619.236 666> 372 58<721 774.884> 456 55<619.236 666> 650 54<117 371.969> 760 55<484 612 666 721 776 859.342> 842 54<144.005 383.984>+VStem: 61 56<207.427 650 704 815.266> 612 54<622 760> 666 55<182 210 264 291 346 372 430 456 511 566> 721 55<622 760> 886 55<207.15 693>LayerCount: 2ForeSplineSet-345 842 m 1+345 842 m 1xff88200 842 l 2178 842 160 833 144 820 c 0128 807 119 788 117 766 c 2@@ -1889,15 +1913,15 @@ SplineSet429 786 l 1362 837 l 2357 838 354 841 349 842 c 2- 345 842 l 1-721 264 m 1+ 345 842 l 1xff88+721 264 m 1xffa8750 264 l 2757 263 763 260 768 255 c 0- 773 250 776 243 776 236 c 0+ 773 250 776 243 776 236 c 0xff98776 229 773 222 768 217 c 0763 212 757 210 750 210 c 2721 210 l 1- 721 182 l 1+ 721 182 l 1xffa8805 182 l 2826 182 842 189 858 202 c 0874 215 884 234 886 256 c 2@@ -1905,19 +1929,19 @@ SplineSet886 697 879 715 866 731 c 0853 747 833 757 811 758 c 2776 760 l 1- 776 595 l 2+ 776 595 l 2xff98776 586 773 579 768 574 c 0763 569 757 566 750 566 c 2721 566 l 1- 721 430 l 1+ 721 430 l 1xffa8750 430 l 2757 430 763 427 768 421 c 0- 773 415 776 409 776 402 c 0+ 773 415 776 409 776 402 c 0xff98776 395 773 387 768 381 c 0763 375 757 372 750 372 c 2721 372 l 1- 721 264 l 1-612 760 m 1+ 721 264 l 1xffa8+612 760 m 1xffc8479 760 l 1400 674 l 2385 659 368 651 349 650 c 2@@ -1926,30 +1950,30 @@ SplineSet117 242 125 224 138 208 c 0151 192 169 184 191 182 c 2666 182 l 1- 666 291 l 1+ 666 291 l 1xffa8640 291 l 2631 291 624 293 619 298 c 0- 614 303 612 310 612 319 c 0+ 614 303 612 310 612 319 c 0xffc8612 328 614 333 619 338 c 0624 343 631 346 640 346 c 2666 346 l 1- 666 456 l 1+ 666 456 l 1xffa8640 456 l 2631 456 624 459 619 464 c 0- 614 469 612 474 612 483 c 0+ 614 469 612 474 612 483 c 0xffc8612 492 614 499 619 504 c 0624 509 630 511 637 511 c 2666 511 l 1- 666 566 l 1+ 666 566 l 1xffa8640 566 l 2631 566 624 569 619 574 c 0614 579 612 585 612 592 c 2- 612 760 l 1-721 760 m 1+ 612 760 l 1xffc8+721 760 m 1xffd8666 760 l 1666 622 l 1721 622 l 1- 721 760 l 1+ 721 760 l 1xffd8345 896 m 2360 896 374 892 387 885 c 2484 815 l 1@@ -1974,7 +1998,8 @@ EndCharStartChar: UrlEncoderDecoderEncoding: 277 289 21Width: 1024-Flags: H+HStem: 268 57<197.718 422.267 593.688 817.544> 467 58<262.281 758.809> 665 56<198.968 422.267 593.921 819.236>+VStem: 55 57<408.72 579.615> 905 58<409.589 579.832>LayerCount: 2ForeSplineSet@@ -2038,7 +2063,6 @@ EndCharStartChar: XmlFormatterEncoding: 278 290 22Width: 1024-Flags: HLayerCount: 2ForeSplineSet@@ -2090,7 +2114,8 @@ EndCharStartChar: FormattersEncoding: 279 291 23Width: 1024-Flags: H+HStem: 209 58<299.969 701.031> 498 56<308.282 981.718> 785 58<299.879 808.718>+CounterMasks: 1 e0LayerCount: 2ForeSplineSet@@ -2150,17 +2175,18 @@ EndCharStartChar: ChecksumGeneratorEncoding: 280 292 24Width: 1024-Flags: H+HStem: 29 72<232.893 607> 338 69<705.069 864> 454 96<281.493 320.442> 808 73<588.951 886.561> 878 96<281.493 320.442>+VStem: 40 93<694.494 733.357> 133 73<127.142 425.049> 464 96<694.494 734.108> 607 71<152 312.297> 913 72<407 781.858>LayerCount: 2ForeSplineSet-864 338 m 1+864 338 m 1xe1c0761 338 l 2738 338 718 329 703 315 c 0688 301 679 283 678 260 c 2678 152 l 1- 864 338 l 1-831 808 m 2+ 864 338 l 1xe1c0+831 808 m 2xf3c0591 808 l 1584 833 574 858 560 881 c 1831 881 l 2@@ -2185,7 +2211,7 @@ SplineSet913 407 l 1913 726 l 2913 749 904 769 889 784 c 0- 874 799 854 808 831 808 c 2+ 874 799 854 808 831 808 c 2xf3c0325 691 m 1441 691 l 2447 691 453 692 457 696 c 0@@ -2201,7 +2227,7 @@ SplineSet277 737 l 1159 737 l 2153 737 148 736 142 732 c 0- 136 728 133 722 133 715 c 0+ 136 728 133 722 133 715 c 0xedc0133 708 136 700 142 696 c 0148 692 153 691 159 691 c 2277 691 l 1@@ -2231,11 +2257,12 @@ EndCharStartChar: HashGeneratorEncoding: 281 293 25Width: 1024-Flags: H+HStem: 249 67<834.483 878.81> 499 72<436.552 564.338> 646 73<402 591.453> 786 72<495.329 615.505> 930 72<338.062 624.21>+VStem: 58 74<280.33 513.522> 191 71<242.862 488.314> 333 72<255.599 463.374> 420 71<59.9578 124.494> 468 72<264.802 405.671> 732 75<345.685 449.979>LayerCount: 2ForeSplineSet-507 1002 m 0+507 1002 m 0xff20614 998 703 968 775 912 c 0782 906 788 896 789 886 c 0790 876 788 866 782 859 c 0@@ -2249,7 +2276,7 @@ SplineSet220 901 217 910 220 920 c 0223 930 229 938 239 944 c 0307 983 385 1002 478 1002 c 0- 488 1002 497 1002 507 1002 c 0+ 488 1002 497 1002 507 1002 c 0xff20189 858 m 0195 851 199 841 198 831 c 0197 821 192 812 185 806 c 0@@ -2343,7 +2370,7 @@ SplineSet623 85 614 83 604 83 c 0594 83 588 85 582 91 c 2564 115 l 2- 503 192 471 280 468 377 c 0+ 503 192 471 280 468 377 c 0xff60468 388 472 397 479 404 c 0486 411 493 415 503 415 c 0618 527 m 0@@ -2371,7 +2398,7 @@ SplineSet491 88 489 82 485 76 c 0479 64 468 57 455 57 c 0454 57 452 57 451 57 c 0- 437 58 426 66 420 80 c 0+ 437 58 426 66 420 80 c 0xffa0390 138 367 197 350 259 c 0339 296 333 331 333 366 c 0333 376 333 385 334 395 c 0@@ -2387,11 +2414,12 @@ EndCharStartChar: GeneratorsEncoding: 282 294 26Width: 1024-Flags: H+HStem: 97 68<397 700> 210 69<791 878.483> 368 71<455.517 529 599 816.67> 485 67<119 187> 645 68<791 881.975> 758 160<372.749 436.775 531.339 596.775> 758 69<267.777 371 439 529 599 700>+VStem: 51 68<280.806 485 552 732.194> 187 68<292.719 485 552 745.653> 371 68<455.517 633.625 827 915.661> 529 70<439 642.5 827 915.5> 895 67<295.517 632.817>LayerCount: 2ForeSplineSet-312 758 m 2+312 758 m 2xfbf0298 758 284 753 272 741 c 0260 729 255 716 255 702 c 2255 338 l 2@@ -2409,15 +2437,15 @@ SplineSet769 645 l 2752 645 743 652 737 665 c 2700 758 l 1- 312 758 l 2-403 918 m 0+ 312 758 l 2xfbf0+403 918 m 0xfdf0413 918 422 915 429 907 c 0436 899 439 893 439 884 c 2439 827 l 1- 529 827 l 1+ 529 827 l 1xfbf0529 884 l 2529 893 532 899 540 907 c 0- 548 915 554 918 564 918 c 0+ 548 915 554 918 564 918 c 0xfdf0574 918 582 915 589 907 c 0596 899 599 893 599 884 c 2599 827 l 1@@ -2454,10 +2482,10 @@ SplineSet187 702 l 2187 735 199 764 224 789 c 0249 814 279 827 312 827 c 2- 371 827 l 1+ 371 827 l 1xfbf0371 884 l 2371 893 373 899 380 907 c 0- 387 915 394 918 403 918 c 0+ 387 915 394 918 403 918 c 0xfdf0403 645 m 0413 645 422 642 429 634 c 0436 626 439 618 439 609 c 2@@ -2489,11 +2517,12 @@ EndCharStartChar: ImageConverterEncoding: 283 295 27Width: 1024-Flags: H+HStem: 73 54<280.798 828.597> 403 55<523.502 587.689> 513 111<169.47 444.637> 513 55<669.912 720.497> 624 55<670.206 716.708> 679 110<178.236 436.766> 789 54<611 843.297> 843 111<169.14 444.784>+VStem: 60 109<624.767 670.764 796.235 842.445> 169 56<183.519 458> 445 111<624.216 678.784 796.237 842.85> 611 55<573.056 619.444> 721 55<568.876 615.765> 887 54<183.519 745.375>LayerCount: 2ForeSplineSet-693 513 m 0+693 513 m 0xd83c670 513 650 522 635 537 c 0618 554 611 573 611 596 c 0611 619 618 638 635 655 c 0@@ -2501,7 +2530,7 @@ SplineSet716 679 734 672 751 655 c 0768 638 776 619 776 596 c 0776 573 768 554 751 537 c 0- 736 522 716 513 693 513 c 0+ 736 522 716 513 693 513 c 0xd83c721 597 m 2721 605 718 611 713 616 c 0708 621 701 624 693 624 c 0@@ -2520,7 +2549,7 @@ SplineSet548 403 542 400 536 394 c 2280 143 l 1297 133 315 127 335 127 c 2-169 238 m 2+169 238 m 2xc47c169 458 l 1225 458 l 1225 238 l 2@@ -2530,12 +2559,12 @@ SplineSet578 458 595 451 612 434 c 2870 182 l 1880 199 887 218 887 238 c 2- 887 679 l 2+ 887 679 l 2xc47c887 710 877 735 855 757 c 0833 779 807 789 776 789 c 2611 789 l 1611 843 l 1- 776 843 l 2+ 776 843 l 2xc27c822 843 861 827 893 795 c 0925 763 941 725 941 679 c 2941 238 l 2@@ -2543,8 +2572,8 @@ SplineSet861 89 822 73 776 73 c 2335 73 l 2289 73 250 89 218 121 c 0- 186 153 169 192 169 238 c 2-169 818 m 2+ 186 153 169 192 169 238 c 2xc47c+169 818 m 2xc5bc169 815 l 2169 807 173 801 178 796 c 0183 791 190 789 199 789 c 2@@ -2555,31 +2584,31 @@ SplineSet432 841 427 843 419 843 c 2199 843 l 2190 843 183 841 178 836 c 0- 173 831 169 826 169 818 c 2+ 173 831 169 826 169 818 c 2xc5bc199 679 m 2190 679 183 676 178 671 c 0173 666 169 659 169 651 c 0169 643 173 637 178 632 c 0183 627 190 624 199 624 c 2- 419 624 l 2+ 419 624 l 2xe4bc427 624 432 627 437 632 c 0442 637 445 643 445 651 c 0445 659 442 666 437 671 c 0432 676 427 679 419 679 c 2199 679 l 2-169 954 m 2+169 954 m 2xd97c445 954 l 2476 954 502 945 524 923 c 0546 901 556 874 556 843 c 2556 624 l 2556 593 546 567 524 545 c 0502 523 476 513 445 513 c 2- 169 513 l 2+ 169 513 l 2xd97c138 513 113 523 91 545 c 069 567 60 593 60 624 c 2- 60 843 l 2+ 60 843 l 2xd9bc60 874 69 901 91 923 c 0- 113 945 138 954 169 954 c 2+ 113 945 138 954 169 954 c 2xd97cEndSplineSetValidated: 1EndChar@@ -2587,7 +2616,8 @@ EndCharStartChar: PngJpgCompressorEncoding: 284 296 28Width: 1024-Flags: H+HStem: 61 64<190 822.109> 442 64<472.281 539.719> 570 63<638.859 691.461> 697 63<635.056 691.461> 887 64<179.864 831.522>+VStem: 61 64<187.447 830.998> 570 63<637.859 695.415> 697 64<641.283 687.717> 887 64<189.892 830.998>LayerCount: 2ForeSplineSet@@ -2652,7 +2682,8 @@ EndCharStartChar: GraphicToolsEncoding: 285 297 29Width: 1024-Flags: H+HStem: 40 66<240.485 696.242> 174 66<308.278 837.722> 506 66<530.062 615.082> 673 131<360.61 457.89> 906 66<301.477 844.523>+VStem: 40 66<240.485 696.242> 174 66<307.046 846.768> 341 134<690.063 785.389> 906 66<307.046 846.768>LayerCount: 2ForeSplineSet@@ -2721,11 +2752,12 @@ EndCharStartChar: StringEscapeUnescapeEncoding: 286 304 30Width: 1024-Flags: H+HStem: 161 57<147.125 857.875> 277 57<424.281 475 532 580.719> 623 116<337.237 386.453 626.236 667.764> 682 57<387 475 532 618> 796 59<145.22 859.78>+VStem: 40 57<268.125 747.875> 330 57<632.236 682> 475 57<334 682> 618 57<632.236 682> 908 57<268.125 747.875>LayerCount: 2ForeSplineSet-213 796 m 2+213 796 m 2xdfc0181 796 155 786 132 763 c 0109 740 97 714 97 682 c 297 334 l 2@@ -2737,7 +2769,7 @@ SplineSet908 682 l 2908 714 896 740 873 763 c 0850 786 824 796 792 796 c 2- 213 796 l 2+ 213 796 l 2xdfc040 682 m 240 729 57 770 91 804 c 0125 838 166 855 213 855 c 2@@ -2765,7 +2797,7 @@ SplineSet430 332 436 334 444 334 c 2475 334 l 1475 682 l 1- 387 682 l 1+ 387 682 l 1xdfc0387 651 l 2387 643 384 637 379 632 c 0374 627 367 623 358 623 c 0@@ -2779,7 +2811,7 @@ SplineSet673 726 675 719 675 711 c 2675 651 l 2675 643 673 637 668 632 c 0- 663 627 656 623 647 623 c 0+ 663 627 656 623 647 623 c 0xefc0638 623 631 627 626 632 c 0621 637 618 644 618 653 c 2618 682 l 1@@ -2791,7 +2823,8 @@ EndCharStartChar: StringUtilitiesEncoding: 287 305 31Width: 1024-Flags: H+HStem: 24 90<347.126 470 561 686.251> 879 90<190 470 561 840>+VStem: 103 87<774.377 879> 470 91<114 879> 840 88<774.377 879>LayerCount: 2ForeSplineSet@@ -2835,7 +2868,7 @@ EndCharStartChar: TextToolsEncoding: 288 306 32Width: 1024-Flags: H+HStem: 68 58<270.236 328 389 423.765 783.237 825 886 936.766> 296 58<474 736> 565 58<163 360>LayerCount: 2ForeSplineSet@@ -2897,7 +2930,8 @@ EndCharStartChar: SettingsEncoding: 289 307 33Width: 1024-Flags: H+HStem: 213 60<224.648 342.511 661.489 778.516> 366 59<442.07 561.766> 602 59<442.821 561.08> 752 60<224.648 342.74 661.26 778.516>+VStem: 147 59<467.2 558.937> 356 59<451.801 574.254> 592 58<454.753 570.772> 798 59<467.811 557.619>LayerCount: 2ForeSplineSet@@ -3021,17 +3055,18 @@ EndCharStartChar: ColorPickerEncoding: 290 308 34Width: 1024-Flags: H+HStem: 130 47<545.606 705.937> 287 73<592.329 641.671> 383 73<680.053 744.947> 402 48<188.715 268.439> 444 49<295.519 411.937> 527 73<688.329 744.947> 636 71<629 654.67> 684 71<460.33 518.947> 851 47<371.516 603.566>+VStem: 110 47<480.8 630.668> 426 48<243 433.781> 581 71<298.33 349.67> 593 73<646.283 695.671> 677 71<385.875 453.125 537.33 597.125> 850 47<364.685 616.595>LayerCount: 2ForeSplineSet-319 803 m 4+319 803 m 4xccf6295 788 270 765 244 734 c 4218 703 198 670 181 635 c 4165 601 157 570 157 543 c 4157 513 166 491 185 475 c 4205 458 222 450 236 450 c 4- 237 450 239 450 240 450 c 4+ 237 450 239 450 240 450 c 4xd4f6247 450 257 453 269 460 c 6275 466 l 5293 476 308 483 321 487 c 4@@ -3052,7 +3087,7 @@ SplineSet793 704 735 765 652 808 c 4597 836 542 851 488 851 c 4486 851 483 851 481 851 c 4- 424 850 370 834 319 803 c 4+ 424 850 370 834 319 803 c 4xccf6673 851 m 4768 802 833 733 869 642 c 4888 594 897 544 897 493 c 4@@ -3068,7 +3103,7 @@ SplineSet423 385 421 397 418 406 c 4415 415 413 422 409 428 c 4405 434 399 438 390 441 c 4- 380 444 370 444 361 444 c 4+ 380 444 370 444 361 444 c 4xcce6352 444 344 444 336 441 c 4327 438 316 433 302 425 c 6292 420 l 6@@ -3083,7 +3118,7 @@ SplineSet351 877 413 896 478 898 c 4482 898 484 898 488 898 c 4550 898 611 882 673 851 c 4-652 324 m 4+652 324 m 4xc4f6652 314 649 305 642 298 c 4635 291 627 287 617 287 c 4607 287 599 291 592 298 c 4@@ -3091,8 +3126,8 @@ SplineSet581 334 585 343 592 350 c 4599 357 607 360 617 360 c 4627 360 635 357 642 350 c 4- 649 343 652 334 652 324 c 4-713 383 m 6+ 649 343 652 334 652 324 c 4xc4f6+713 383 m 6xe4e6712 383 l 6703 383 695 387 688 394 c 4681 401 677 410 677 420 c 4@@ -3101,7 +3136,7 @@ SplineSet723 456 730 452 737 445 c 4744 438 748 430 748 420 c 4748 410 744 401 737 394 c 4- 730 387 722 383 713 383 c 6+ 730 387 722 383 713 383 c 6xe4e6748 563 m 4748 553 744 544 737 537 c 4730 530 723 527 713 527 c 4@@ -3111,7 +3146,7 @@ SplineSet695 596 703 600 713 600 c 4723 600 730 596 737 589 c 4744 582 748 573 748 563 c 4-629 636 m 5+629 636 m 5xc6ee629 634 l 5619 635 610 640 603 646 c 4596 652 593 661 593 671 c 4@@ -3120,8 +3155,8 @@ SplineSet639 707 648 703 655 696 c 4662 689 666 681 666 671 c 4666 661 662 652 655 646 c 4- 648 640 639 636 629 636 c 5-486 684 m 5+ 648 640 639 636 629 636 c 5xc6ee+486 684 m 5xc5e6486 682 l 5476 682 467 686 460 693 c 4453 700 449 708 449 718 c 4@@ -3130,7 +3165,7 @@ SplineSet496 755 504 751 511 744 c 4518 737 522 728 522 718 c 4522 708 518 700 511 694 c 4- 504 688 496 684 486 684 c 5+ 504 688 496 684 486 684 c 5xc5e6EndSplineSetValidated: 1EndChar@@ -3138,21 +3173,22 @@ EndCharStartChar: CertificateEncoding: 291 309 35Width: 1024-Flags: H+HStem: 220 57<112 525 701.06 816.182> 368 45<195 470> 515 56<691.688 826.828> 561 44<195 498> 671 44<195 663> 825 55<112 883>+VStem: 57 55<275 825> 581 60<327.739 464.42> 878 56<328.558 464.28 588.682 825>LayerCount: 2ForeSplineSet-195 413 m 1+195 413 m 1xcf80470 413 l 1470 368 l 1195 368 l 1- 195 413 l 1-762 515 m 0+ 195 413 l 1xcf80+762 515 m 0xef80761 515 760 515 759 515 c 0694 515 641 461 641 396 c 0641 331 693 278 758 277 c 0824 277 877 330 878 396 c 0- 878 461 826 514 762 515 c 0+ 878 461 826 514 762 515 c 0xef80758 571 m 1759 571 l 2856 571 934 493 934 396 c 0@@ -3168,11 +3204,11 @@ SplineSet603 301 581 346 581 396 c 0581 493 659 571 756 571 c 2758 571 l 1-195 605 m 1+195 605 m 1xdf80498 605 l 1498 561 l 1195 561 l 1- 195 605 l 1+ 195 605 l 1xdf80195 715 m 1663 715 l 1663 671 l 1@@ -3201,11 +3237,12 @@ EndCharStartChar: PasswordGeneratorEncoding: 292 310 36Width: 1024-Flags: H+HStem: 205 63<171.891 852.109> 375 65<681.283 801.717> 418 172<238 280.109 317.891 353 478 513.719 550.891 588> 739 64<171.891 852.109>+VStem: 86 64<291.705 716.295> 874 64<291.705 716.295>LayerCount: 2ForeSplineSet-502 580 m 2+502 580 m 2xbc532 549 l 1563 580 l 2570 587 577 590 585 590 c 0@@ -3231,7 +3268,7 @@ SplineSet452 542 449 549 449 557 c 0449 565 452 573 458 579 c 0464 585 471 588 480 588 c 0- 489 588 497 585 502 580 c 2+ 489 588 497 585 502 580 c 2xbc223 580 m 0228 587 236 590 245 590 c 0254 590 261 587 268 580 c 2@@ -3258,7 +3295,7 @@ SplineSet223 535 l 2216 542 213 549 213 558 c 0213 567 216 575 223 580 c 0-705 440 m 2+705 440 m 2xdc778 440 l 2788 440 796 437 802 431 c 0808 425 811 418 811 409 c 0@@ -3268,7 +3305,7 @@ SplineSet695 375 687 378 681 385 c 0675 392 672 400 672 409 c 0672 418 675 425 681 431 c 0- 687 437 695 440 705 440 c 2+ 687 437 695 440 705 440 c 2xdc223 803 m 2801 803 l 2839 803 871 789 898 762 c 0@@ -3296,6 +3333,200 @@ SplineSet203 739 185 732 171 717 c 0157 702 150 684 150 664 c 2EndSplineSet+Validated: 1+EndChar++StartChar: ListCompare+Encoding: 293 311 37+Width: 1024+HStem: 109 63<274.188 424 486 549 617.142 762.859> 234 63<486 549> 359 63<486 549> 448.644 48.9736<280.778 454.587> 484 63<486 549> 523.593 48.9736<280.3 454.109> 598.86 48.9736<280.004 453.812 577.284 751.093> 609 63<486 549> 674.017 48.9736<279.89 453.699 578.691 752.5> 734 63<486 549> 749.36 48.9736<279.13 452.938 579.099 752.908> 859 63<272.141 418.812 486 549 617.189 761.811>+VStem: 205 63<178.188 854.859> 280.004 173.809<448.644 497.617 523.593 572.566 598.86 647.834 674.017 722.99 749.188 798.161> 486 63<109 172 234 297 359 422 484 547 609 672 734 797 859 922> 579.099 173.81<599.039 648.012 674.051 723.024 749.36 798.334> 768 62<176.141 852.812>+LayerCount: 2+Fore+SplineSet+577.284179688 599.0390625 m 1xe09f80+ 577.284179688 648.01171875 l 1+ 751.092773438 648.01171875 l 1+ 751.092773438 599.0390625 l 1+ 577.284179688 599.0390625 l 1xe09f80+578.69140625 674.05078125 m 1+ 578.69140625 723.024414062 l 1+ 752.5 723.024414062 l 1+ 752.5 674.05078125 l 1+ 578.69140625 674.05078125 l 1+579.098632812 749.360351562 m 1xe0bf80+ 579.098632812 798.333984375 l 1+ 752.908203125 798.333984375 l 1+ 752.908203125 749.360351562 l 1+ 579.098632812 749.360351562 l 1xe0bf80+280.778320312 448.643554688 m 1xf09f80+ 280.778320312 497.6171875 l 1+ 454.586914062 497.6171875 l 1+ 454.586914062 448.643554688 l 1+ 280.778320312 448.643554688 l 1xf09f80+280.299804688 523.592773438 m 1xe49f80+ 280.299804688 572.56640625 l 1+ 454.109375 572.56640625 l 1+ 454.109375 523.592773438 l 1+ 280.299804688 523.592773438 l 1xe49f80+280.00390625 598.860351562 m 1xe29f80+ 280.00390625 647.833984375 l 1+ 453.8125 647.833984375 l 1+ 453.8125 598.860351562 l 1+ 280.00390625 598.860351562 l 1xe29f80+279.889648438 674.016601562 m 1+ 279.889648438 722.990234375 l 1+ 453.69921875 722.990234375 l 1+ 453.69921875 674.016601562 l 1+ 279.889648438 674.016601562 l 1+279.129882812 749.1875 m 1+ 279.129882812 798.161132812 l 1+ 452.938476562 798.161132812 l 1+ 452.938476562 749.1875 l 1+ 279.129882812 749.1875 l 1+486 153 m 2+ 486 158 488 162 492 166 c 0+ 496 170 500 172 505 172 c 2+ 530 172 l 2+ 535 172 539 170 543 166 c 0+ 547 162 549 158 549 153 c 2+ 549 128 l 2+ 549 123 547 119 543 115 c 0+ 539 111 535 109 530 109 c 2+ 505 109 l 2+ 500 109 496 111 492 115 c 0+ 488 119 486 123 486 128 c 2+ 486 153 l 2+486 278 m 2+ 486 283 488 287 492 291 c 0+ 496 295 500 297 505 297 c 2+ 530 297 l 2+ 535 297 539 295 543 291 c 0+ 547 287 549 283 549 278 c 2+ 549 253 l 2+ 549 248 547 244 543 240 c 0+ 539 236 535 234 530 234 c 2+ 505 234 l 2+ 500 234 496 236 492 240 c 0+ 488 244 486 248 486 253 c 2+ 486 278 l 2+486 403 m 2+ 486 408 488 412 492 416 c 0+ 496 420 500 422 505 422 c 2+ 530 422 l 2+ 535 422 539 420 543 416 c 0+ 547 412 549 408 549 403 c 2+ 549 378 l 2+ 549 373 547 369 543 365 c 0+ 539 361 535 359 530 359 c 2+ 505 359 l 2+ 500 359 496 361 492 365 c 0+ 488 369 486 373 486 378 c 2+ 486 403 l 2+486 528 m 2+ 486 533 488 537 492 541 c 0+ 496 545 500 547 505 547 c 2+ 530 547 l 2+ 535 547 539 545 543 541 c 0+ 547 537 549 533 549 528 c 2+ 549 503 l 2+ 549 498 547 494 543 490 c 0+ 539 486 535 484 530 484 c 2+ 505 484 l 2xe89f80+ 500 484 496 486 492 490 c 0+ 488 494 486 498 486 503 c 2+ 486 528 l 2+486 653 m 2+ 486 658 488 662 492 666 c 0+ 496 670 500 672 505 672 c 2+ 530 672 l 2+ 535 672 539 670 543 666 c 0+ 547 662 549 658 549 653 c 2+ 549 628 l 2+ 549 623 547 619 543 615 c 0+ 539 611 535 609 530 609 c 2+ 505 609 l 2xe19f80+ 500 609 496 611 492 615 c 0+ 488 619 486 623 486 628 c 2+ 486 653 l 2+486 778 m 2+ 486 783 488 787 492 791 c 0+ 496 795 500 797 505 797 c 2+ 530 797 l 2+ 535 797 539 795 543 791 c 0+ 547 787 549 783 549 778 c 2+ 549 753 l 2+ 549 748 547 744 543 740 c 0+ 539 736 535 734 530 734 c 2+ 505 734 l 2xe0df80+ 500 734 496 736 492 740 c 0+ 488 744 486 748 486 753 c 2+ 486 778 l 2+611 903 m 2+ 611 908 613 912 617 916 c 0+ 621 920 625 922 630 922 c 2+ 754 922 l 2+ 774 922 793 914 808 899 c 0+ 823 884 830 865 830 845 c 2+ 830 182 l 2+ 830 163 823 144 809 130 c 0+ 795 116 776 109 757 109 c 2+ 629 109 l 2+ 625 109 620 111 617 114 c 0+ 614 117 611 123 611 127 c 2+ 611 153 l 2+ 611 158 613 162 617 166 c 0+ 621 170 625 172 630 172 c 2+ 752 172 l 2+ 756 172 760 173 763 176 c 0+ 766 179 768 183 768 187 c 2+ 768 839 l 2+ 768 844 766 849 762 853 c 0+ 758 857 752 859 747 859 c 2+ 632 859 l 2+ 627 859 621 861 617 865 c 0+ 613 869 611 874 611 879 c 2+ 611 903 l 2+486 903 m 2+ 486 908 488 912 492 916 c 0+ 496 920 500 922 505 922 c 2+ 530 922 l 2+ 535 922 539 920 543 916 c 0+ 547 912 549 908 549 903 c 2+ 549 878 l 2+ 549 873 547 869 543 865 c 0+ 539 861 535 859 530 859 c 2+ 505 859 l 2+ 500 859 496 861 492 865 c 0+ 488 869 486 873 486 878 c 2+ 486 903 l 2+205 849 m 2+ 205 868 213 886 227 900 c 0+ 241 914 259 922 278 922 c 2+ 406 922 l 2+ 410 922 416 920 419 917 c 0+ 422 914 424 908 424 904 c 2+ 424 877 l 2+ 424 872 423 868 419 864 c 0+ 415 860 411 859 406 859 c 2+ 283 859 l 2+ 279 859 275 858 272 855 c 0+ 269 852 268 848 268 844 c 2+ 268 192 l 2+ 268 187 270 182 274 178 c 0+ 278 174 283 172 288 172 c 2+ 402 172 l 2+ 408 172 413 169 417 165 c 0+ 421 161 424 156 424 150 c 2+ 424 125 l 2+ 424 121 422 117 419 114 c 0+ 416 111 412 109 408 109 c 2+ 282 109 l 2+ 262 109 243 116 228 131 c 0+ 213 146 205 166 205 186 c 2+ 205 849 l 2+EndSplineSet+Validated: 1EndCharEndCharsEndSplineFontdiff --git a/assets/font/DevToys-Tools-Icons.ttf b/assets/font/DevToys-Tools-Icons.ttfindex 64edbcac0..b5fd72284 100644Binary files a/assets/font/DevToys-Tools-Icons.ttf and b/assets/font/DevToys-Tools-Icons.ttf differdiff --git a/assets/font/ListCompare.svg b/assets/font/ListCompare.svgnew file mode 100644index 000000000..a6a74b081--- /dev/null+++ b/assets/font/ListCompare.svg@@ -0,0 +1,93 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ version="1.1"+ viewBox="-10 0 1034 1024"+ id="svg1"+ sodipodi:docname="ListCompare.svg"+ inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:svg="http://www.w3.org/2000/svg">+ <defs+ id="defs1" />+ <sodipodi:namedview+ id="namedview1"+ pagecolor="#ffffff"+ bordercolor="#000000"+ borderopacity="0.25"+ inkscape:showpageshadow="2"+ inkscape:pageopacity="0.0"+ inkscape:pagecheckerboard="0"+ inkscape:deskcolor="#d1d1d1"+ showgrid="false"+ inkscape:zoom="3.2399854"+ inkscape:cx="558.18153"+ inkscape:cy="283.79758"+ inkscape:window-width="2560"+ inkscape:window-height="1369"+ inkscape:window-x="1912"+ inkscape:window-y="-8"+ inkscape:window-maximized="1"+ inkscape:current-layer="svg1" />+ <path+ fill="currentColor"+ d="M486 871c0 -5 2 -9 6 -13s8 -6 13 -6h25c5 0 9 2 13 6s6 8 6 13v25c0 5 -2 9 -6 13s-8 6 -13 6h-25c-5 0 -9 -2 -13 -6s-6 -8 -6 -13v-25zM486 746c0 -5 2 -9 6 -13s8 -6 13 -6h25c5 0 9 2 13 6s6 8 6 13v25c0 5 -2 9 -6 13s-8 6 -13 6h-25c-5 0 -9 -2 -13 -6 s-6 -8 -6 -13v-25zM486 621c0 -5 2 -9 6 -13s8 -6 13 -6h25c5 0 9 2 13 6s6 8 6 13v25c0 5 -2 9 -6 13s-8 6 -13 6h-25c-5 0 -9 -2 -13 -6s-6 -8 -6 -13v-25zM486 496c0 -5 2 -9 6 -13s8 -6 13 -6h25c5 0 9 2 13 6s6 8 6 13v25c0 5 -2 9 -6 13s-8 6 -13 6h-25 c-5 0 -9 -2 -13 -6s-6 -8 -6 -13v-25zM486 371c0 -5 2 -9 6 -13s8 -6 13 -6h25c5 0 9 2 13 6s6 8 6 13v25c0 5 -2 9 -6 13s-8 6 -13 6h-25c-5 0 -9 -2 -13 -6s-6 -8 -6 -13v-25zM486 246c0 -5 2 -9 6 -13s8 -6 13 -6h25c5 0 9 2 13 6s6 8 6 13v25c0 5 -2 9 -6 13s-8 6 -13 6 h-25c-5 0 -9 -2 -13 -6s-6 -8 -6 -13v-25zM611 121c0 -5 2 -9 6 -13s8 -6 13 -6h124c20 0 39 8 54 23s22 34 22 54v663c0 19 -7 38 -21 52s-33 21 -52 21h-128c-4 0 -9 -2 -12 -5s-6 -9 -6 -13v-26c0 -5 2 -9 6 -13s8 -6 13 -6h122c4 0 8 -1 11 -4s5 -7 5 -11v-652 c0 -5 -2 -10 -6 -14s-10 -6 -15 -6h-115c-5 0 -11 -2 -15 -6s-6 -9 -6 -14v-24zM486 121c0 -5 2 -9 6 -13s8 -6 13 -6h25c5 0 9 2 13 6s6 8 6 13v25c0 5 -2 9 -6 13s-8 6 -13 6h-25c-5 0 -9 -2 -13 -6s-6 -8 -6 -13v-25zM205 175c0 -19 8 -37 22 -51s32 -22 51 -22h128 c4 0 10 2 13 5s5 9 5 13v27c0 5 -1 9 -5 13s-8 5 -13 5h-123c-4 0 -8 1 -11 4s-4 7 -4 11v652c0 5 2 10 6 14s9 6 14 6h114c6 0 11 3 15 7s7 9 7 15v25c0 4 -2 8 -5 11s-7 5 -11 5h-126c-20 0 -39 -7 -54 -22s-23 -35 -23 -55v-663z"+ id="path1" />+ <rect+ style="fill:none;stroke:#000000;stroke-width:33.2598"+ id="rect1"+ width="140.54903"+ height="15.713555"+ x="295.75958"+ y="242.46889" />+ <rect+ style="fill:none;stroke:#000000;stroke-width:33.2598"+ id="rect1-1"+ width="140.54903"+ height="15.713555"+ x="296.51993"+ y="317.64011" />+ <rect+ style="fill:none;stroke:#000000;stroke-width:33.2598"+ id="rect1-5"+ width="140.54903"+ height="15.713555"+ x="296.63333"+ y="392.79611" />+ <rect+ style="fill:none;stroke:#000000;stroke-width:33.2598"+ id="rect1-3"+ width="140.54903"+ height="15.713555"+ x="296.92999"+ y="468.06381" />+ <rect+ style="fill:none;stroke:#000000;stroke-width:33.2598"+ id="rect1-3-7"+ width="140.54903"+ height="15.713555"+ x="297.40793"+ y="543.01294" />+ <rect+ style="fill:none;stroke:#000000;stroke-width:33.2598"+ id="rect1-3-5"+ width="140.54903"+ height="15.713555"+ x="595.72888"+ y="242.29608" />+ <rect+ style="fill:none;stroke:#000000;stroke-width:33.2598"+ id="rect1-3-6"+ width="140.54903"+ height="15.713555"+ x="595.32123"+ y="317.60541" />+ <rect+ style="fill:none;stroke:#000000;stroke-width:33.2598"+ id="rect1-3-0"+ width="140.54903"+ height="15.713555"+ x="593.91412"+ y="392.61777" />+</svg>diff --git a/src/app/dev/DevToys.Tools/DevToys.Tools.csproj b/src/app/dev/DevToys.Tools/DevToys.Tools.csprojindex c0bfec7b8..9e427778c 100644--- a/src/app/dev/DevToys.Tools/DevToys.Tools.csproj+++ b/src/app/dev/DevToys.Tools/DevToys.Tools.csproj@@ -33,6 +33,11 @@--></ItemGroup><ItemGroup>+ <Compile Update="Properties\Resources.Designer.cs">+ <DesignTime>True</DesignTime>+ <AutoGen>True</AutoGen>+ <DependentUpon>Resources.resx</DependentUpon>+ </Compile><Compile Update="Strings\GlobalStrings\GlobalStrings.Designer.cs"><DesignTime>True</DesignTime><AutoGen>True</AutoGen>@@ -188,6 +193,11 @@<AutoGen>True</AutoGen><DependentUpon>EscapeUnescape.resx</DependentUpon></Compile>+ <Compile Update="Tools\Text\ListCompare\ListCompare.Designer.cs">+ <DesignTime>True</DesignTime>+ <AutoGen>True</AutoGen>+ <DependentUpon>ListCompare.resx</DependentUpon>+ </Compile><Compile Update="Tools\Text\MarkdownPreview\MarkdownPreview.Designer.cs"><DesignTime>True</DesignTime><AutoGen>True</AutoGen>@@ -210,6 +220,10 @@</Compile></ItemGroup><ItemGroup>+ <EmbeddedResource Update="Properties\Resources.resx">+ <Generator>ResXFileCodeGenerator</Generator>+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>+ </EmbeddedResource><EmbeddedResource Update="Strings\GlobalStrings\GlobalStrings.resx"><Generator>ResXFileCodeGenerator</Generator><LastGenOutput>GlobalStrings.Designer.cs</LastGenOutput>@@ -326,6 +340,10 @@<Generator>ResXFileCodeGenerator</Generator><LastGenOutput>AnalyzerAndUtilities.Designer.cs</LastGenOutput></EmbeddedResource>+ <EmbeddedResource Update="Tools\Text\ListCompare\ListCompare.resx">+ <LastGenOutput>ListCompare.Designer.cs</LastGenOutput>+ <Generator>ResXFileCodeGenerator</Generator>+ </EmbeddedResource><EmbeddedResource Update="Tools\Text\Compare\TextCompare.resx"><Generator>ResXFileCodeGenerator</Generator><LastGenOutput>TextCompare.Designer.cs</LastGenOutput>diff --git a/src/app/dev/DevToys.Tools/Helpers/Core/ReadOnlyMemoryEqualityComparer.cs b/src/app/dev/DevToys.Tools/Helpers/Core/ReadOnlyMemoryEqualityComparer.csnew file mode 100644index 000000000..0805200b8--- /dev/null+++ b/src/app/dev/DevToys.Tools/Helpers/Core/ReadOnlyMemoryEqualityComparer.cs@@ -0,0 +1,21 @@+namespace DevToys.Tools.Helpers.Core;+internal class ReadOnlyMemoryEqualityComparer : IEqualityComparer<ReadOnlyMemory<char>>+{+ private readonly StringComparison _comparisonType;++ public ReadOnlyMemoryEqualityComparer(bool caseSensitive)+ {+ _comparisonType = caseSensitive ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;+ }+++ public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y)+ {+ return x.Span.Equals(y.Span, _comparisonType);+ }++ public int GetHashCode(ReadOnlyMemory<char> obj)+ {+ return obj.ToString().GetHashCode(_comparisonType);+ }+}diff --git a/src/app/dev/DevToys.Tools/Helpers/ListCompareHelper.cs b/src/app/dev/DevToys.Tools/Helpers/ListCompareHelper.csnew file mode 100644index 000000000..2bd408e87--- /dev/null+++ b/src/app/dev/DevToys.Tools/Helpers/ListCompareHelper.cs@@ -0,0 +1,102 @@+using DevToys.Tools.Helpers.Core;+using DevToys.Tools.Models;+using Microsoft.Extensions.Logging;++namespace DevToys.Tools.Helpers;++internal static partial class ListCompareHelper+{+ public static ResultInfo<string> Compare(+ string firstList,+ string secondList,+ bool caseSensitive,+ ListComparisonMode comparisonMode,+ ILogger logger)+ {+ try+ {+ ResultInfo<string> compareResult;+ var comparer = new ReadOnlyMemoryEqualityComparer(caseSensitive);++ IEnumerable<ReadOnlyMemory<char>> listA = firstList.AsMemory().ToLines();+ IEnumerable<ReadOnlyMemory<char>> listB = secondList.AsMemory().ToLines();++ IEnumerable<ReadOnlyMemory<char>> listCompared = comparisonMode switch+ {+ ListComparisonMode.AInterB => GetAInterB(listA, listB, comparer),+ ListComparisonMode.AUnionB => GetAUnionB(listA, listB, comparer),+ ListComparisonMode.AOnly => GetAOnly(listA, listB, comparer),+ ListComparisonMode.BOnly => GetBOnly(listA, listB, comparer),+ _ => throw new NotSupportedException(),+ };++ compareResult = new(string.Join(Environment.NewLine, listCompared), true);+ return compareResult;+ }+ catch (Exception ex)+ {+ logger.LogError(ex, "Unexpected error");+ return new(ex.Message, false);+ }+ }++ private static IEnumerable<ReadOnlyMemory<char>> GetAInterB(IEnumerable<ReadOnlyMemory<char>> listA, IEnumerable<ReadOnlyMemory<char>> listB, ReadOnlyMemoryEqualityComparer comparer)+ {+ var setB = new HashSet<ReadOnlyMemory<char>>(listB, comparer);+ var uniqueElements = new HashSet<ReadOnlyMemory<char>>(comparer);+ foreach (ReadOnlyMemory<char> item in listA)+ {+ if (setB.Contains(item, comparer))+ {+ if (uniqueElements.Add(item))+ {+ yield return item;+ }+ }+ }+ }++ private static IEnumerable<ReadOnlyMemory<char>> GetAUnionB(IEnumerable<ReadOnlyMemory<char>> listA, IEnumerable<ReadOnlyMemory<char>> listB, ReadOnlyMemoryEqualityComparer comparer)+ {+ var uniqueElements = new HashSet<ReadOnlyMemory<char>>(comparer);+ foreach (ReadOnlyMemory<char> item in listA.Union(listB))+ {+ if (uniqueElements.Add(item))+ {+ yield return item;+ }+ }+ }++ private static IEnumerable<ReadOnlyMemory<char>> GetAOnly(IEnumerable<ReadOnlyMemory<char>> listA, IEnumerable<ReadOnlyMemory<char>> listB, ReadOnlyMemoryEqualityComparer comparer)+ {+ var setB = new HashSet<ReadOnlyMemory<char>>(listB, comparer);+ var uniqueElements = new HashSet<ReadOnlyMemory<char>>(comparer);+ foreach (ReadOnlyMemory<char> item in listA)+ {+ if (!setB.Contains(item, comparer))+ {+ if (uniqueElements.Add(item))+ {+ yield return item;+ }+ }+ }+ }++ private static IEnumerable<ReadOnlyMemory<char>> GetBOnly(IEnumerable<ReadOnlyMemory<char>> listA, IEnumerable<ReadOnlyMemory<char>> listB, ReadOnlyMemoryEqualityComparer comparer)+ {+ var setA = new HashSet<ReadOnlyMemory<char>>(listA, comparer);+ var uniqueElements = new HashSet<ReadOnlyMemory<char>>(comparer);+ foreach (ReadOnlyMemory<char> item in listB)+ {+ if (!setA.Contains(item, comparer))+ {+ if (uniqueElements.Add(item))+ {+ yield return item;+ }+ }+ }+ }+}diff --git a/src/app/dev/DevToys.Tools/Models/ListComparisonMode.cs b/src/app/dev/DevToys.Tools/Models/ListComparisonMode.csnew file mode 100644index 000000000..2bd5c0498--- /dev/null+++ b/src/app/dev/DevToys.Tools/Models/ListComparisonMode.cs@@ -0,0 +1,27 @@+namespace DevToys.Tools.Models;++/// <summary>+/// Defines the different list comparaison mode+/// </summary>+internal enum ListComparisonMode+{+ /// <summary>+ /// Get elements which are presents in List A and List B+ /// </summary>+ AInterB,++ /// <summary>+ /// Get elements which are presents in List A or List B+ /// </summary>+ AUnionB,++ /// <summary>+ /// Get elements which are presents in List A but not in List B+ /// /// </summary>+ AOnly,++ /// <summary>+ ///Get elements which are presents in List B but not in List A+ /// </summary>+ BOnly+}diff --git a/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompare.Designer.cs b/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompare.Designer.csnew file mode 100644index 000000000..63eaa350c--- /dev/null+++ b/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompare.Designer.cs@@ -0,0 +1,225 @@+//------------------------------------------------------------------------------+// <auto-generated>+// Ce code a été généré par un outil.+// Version du runtime :4.0.30319.42000+//+// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si+// le code est régénéré.+// </auto-generated>+//------------------------------------------------------------------------------++namespace DevToys.Tools.Tools.Text.ListCompare {+ using System;+++ /// <summary>+ /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.+ /// </summary>+ // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder+ // à l'aide d'un outil, tel que ResGen ou Visual Studio.+ // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen+ // avec l'option /str ou régénérez votre projet VS.+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]+ internal class ListCompare {++ private static global::System.Resources.ResourceManager resourceMan;++ private static global::System.Globalization.CultureInfo resourceCulture;++ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]+ internal ListCompare() {+ }++ /// <summary>+ /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.+ /// </summary>+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]+ internal static global::System.Resources.ResourceManager ResourceManager {+ get {+ if (object.ReferenceEquals(resourceMan, null)) {+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DevToys.Tools.Tools.Text.ListCompare.ListCompare", typeof(ListCompare).Assembly);+ resourceMan = temp;+ }+ return resourceMan;+ }+ }++ /// <summary>+ /// Remplace la propriété CurrentUICulture du thread actuel pour toutes+ /// les recherches de ressources à l'aide de cette classe de ressource fortement typée.+ /// </summary>+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]+ internal static global::System.Globalization.CultureInfo Culture {+ get {+ return resourceCulture;+ }+ set {+ resourceCulture = value;+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à List comparer tool.+ /// </summary>+ internal static string AccessibleName {+ get {+ return ResourceManager.GetString("AccessibleName", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à A ∩ B.+ /// </summary>+ internal static string AInterB {+ get {+ return ResourceManager.GetString("AInterB", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à A Only.+ /// </summary>+ internal static string AOnly {+ get {+ return ResourceManager.GetString("AOnly", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à A ∪ B.+ /// </summary>+ internal static string AUnionB {+ get {+ return ResourceManager.GetString("AUnionB", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à B Only.+ /// </summary>+ internal static string BOnly {+ get {+ return ResourceManager.GetString("BOnly", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Please specify comparison mode (A ∩ B, A ∪ B, A Only, B Only).+ /// </summary>+ internal static string ComparisonOptionDescription {+ get {+ return ResourceManager.GetString("ComparisonOptionDescription", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Comparison mode.+ /// </summary>+ internal static string ComparisonOptionTitle {+ get {+ return ResourceManager.GetString("ComparisonOptionTitle", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Configuration.+ /// </summary>+ internal static string Configuration {+ get {+ return ResourceManager.GetString("Configuration", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Compare two lists.+ /// </summary>+ internal static string Description {+ get {+ return ResourceManager.GetString("Description", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Input file selected doesn't exist.+ /// </summary>+ internal static string InputFileNotFound {+ get {+ return ResourceManager.GetString("InputFileNotFound", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à A.+ /// </summary>+ internal static string ListA {+ get {+ return ResourceManager.GetString("ListA", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à B.+ /// </summary>+ internal static string ListB {+ get {+ return ResourceManager.GetString("ListB", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à List Comparer.+ /// </summary>+ internal static string LongDisplayTitle {+ get {+ return ResourceManager.GetString("LongDisplayTitle", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Path to a file to get compared list (display if empty).+ /// </summary>+ internal static string OutputFileOptionDescription {+ get {+ return ResourceManager.GetString("OutputFileOptionDescription", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Path of the first list to compare.+ /// </summary>+ internal static string PathListA {+ get {+ return ResourceManager.GetString("PathListA", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Path of the second list to compare.+ /// </summary>+ internal static string PathListB {+ get {+ return ResourceManager.GetString("PathListB", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à List Compare.+ /// </summary>+ internal static string ShortDisplayTitle {+ get {+ return ResourceManager.GetString("ShortDisplayTitle", resourceCulture);+ }+ }++ /// <summary>+ /// Recherche une chaîne localisée semblable à Case sensitive comparison.+ /// </summary>+ internal static string TextCaseSensitiveComparison {+ get {+ return ResourceManager.GetString("TextCaseSensitiveComparison", resourceCulture);+ }+ }+ }+}diff --git a/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompare.resx b/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompare.resxnew file mode 100644index 000000000..a1cfdac76--- /dev/null+++ b/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompare.resx@@ -0,0 +1,174 @@+<?xml version="1.0" encoding="utf-8"?>+<root>+ <!--+ Microsoft ResX Schema++ Version 2.0++ The primary goals of this format is to allow a simple XML format+ that is mostly human readable. The generation and parsing of the+ various data types are done through the TypeConverter classes+ associated with the data types.++ Example:++ ... ado.net/XML headers & schema ...+ <resheader name="resmimetype">text/microsoft-resx</resheader>+ <resheader name="version">2.0</resheader>+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">+ <value>[base64 mime encoded serialized .NET Framework object]</value>+ </data>+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>+ <comment>This is a comment</comment>+ </data>++ There are any number of "resheader" rows that contain simple+ name/value pairs.++ Each data row contains a name, and value. The row also contains a+ type or mimetype. Type corresponds to a .NET class that support+ text/value conversion through the TypeConverter architecture.+ Classes that don't support this are serialized and stored with the+ mimetype set.++ The mimetype is used for serialized objects, and tells the+ ResXResourceReader how to depersist the object. This is currently not+ extensible. For a given mimetype the value must be set accordingly:++ Note - application/x-microsoft.net.object.binary.base64 is the format+ that the ResXResourceWriter will generate, however the reader can+ read any of the formats listed below.++ mimetype: application/x-microsoft.net.object.binary.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.soap.base64+ value : The object must be serialized with+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter+ : and then encoded with base64 encoding.++ mimetype: application/x-microsoft.net.object.bytearray.base64+ value : The object must be serialized into a byte array+ : using a System.ComponentModel.TypeConverter+ : and then encoded with base64 encoding.+ -->+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />+ <xsd:element name="root" msdata:IsDataSet="true">+ <xsd:complexType>+ <xsd:choice maxOccurs="unbounded">+ <xsd:element name="metadata">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" />+ </xsd:sequence>+ <xsd:attribute name="name" use="required" type="xsd:string" />+ <xsd:attribute name="type" type="xsd:string" />+ <xsd:attribute name="mimetype" type="xsd:string" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="assembly">+ <xsd:complexType>+ <xsd:attribute name="alias" type="xsd:string" />+ <xsd:attribute name="name" type="xsd:string" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="data">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />+ <xsd:attribute ref="xml:space" />+ </xsd:complexType>+ </xsd:element>+ <xsd:element name="resheader">+ <xsd:complexType>+ <xsd:sequence>+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />+ </xsd:sequence>+ <xsd:attribute name="name" type="xsd:string" use="required" />+ </xsd:complexType>+ </xsd:element>+ </xsd:choice>+ </xsd:complexType>+ </xsd:element>+ </xsd:schema>+ <resheader name="resmimetype">+ <value>text/microsoft-resx</value>+ </resheader>+ <resheader name="version">+ <value>2.0</value>+ </resheader>+ <resheader name="reader">+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <resheader name="writer">+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>+ </resheader>+ <data name="AccessibleName" xml:space="preserve">+ <value>List comparer tool</value>+ </data>+ <data name="AInterB" xml:space="preserve">+ <value>A ∩ B</value>+ </data>+ <data name="AOnly" xml:space="preserve">+ <value>A Only</value>+ </data>+ <data name="AUnionB" xml:space="preserve">+ <value>A ∪ B</value>+ </data>+ <data name="BOnly" xml:space="preserve">+ <value>B Only</value>+ </data>+ <data name="ComparisonOptionDescription" xml:space="preserve">+ <value>Please specify comparison mode (A ∩ B, A ∪ B, A Only, B Only)</value>+ </data>+ <data name="ComparisonOptionTitle" xml:space="preserve">+ <value>Comparison mode</value>+ </data>+ <data name="Configuration" xml:space="preserve">+ <value>Configuration</value>+ </data>+ <data name="Description" xml:space="preserve">+ <value>Compare two lists</value>+ </data>+ <data name="InputFileNotFound" xml:space="preserve">+ <value>Input file selected doesn't exist</value>+ </data>+ <data name="ListA" xml:space="preserve">+ <value>A</value>+ </data>+ <data name="ListB" xml:space="preserve">+ <value>B</value>+ </data>+ <data name="LongDisplayTitle" xml:space="preserve">+ <value>List Comparer</value>+ </data>+ <data name="OutputFileOptionDescription" xml:space="preserve">+ <value>Path to a file to get compared list (display if empty)</value>+ </data>+ <data name="PathListA" xml:space="preserve">+ <value>Path of the first list to compare</value>+ </data>+ <data name="PathListB" xml:space="preserve">+ <value>Path of the second list to compare</value>+ </data>+ <data name="ShortDisplayTitle" xml:space="preserve">+ <value>List Compare</value>+ </data>+ <data name="TextCaseSensitiveComparison" xml:space="preserve">+ <value>Case sensitive comparison</value>+ </data>+</root>\ No newline at end of filediff --git a/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompareCommandLineTool.cs b/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompareCommandLineTool.csnew file mode 100644index 000000000..635d5faa3--- /dev/null+++ b/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompareCommandLineTool.cs@@ -0,0 +1,89 @@+using DevToys.Tools.Helpers;+using DevToys.Tools.Models;+using Microsoft.Extensions.Logging;++namespace DevToys.Tools.Tools.Text.ListCompare;++[Export(typeof(ICommandLineTool))]+[Name("ListCompare")]+[CommandName(+ Name = "listcompare",+ Alias = "lc",+ ResourceManagerBaseName = "DevToys.Tools.Tools.Text.ListCompare.ListCompare",+ DescriptionResourceName = nameof(ListCompare.Description))]+internal sealed class ListCompareCommandLineTool : ICommandLineTool+{+#pragma warning disable IDE0044 // Add readonly modifier+ [Import]+ private IFileStorage _fileStorage = null!;+#pragma warning restore IDE0044 // Add readonly modifier++ [CommandLineOption(+ Name = "filea",+ Alias = "a",+ IsRequired = true,+ DescriptionResourceName = nameof(ListCompare.PathListA))]+ private FileInfo? FileA { get; set; }++ [CommandLineOption(+ Name = "fileb",+ Alias = "b",+ IsRequired = true,+ DescriptionResourceName = nameof(ListCompare.PathListB))]+ private FileInfo? FileB { get; set; }++ [CommandLineOption(+ Name = "outputFile",+ Alias = "o",+ DescriptionResourceName = nameof(ListCompare.OutputFileOptionDescription))]+ internal FileInfo? OutputFile { get; set; }++ [CommandLineOption(+ Name = "casesensitive",+ Alias = "cs",+ DescriptionResourceName = nameof(ListCompare.TextCaseSensitiveComparison))]+ private bool IsCaseSensitive { get; set; }++ [CommandLineOption(+ Name = "comparisonmode",+ Alias = "cm",+ DescriptionResourceName = nameof(ListCompare.ComparisonOptionDescription))]+ private ListComparisonMode ComparisonMode { get; set; }++ public async ValueTask<int> InvokeAsync(ILogger logger, CancellationToken cancellationToken)+ {+ if (FileA == null || !FileA.Exists)+ {+ Console.Error.WriteLine(string.Concat("fileA :", ListCompare.InputFileNotFound));+ return -1;+ }++ if (FileB == null || !FileB.Exists)+ {+ Console.Error.WriteLine(string.Concat("fileB :", ListCompare.InputFileNotFound));+ return -1;+ }++ using Stream fileAStream = _fileStorage.OpenReadFile(FileA.FullName);+ using var readerFileA = new StreamReader(fileAStream);+ string fileAContent = await readerFileA.ReadToEndAsync(cancellationToken);++ using Stream fileBStream = _fileStorage.OpenReadFile(FileA.FullName);+ using var readerFileB = new StreamReader(fileBStream);+ string fileBContent = await readerFileB.ReadToEndAsync(cancellationToken);++ ResultInfo<string> output = ListCompareHelper.Compare(fileAContent, fileBContent, IsCaseSensitive, ComparisonMode, logger);+ cancellationToken.ThrowIfCancellationRequested();++ if (output.HasSucceeded)+ {+ await FileHelper.WriteOutputAsync(output.Data, OutputFile, cancellationToken);+ return 0;+ }+ else+ {+ Console.Error.WriteLine(output.Data);+ return -1;+ }+ }+}diff --git a/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompareGuiTool.cs b/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompareGuiTool.csnew file mode 100644index 000000000..2c8cb81d3--- /dev/null+++ b/src/app/dev/DevToys.Tools/Tools/Text/ListCompare/ListCompareGuiTool.cs@@ -0,0 +1,199 @@+using DevToys.Tools.Helpers;+using DevToys.Tools.Models;+using Microsoft.Extensions.Logging;++namespace DevToys.Tools.Tools.Text.ListCompare;++[Export(typeof(IGuiTool))]+[Name("ListCompare")]+[ToolDisplayInformation(+ IconFontName = "DevToys-Tools-Icons",+ IconGlyph = '\u0137',+ GroupName = PredefinedCommonToolGroupNames.Text,+ ResourceManagerAssemblyIdentifier = nameof(DevToysToolsResourceManagerAssemblyIdentifier),+ ResourceManagerBaseName = "DevToys.Tools.Tools.Text.ListCompare.ListCompare",+ ShortDisplayTitleResourceName = nameof(ListCompare.ShortDisplayTitle),+ LongDisplayTitleResourceName = nameof(ListCompare.LongDisplayTitle),+ DescriptionResourceName = nameof(ListCompare.Description),+ AccessibleNameResourceName = nameof(ListCompare.AccessibleName))]+internal sealed class ListCompareGuiTool : IGuiTool+{+ /// <summary>+ /// Whether the list comparison should be case sensitive or not,+ /// </summary>+ private static readonly SettingDefinition<bool> caseSensitive+ = new(+ name: $"{nameof(ListCompareGuiTool)}.{nameof(caseSensitive)}",+ defaultValue: false);++ /// <summary>+ /// The comparison mode to use.+ /// </summary>+ private static readonly SettingDefinition<ListComparisonMode> comparisonMode+ = new(+ name: $"{nameof(ListCompareGuiTool)}.{nameof(comparisonMode)}",+ defaultValue: ListComparisonMode.AInterB);++ private enum GridRows+ {+ Configuration,+ Text,+ }++ private enum GridColumns+ {+ Stretch+ }++ private string _listA = string.Empty;+ private string _listB = string.Empty;++ private readonly DisposableSemaphore _semaphore = new();+ private readonly ILogger _logger;+ private readonly ISettingsProvider _settingsProvider;+ private readonly IUIMultiLineTextInput _diffListResult = MultilineTextInput("text-compare-diff-list-result");+ private CancellationTokenSource? _cancellationTokenSource;++ [ImportingConstructor]+ public ListCompareGuiTool(ISettingsProvider settingsProvider)+ {+ _logger = this.Log();+ _settingsProvider = settingsProvider;+ }++ // For unit tests.+ internal Task? WorkTask { get; private set; }+++ public UIToolView View+ => new(+ isScrollable: true,+ Grid()+ .Rows(+ (GridRows.Configuration, Auto),+ (GridRows.Text, new UIGridLength(1, UIGridUnitType.Fraction)))+ .Columns(+ (GridColumns.Stretch, new UIGridLength(1, UIGridUnitType.Fraction)))+ .Cells(+ Cell(+ GridRows.Configuration,+ GridColumns.Stretch,++ Stack()+ .Vertical()+ .WithChildren(+ Label()+ .Text(ListCompare.Configuration),++ Setting("list-compare-case_insensitive_comparison")+ .Icon("FluentSystemIcons", '\uEB59')+ .Title(ListCompare.TextCaseSensitiveComparison)+ .Handle(_settingsProvider, caseSensitive, OnCaseSensitiveChanged),++ Setting("list-compare-comparison-mode")+ .Icon("FluentSystemIcons", '\uF1EE')+ .Title(ListCompare.ComparisonOptionTitle)+ .Handle(+ _settingsProvider,+ comparisonMode,+ onOptionSelected: OnComparisonModeChanged,+ Item(ListCompare.AInterB, ListComparisonMode.AInterB),+ Item(ListCompare.AUnionB, ListComparisonMode.AUnionB),+ Item(ListCompare.AOnly, ListComparisonMode.AOnly),+ Item(ListCompare.BOnly, ListComparisonMode.BOnly)+ )+ )+ ),+ Cell(+ GridRows.Text,+ GridColumns.Stretch,++ SplitGrid()+ .Horizontal()+ .TopPaneLength(new UIGridLength(1, UIGridUnitType.Fraction))+ .BottomPaneLength(new UIGridLength(2, UIGridUnitType.Fraction))+ .WithTopPaneChild(+ SplitGrid()+ .Vertical()+ .WithLeftPaneChild(+ MultilineTextInput()+ .Title(ListCompare.ListA)+ .OnTextChanged(OnListAChanged))+ .WithRightPaneChild(+ MultilineTextInput()+ .Title(ListCompare.ListB)+ .OnTextChanged(OnListBChanged)))+ .WithBottomPaneChild(+ _diffListResult+ .ReadOnly()+ .Extendable())+ )));++ public void OnDataReceived(string dataTypeName, object? parsedData)+ {+ }++ private ValueTask OnCaseSensitiveChanged(bool caseSensitive)+ {+ StartCompare();+ return ValueTask.CompletedTask;+ }++ private ValueTask OnListAChanged(string listA)+ {+ _listA = listA;+ StartCompare();+ return ValueTask.CompletedTask;+ }++ private ValueTask OnListBChanged(string listB)+ {+ _listB = listB;+ StartCompare();+ return ValueTask.CompletedTask;+ }++ private void OnComparisonModeChanged(ListComparisonMode col)+ {+ StartCompare();+ }++ private void StartCompare()+ {+ _cancellationTokenSource?.Cancel();+ _cancellationTokenSource?.Dispose();+ _cancellationTokenSource = new CancellationTokenSource();++ WorkTask = CompareAsync(_listA, _listB, _settingsProvider.GetSetting(caseSensitive), _settingsProvider.GetSetting(comparisonMode), _cancellationTokenSource.Token);+ }++ private async Task CompareAsync(string listA, string listB, bool caseSensitive, ListComparisonMode listComparisonMode, CancellationToken cancellationToken)+ {+ using (await _semaphore.WaitAsync(cancellationToken))+ {+ ResultInfo<string> result = ListCompareHelper.Compare(+ listA,+ listB,+ caseSensitive,+ listComparisonMode,+ _logger);++ if (cancellationToken.IsCancellationRequested)+ {+ return;+ }++ Guard.IsNotNull(result);+ string selectedComparisonModeTitle = _settingsProvider.GetSetting(comparisonMode) switch+ {+ ListComparisonMode.AInterB => ListCompare.AInterB,+ ListComparisonMode.AUnionB => ListCompare.AUnionB,+ ListComparisonMode.AOnly => ListCompare.AOnly,+ ListComparisonMode.BOnly => ListCompare.BOnly,+ _ => string.Empty,+ };+ _diffListResult.Title(selectedComparisonModeTitle);+ _diffListResult.Text(result.Data);+ }+ }+}diff --git a/src/app/tests/DevToys.UnitTests/Tools/Helpers/ListCompareHelperTests.cs b/src/app/tests/DevToys.UnitTests/Tools/Helpers/ListCompareHelperTests.csnew file mode 100644index 000000000..25dcbf083--- /dev/null+++ b/src/app/tests/DevToys.UnitTests/Tools/Helpers/ListCompareHelperTests.cs@@ -0,0 +1,177 @@+using DevToys.Tools.Helpers;+using DevToys.Tools.Models;++namespace DevToys.UnitTests.Tools.Helpers;++public class ListCompareHelperTests+{+ [Theory]+ [InlineData("A\nBa\nC\nC", "Ba\nC\nD", "Ba\nC")]+ [InlineData("A\rBa\rC\rC", "Ba\rC\rD", "Ba\nC")]+ [InlineData("A\r\nBa\r\nC\r\nC", "Ba\r\nC\r\nD", "Ba\nC")]+ [InlineData("A\r\nBa\nC\nC", "Ba\nC\r\nD", "Ba\nC")]+ internal void CompareWithMultipleSeparators(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ true,+ ListComparisonMode.AInterB,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }++ [Theory]+ [InlineData("A\nBa\nC\nBa", "BA\nC\nD", "Ba\nC")]+ [InlineData("A\nb\nC", "B\nC\nD", "b\nC")]+ [InlineData("A\nB\nC", "D\nE\nF", "")]+ [InlineData("A\nB\nC", "", "")]+ [InlineData("", "A\nB\nC", "")]+ internal void CompareAInterBCaseInsensitive(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ false,+ ListComparisonMode.AInterB,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }++ [Theory]+ [InlineData("A\nBa\nC\nC", "Ba\nC\nD", "Ba\nC")]+ [InlineData("A\nb\nC", "B\nC\nD", "C")]+ [InlineData("A\nB\nC", "D\nE\nF", "")]+ [InlineData("A\nb\nC", "", "")]+ [InlineData("", "A\nb\nC", "")]+ internal void CompareAInterBCaseSensitive(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ true,+ ListComparisonMode.AInterB,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }++ [Theory]+ [InlineData("A\nBa\nC\nBa", "BA\nC\nD", "A\nBa\nC\nD")]+ [InlineData("A\nb\nC", "B\nC\nD", "A\nb\nC\nD")]+ [InlineData("A\nB\nC", "D\nE\nF", "A\nB\nC\nD\nE\nF")]+ [InlineData("A\nB\nC", "", "A\nB\nC\n")]+ [InlineData("", "A\nB\nC", "\nA\nB\nC")]+ internal void CompareAUnionBCaseInsensitive(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ false,+ ListComparisonMode.AUnionB,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }++ [Theory]+ [InlineData("A\nBa\nC\nBa", "BA\nC\nD", "A\nBa\nC\nBA\nD")]+ [InlineData("A\nb\nC", "B\nC\nD", "A\nb\nC\nB\nD")]+ [InlineData("A\nB\nC", "D\nE\nF", "A\nB\nC\nD\nE\nF")]+ [InlineData("A\nB\nC", "", "A\nB\nC\n")]+ [InlineData("", "A\nB\nC", "\nA\nB\nC")]+ internal void CompareAUnionBCaseSensitive(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ true,+ ListComparisonMode.AUnionB,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }++ [Theory]+ [InlineData("A\nBa\nC\nc", "Ba\nC\nD", "A")]+ [InlineData("A\nb\nC", "B\nC\nD", "A")]+ [InlineData("A\nB\nC", "D\nE\nF", "A\nB\nC")]+ [InlineData("A\nb\nC", "", "A\nb\nC")]+ [InlineData("", "A\nb\nC", "")]+ internal void CompareAOnlyCaseInSensitive(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ false,+ ListComparisonMode.AOnly,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }++ [Theory]+ [InlineData("A\nBa\nC\nc", "Ba\nC\nD", "A\nc")]+ [InlineData("A\nb\nC", "B\nC\nD", "A\nb")]+ [InlineData("A\nB\nC", "D\nE\nF", "A\nB\nC")]+ [InlineData("A\nb\nC", "", "A\nb\nC")]+ [InlineData("", "A\nb\nC", "")]+ internal void CompareAOnlyCaseSensitive(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ true,+ ListComparisonMode.AOnly,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }++ [Theory]+ [InlineData("A\nBa\nC\nc", "Ba\nC\nD", "D")]+ [InlineData("A\nb\nC", "B\nC\nD", "D")]+ [InlineData("A\nB\nC", "D\nE\nF", "D\nE\nF")]+ [InlineData("A\nb\nC", "", "")]+ [InlineData("", "A\nb\nC", "A\nb\nC")]+ internal void CompareBOnlyCaseInSensitive(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ false,+ ListComparisonMode.BOnly,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }++ [Theory]+ [InlineData("A\nBa\nC\nc", "Ba\nC\nD", "D")]+ [InlineData("A\nb\nC", "B\nC\nD", "B\nD")]+ [InlineData("A\nB\nC", "D\nE\nF", "D\nE\nF")]+ [InlineData("A\nb\nC", "", "")]+ [InlineData("", "A\nb\nC", "A\nb\nC")]+ internal void CompareBOnlyCaseSensitive(string listA, string listB, string expectedResult)+ {+ expectedResult = expectedResult.ReplaceLineEndings();+ ResultInfo<string> compareResult = ListCompareHelper.Compare(+ listA,+ listB,+ true,+ ListComparisonMode.BOnly,+ new MockILogger());++ compareResult.Data.Should().Be(expectedResult);+ }+}