1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>NEXUS CLASS LIBRARY: NxsString Class</title>
<style type="text/css">
<!--
@import url(ncl.css);
.quickref {font-family: Arial, sans-serif}
.public {font-weight: bold; color: black; background: white;}
.protected {font-weight: bold; color: teal; background: white;}
.private {font-weight: bold; color: red; background: white;}
.groupheading {font-size: large; font-weight: bold;}
.classy {font-family: Arial, sans-serif; color: navy;}
.variablename {font-weight: bold; color: maroon;}
-->
</style>
</head>
<body>
<table border="1" width="100%">
<tr><td>
<table border="0" width="100%">
<tr>
<td align="left"><span class="classy">NEXUS CLASS LIBRARY</span></td>
<td align="right"><span class="classy"><a href="v2.0index.html">home</a> | <a href="classes.html">classes</a> | <a href="functions.html">functions</a></span></td>
</tr>
</table>
</td></tr>
</table>
<h1>Class NxsString</h1>
<h2>Friends</h2>
<a href="#operator598"><span class="quickref">operator <<</span></a>
<h2>Exceptions</h2>
<span class="quickref">NxsX_NotANumber</span>
<h2>Enums</h2>
<a href="#CmpEnum"><span class="quickref">CmpEnum</span></a>
<h2>Member Functions</h2>
<a href="#Abbreviates391"><span class="quickref">Abbreviates</span></a><a href="#AddQuotes81"><span class="quickref">, AddQuotes</span></a><a href="#AddTail63"><span class="quickref">, AddTail</span></a><a href="#BlanksToUnderscores437"><span class="quickref">, BlanksToUnderscores</span></a><a href="#BreakPipeSeparatedList856"><span class="quickref">, BreakPipeSeparatedList</span></a><a href="#Capitalize382"><span class="quickref">, Capitalize</span></a><a href="#clear267"><span class="quickref">, clear</span></a><a href="#ConvertToDouble699"><span class="quickref">, ConvertToDouble</span></a><a href="#ConvertToInt669"><span class="quickref">, ConvertToInt</span></a><a href="#ConvertToLong683"><span class="quickref">, ConvertToLong</span></a><a href="#ConvertToUnsigned657"><span class="quickref">, ConvertToUnsigned</span></a><a href="#endl589"><span class="quickref">, endl</span></a><a href="#Equals441"><span class="quickref">, Equals</span></a><a href="#EqualsCaseInsensitive601"><span class="quickref">, EqualsCaseInsensitive</span></a><a href="#GetQuoted255"><span class="quickref">, GetQuoted</span></a><a href="#GetVecOfPossibleAbbrevMatches839"><span class="quickref">, GetVecOfPossibleAbbrevMatches</span></a><a href="#IsADouble506"><span class="quickref">, IsADouble</span></a><a href="#IsALong574"><span class="quickref">, IsALong</span></a><a href="#IsCapAbbreviation220"><span class="quickref">, IsCapAbbreviation</span></a><a href="#IsInVector275"><span class="quickref">, IsInVector</span></a><a href="#IsNexusPunctuation475"><span class="quickref">, IsNexusPunctuation</span></a><a href="#IsStdAbbreviation176"><span class="quickref">, IsStdAbbreviation</span></a><a href="#NumberThenWord488"><span class="quickref">, NumberThenWord</span></a><a href="#NxsString246"><span class="quickref">, NxsString</span></a><a href="#NxsString291"><span class="quickref">, NxsString</span></a><a href="#NxsString300"><span class="quickref">, NxsString</span></a><a href="#operator35"><span class="quickref">, operator+=</span></a><a href="#operator326"><span class="quickref">, operator+=</span></a><a href="#operator336"><span class="quickref">, operator+=</span></a><a href="#operator346"><span class="quickref">, operator+=</span></a><a href="#operator370"><span class="quickref">, operator+=</span></a><a href="#operator405"><span class="quickref">, operator+=</span></a><a href="#operator417"><span class="quickref">, operator+=</span></a><a href="#operator429"><span class="quickref">, operator+=</span></a><a href="#operator463"><span class="quickref">, operator<<</span></a><a href="#operator502"><span class="quickref">, operator<<</span></a><a href="#operator511"><span class="quickref">, operator<<</span></a><a href="#operator520"><span class="quickref">, operator<<</span></a><a href="#operator529"><span class="quickref">, operator<<</span></a><a href="#operator538"><span class="quickref">, operator<<</span></a><a href="#operator547"><span class="quickref">, operator<<</span></a><a href="#operator556"><span class="quickref">, operator<<</span></a><a href="#operator565"><span class="quickref">, operator<<</span></a><a href="#operator598"><span class="quickref">, operator<<</span></a><a href="#operator309"><span class="quickref">, operator=</span></a><a href="#operator359"><span class="quickref">, operator=</span></a><a href="#PrintF108"><span class="quickref">, PrintF</span></a><a href="#p_str574"><span class="quickref">, p_str</span></a><a href="#QuotesNeeded393"><span class="quickref">, QuotesNeeded</span></a><a href="#RightJustifyDbl343"><span class="quickref">, RightJustifyDbl</span></a><a href="#RightJustifyLong305"><span class="quickref">, RightJustifyLong</span></a><a href="#RightJustifyString372"><span class="quickref">, RightJustifyString</span></a><a href="#SetToShortestAbbreviation729"><span class="quickref">, SetToShortestAbbreviation</span></a><a href="#ShortenTo470"><span class="quickref">, ShortenTo</span></a><a href="#ToHex625"><span class="quickref">, ToHex</span></a><a href="#ToLower493"><span class="quickref">, ToLower</span></a><a href="#ToUpper25"><span class="quickref">, ToUpper</span></a><a href="#UnderscoresToBlanks452"><span class="quickref">, UnderscoresToBlanks</span></a><a href="#UpperCasePrefix644"><span class="quickref">, UpperCasePrefix</span></a>
<h2>Class Description</h2>
<p>
A string class for use with the Nexus Class Library. NxsString inherits most of its functionality from the standard template library class string, adding certain abilities needed for use in NCL, such as the ability to discern whether a short string represents an abbreviation for the string currently stored. Another important addition is the member function PrintF, which accepts a format string and an arbitrary number of arguments, allowing a string to be built in a manner similar to the standard C function printf. Many operators are also provided for appending numbers to the ends of strings, an ability which is very useful for producing default labels (e.g. taxon1, taxon2, etc.).
<h3>Key to symbols and colors</h3>
<p><span class="public">public</span>, <span class="protected">protected</span>, <span class="private">private</span>, <code>A</code> = abstract, <code>C</code> = constructor, <code>D</code> = destructor, <code>I</code> = inline, <code>S</code> = static, <code>V</code> = virtual, <code>F</code> = friend</p>
<p> </p>
<center>
<table border="5" cellpadding="1" cellspacing="0" width="95%">
<tr bgcolor="#CCCCFF">
<td><span class="groupheading">Enums</span></td>
</tr>
</table>
<table border="1" cellpadding="3" cellspacing="0" width="95%">
<tr><td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td>
<table border="0" width="100%" cellpadding="1">
<tr>
<td align="left" width="25%"><code class="public"><a name="CmpEnum">enum CmpEnum</a></code></td>
<td></td>
</tr>
</table>
</td></tr>
<tr><td>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"> </td>
<td align="left" colspan="2"><code>respect_case = 0</code></td>
</tr>
<tr>
<td width="15%"> </td>
<td width="10%"> </td>
<td></td>
</tr>
</table>
</td></tr>
<tr><td>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"> </td>
<td align="left" colspan="2"><code>no_respect_case = 1</code></td>
</tr>
<tr>
<td width="15%"> </td>
<td width="10%"> </td>
<td></td>
</tr>
</table>
</td></tr>
<tr><td>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"> </td>
<td align="left" colspan="2"><code>abbrev = 2</code></td>
</tr>
<tr>
<td width="15%"> </td>
<td width="10%"> </td>
<td></td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</center>
<p> </p>
<center>
<table border="5" cellpadding="1" cellspacing="0" width="95%">
<tr bgcolor="#CCCCFF">
<td><span class="groupheading">Member Functions</span></td>
</table>
<table border="1" cellpadding="3" cellspacing="0" width="95%">
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="Abbreviates391">Abbreviates</a></code><code>(const NxsString &s, NxsString::CmpEnum mode)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the stored string is an abbreviation (or complete copy) of the supplied string <span class="variablename">s</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="AddQuotes81">&AddQuotes</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Replaces the stored string with a copy of itself surrounded by single quotes (single quotes inside the string are converted to the '' pair of characters that signify a single quote). Returns a reference to itself.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="AddTail63">&AddTail</a></code><code>(char c, unsigned n)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Adds <span class="variablename">n</span> copies of the character <span class="variablename">c</span> to the end of the stored string and returns a reference to itself.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="BlanksToUnderscores437">&BlanksToUnderscores</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Converts any blank spaces found in the stored string to the underscore character.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>F</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsStringVector</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="BreakPipeSeparatedList856">BreakPipeSeparatedList</a></code><code>(const NxsString &strList)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Written to make it easy to initialize a vector of strings. Similar to the perl split function. Converts a string like this -- "A|bro|ken strin|g" -- to a vector of strings with four elements: "A", "bro", "ken string", and "g".</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="Capitalize382">&Capitalize</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Capitalizes all lower case letters in the stored string by calling ToUpper.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>void</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="clear267">clear</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Most containers in the standard template library can be completely erased using the clear function, but none is provided for the class string and hence is provided here.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>double</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="ConvertToDouble699">ConvertToDouble</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Converts the stored string to a double using the standard C function strtod, throwing NxsX_NotANumber if the conversion fails. Returns DBL_MAX or -DBL_MAX if the number is out of bounds.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>int</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="ConvertToInt669">ConvertToInt</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Converts the stored string to an int using the standard C function strtol, throwing NxsX_NotANumber if the conversion fails. Returns INT_MAX if the number is too large to fit in an int or -INT_MAX if it is too small.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>long</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="ConvertToLong683">ConvertToLong</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Converts the stored string to a long using the standard C function strtol, throwing NxsX_NotANumber if the conversion fails.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>unsigned</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="ConvertToUnsigned657">ConvertToUnsigned</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Converts the stored string to an unsigned int using the standard C function strtol, throwing NxsX_NotANumber if the conversion fails. Returns UINT_MAX if the number is too large to fit in an unsigned (or was a negative number).</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>IF</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="endl589">&endl</a></code><code>(NxsString &s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Appends a newline character to the string <span class="variablename">s</span> and the returns a reference to <span class="variablename">s</span>. Used with << operator to allow strings to be written to like ostreams.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="Equals441">Equals</a></code><code>(const NxsString &s, NxsString::CmpEnum mode)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Uses the mode argument to call (and return the result of) the correct string comparison function.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="EqualsCaseInsensitive601">EqualsCaseInsensitive</a></code><code>(const NxsString &s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the stored string is a non-case-sensitive copy of the argument <span class="variablename">s</span>. Note: will return true if both the stored string and <span class="variablename">s</span> are empty strings.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="GetQuoted255">GetQuoted</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns a single-quoted version of the NxsString. The calling object is not altered. Written for ease of use. Simply copies the stored string, then returns the copy after calling its AddQuotes function.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>F</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsStringVector</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="GetVecOfPossibleAbbrevMatches839">GetVecOfPossibleAbbrevMatches</a></code><code>(const NxsString &testStr, const NxsStringVector &possMatches)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns a vector of NxsString objects that match the entire <span class="variablename">testStr</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsADouble506">IsADouble</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the stored string can be interpreted as a double value, and returns false otherwise.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsALong574">IsALong</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if stored string can be interpreted as a long integer.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsCapAbbreviation220">IsCapAbbreviation</a></code><code>(const NxsString &s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the stored string is a case-insensitive abbreviation (or complete copy) of <span class="variablename">s</span> and the stored string has all of the characters that are in the initial capitalized portion of <span class="variablename">s</span>. For example if <span class="variablename">s</span> is "KAPpa" then "kappa", "kapp", or "kap" (with any capitalization pattern) will return true and all other strings will return false. Always returns false if the stored string has length of zero.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsInVector275">IsInVector</a></code><code>(const NxsStringVector &s, NxsString::CmpEnum mode)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the Equals comparison function is true for this or any element in the vector <span class="variablename">s</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsNexusPunctuation475">IsNexusPunctuation</a></code><code>(const char c)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if <span class="variablename">c</span> is any Nexus punctuation character:<pre> ()[]{}/,;:=*'"`-+<>
</pre></dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="IsStdAbbreviation176">IsStdAbbreviation</a></code><code>(const NxsString &s, bool respectCase)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the string is a abbreviation (or complete copy) of the argument <span class="variablename">s</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="NumberThenWord488">&NumberThenWord</a></code><code>(unsigned i, const NxsString s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Creates a new string (and returns a reference to the new string) composed of the integer <span class="variablename">i</span> followed by a space and then the string <span class="variablename">s</span>. If <span class="variablename">i</span> is not 1, then an 's' character is appended to make <span class="variablename">s</span> plural. For example, if <span class="variablename">i</span> were 0, 1, or 2, and <span class="variablename">s</span> is "character", then the returned string would be "0 characters", "1 character" or "2 characters", respectively. Obviously this only works if adding an 's' to the supplied string makes it plural.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>CI</td>
<td> </td>
<td align="right" valign="top" width="15%"><code></code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="NxsString246">NxsString</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>The default constructor.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>CI</td>
<td> </td>
<td align="right" valign="top" width="15%"><code></code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="NxsString291">NxsString</a></code><code>(const char *s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>A copy constructor taking a C-string argument.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>CI</td>
<td> </td>
<td align="right" valign="top" width="15%"><code></code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="NxsString300">NxsString</a></code><code>(const NxsString &s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>A copy constructor taking a NxsString reference argument.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator35">&operator+=</a></code><code>(const double d)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Appends a string representation of the supplied double to the stored string and returns a reference to itself.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator326">&operator+=</a></code><code>(const char *s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Appends the supplied C-string <span class="variablename">s</span> to the stored string.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator336">&operator+=</a></code><code>(const NxsString &s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Appends the characters in the supplied NxsString reference <span class="variablename">s</span> to the stored string.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator346">&operator+=</a></code><code>(const char c)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Appends the character <span class="variablename">c</span> to the stored string.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator370">&operator+=</a></code><code>(const int i)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Uses the standard C sprintf function to append the character representation of the supplied integer i' to the stored string (format code %d). For example, if the stored string is "taxon" and <span class="variablename">i</span> is 9, the result is "taxon9".</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator405">&operator+=</a></code><code>(unsigned i)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Uses standard C function sprintf to append the unsigned integer <span class="variablename">i</span> to the stored string (format code %u).</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator417">&operator+=</a></code><code>(const long l)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Uses standard C function sprintf to append the long integer <span class="variablename">l</span> to the stored string (format code %ld).</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator429">&operator+=</a></code><code>(const unsigned lon)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Uses standard C function sprintf to append the unsigned long integer <span class="variablename">l</span> to the stored string (format code %lu).</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator463">&operator<<</a></code><code>(NxsString &(*funcPtr)(NxsStrin)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Allows functions that take and return references to NxsString strings to be placed in a series of << operators. See the NxsString endl function.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator502">&operator<<</a></code><code>(int i)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Another way to call the += operator (written to make it possible to use a NxsString like an ostream)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator511">&operator<<</a></code><code>(unsigned i)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Another way to call the += operator (written to make it possible to use a NxsString like an ostream)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator520">&operator<<</a></code><code>(long l)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Another way to call the += operator (written to make it possible to use a NxsString like an ostream)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator529">&operator<<</a></code><code>(unsigned lon)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Another way to call the += operator (written to make it possible to use a NxsString like an ostream)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator538">&operator<<</a></code><code>(double d)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Another way to call the += operator (written to make it possible to use a NxsString like an ostream)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator547">&operator<<</a></code><code>(const char *c)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Another way to call the += operator (written to make it possible to use a NxsString like an ostream)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator556">&operator<<</a></code><code>(char c)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Another way to call the += operator (written to make it possible to use a NxsString like an ostream)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator565">&operator<<</a></code><code>(const NxsString &s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Another way to call the += operator (written to make it possible to use a NxsString like an ostream)</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>IF</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>ostream</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator598">&operator<<</a></code><code>(ostream &out, const NxsString &s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Writes the string <span class="variablename">s</span> to the ostream <span class="variablename">out</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator309">&operator=</a></code><code>(const char *s)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Sets the stored string equal to the supplied C-string <span class="variablename">s</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="operator359">&operator=</a></code><code>(char c)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Sets the stored string to the supplied character 'c'.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>int</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="PrintF108">PrintF</a></code><code>(const char *formatStr, ...)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Appends a printf-style formatted string onto the end of this NxsString and returns the number of characters added to the string. For example, the following code would result in the string s being set to "ts-tv rate ratio = 4.56789":<pre> double kappa = 4.56789;
NxsString s;
s.PrintF("ts-tv rate ratio = %.5f", kappa);
</pre></dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>I</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>unsigned</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="p_str574">*p_str</a></code><code>(unsigned cha)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns string as a Pascal string (array of unsigned characters with the length in the first byte).</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="QuotesNeeded393">QuotesNeeded</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Returns true if the string needs to be surrounded by single-quotes to make it a single nexus token.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="RightJustifyDbl343">&RightJustifyDbl</a></code><code>(double x, unsigned w, unsigned p, bool clear_first)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Right-justifies <span class="variablename">x</span> in a field <span class="variablename">w</span> characters wide with precision <span class="variablename">p</span>, using blank spaces to fill in unused portions on the left-hand side of the field. Specify true for <span class="variablename">clear_first</span> to first empty the string. Assumes that the specified width is enough to accommodate the string representation of <span class="variablename">x</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="RightJustifyLong305">&RightJustifyLong</a></code><code>(long x, unsigned in, bool clear_first)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Right-justifies <span class="variablename">x</span> in a field <span class="variablename">w</span> characters wide, using blank spaces to fill in unused portions on the left-hand side of the field. Specify true for <span class="variablename">clear_first</span> to first empty the string. Assumes <span class="variablename">w</span> is large enough to accommodate the string representation of <span class="variablename">x</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="RightJustifyString372">&RightJustifyString</a></code><code>(const NxsString &s, unsigned w, bool clear_first)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Right-justifies <span class="variablename">s</span> in a field <span class="variablename">w</span> characters wide, using blank spaces to fill in unused portions on the left-hand side of the field. Specify true for <span class="variablename">clear_first</span> to first empty the string. Assumes that the specified width is enough to accommodate <span class="variablename">s</span>.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>F</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>bool</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="SetToShortestAbbreviation729">SetToShortestAbbreviation</a></code><code>(NxsStringVector &strVec, bool allowTooShort)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Transforms the vector of NxsString objects by making them all lower case and then capitalizing the first portion of them so that the capitalized portion is enough to uniquely specify each. Returns true if the strings are long enough to uniquely specify each. Horrendously bad algorithm, but shouldn't be called often.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="ShortenTo470">&ShortenTo</a></code><code>(unsigned n)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Shortens stored string to <span class="variablename">n</span> - 3 characters, making the last three characters "...". If string is already less than <span class="variablename">n</span> characters in length, this function has no effect. This is useful when it is desirable to show some of the contents of a string, even when the string will not fit in its entirety into the space available for displaying it. Assumes that <span class="variablename">n</span> is at least 4.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td>S</td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="ToHex625">ToHex</a></code><code>(long p, unsigned nFours)</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Creates a string representation of the hexadecimal version of the long integer <span class="variablename">p</span>. For example, if <span class="variablename">p</span> equals 123, and if 2 was specified for <span class="variablename">nFours</span>, the resulting string would be "7B". If 4 was specified for <span class="variablename">nFours</span>, then the resulting string would be "007B".</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="ToLower493">&ToLower</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Converts every character in the stored string to its lower case equivalent.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="ToUpper25">&ToUpper</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Capitalizes every character in the stored string.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="UnderscoresToBlanks452">&UnderscoresToBlanks</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Converts any underscore characters found in the stored string to blank spaces.</dd></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="100%" border="0" cellpadding="1">
<tr>
<td> </td>
<td> </td>
<td align="right" valign="top" width="15%"><code>NxsString</code></td>
<td> </td>
<td align="left" valign="top" width="82%"><code class="public"><a name="UpperCasePrefix644">UpperCasePrefix</a></code><code>()</code></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td><dd>Checks to see if the stored string begins with upper case letters and, if so, returns all of the contiguous capitalized prefix. If the stored string begins with lower case letters, an empty string is returned.</dd></td>
</tr>
</table>
</td></tr>
</table>
</center>
|