Changeset 21337 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Jul 7, 2009 2:58:27 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49685
- Location:
- trunk/src/VBox/Runtime/common/string
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/RTStrNLen.cpp
r10949 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 35 37 36 38 … … 40 42 return pchEnd ? pchEnd - pszString : cchMax; 41 43 } 44 RT_EXPORT_SYMBOL(RTStrNLen); 42 45 -
trunk/src/VBox/Runtime/common/string/RTStrNLenEx.cpp
r10949 r21337 33 33 *******************************************************************************/ 34 34 #include <iprt/string.h> 35 #include "internal/iprt.h" 35 36 36 37 … … 46 47 return VINF_SUCCESS; 47 48 } 49 RT_EXPORT_SYMBOL(RTStrNLenEx); 48 50 -
trunk/src/VBox/Runtime/common/string/base64.cpp
r16774 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/base64.h> 36 #include "internal/iprt.h" 37 35 38 #include <iprt/assert.h> 36 39 #include <iprt/err.h> … … 216 219 return cb; 217 220 } 221 RT_EXPORT_SYMBOL(RTBase64DecodedSize); 218 222 219 223 … … 399 403 return VINF_SUCCESS; 400 404 } 405 RT_EXPORT_SYMBOL(RTBase64Decode); 401 406 402 407 … … 436 441 return cch; 437 442 } 443 RT_EXPORT_SYMBOL(RTBase64EncodedLength); 438 444 439 445 … … 534 540 return VINF_SUCCESS; 535 541 } 536 542 RT_EXPORT_SYMBOL(RTBase64Encode); 543 -
trunk/src/VBox/Runtime/common/string/simplepattern.cpp
r13549 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/assert.h> 37 39 … … 90 92 #endif 91 93 } 94 RT_EXPORT_SYMBOL(RTStrSimplePatternMatch); 92 95 93 96 … … 153 156 } 154 157 } 158 RT_EXPORT_SYMBOL(RTStrSimplePatternNMatch); 155 159 156 160 … … 191 195 return false; 192 196 } 197 RT_EXPORT_SYMBOL(RTStrSimplePatternMultiMatch); 193 198 194 -
trunk/src/VBox/Runtime/common/string/straprintf.cpp
r8245 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 35 38 #include <iprt/assert.h> 36 39 #include <iprt/alloc.h> … … 178 181 return cbRet; 179 182 } 183 RT_EXPORT_SYMBOL(RTStrAPrintfV); 180 184 181 185 … … 188 192 return cbRet; 189 193 } 194 RT_EXPORT_SYMBOL(RTStrAPrintf); 190 195 -
trunk/src/VBox/Runtime/common/string/strformat.cpp
r19942 r21337 43 43 #define LOG_GROUP RTLOGGROUP_STRING 44 44 #include <iprt/string.h> 45 #include "internal/iprt.h" 46 45 47 #include <iprt/assert.h> 46 48 #ifdef IN_RING3 … … 154 156 return rtStrFormatNumber(psz, *(KSIZE64 *)(void *)&u64Value, uiBase, cchWidth, cchPrecision, fFlags); 155 157 } 158 RT_EXPORT_SYMBOL(RTStrFormatNumber); 156 159 157 160 … … 185 188 if (fFlags & RTSTR_F_LEFT) 186 189 fFlags &= ~RTSTR_F_ZEROPAD; 187 if ( (fFlags & RTSTR_F_THOUSAND_SEP) 188 && ( uiBase != 10 190 if ( (fFlags & RTSTR_F_THOUSAND_SEP) 191 && ( uiBase != 10 189 192 || (fFlags & RTSTR_F_ZEROPAD))) /** @todo implement RTSTR_F_ZEROPAD + RTSTR_F_THOUSAND_SEP. */ 190 193 fFlags &= ~RTSTR_F_THOUSAND_SEP; … … 285 288 uint64_t u64 = *(uint64_t *)(void *)&ullValue; 286 289 if (fFlags & RTSTR_F_THOUSAND_SEP) 287 { 290 { 288 291 do 289 292 { … … 295 298 } 296 299 else 297 { 300 { 298 301 do 299 302 { … … 884 887 return cch; 885 888 } 889 RT_EXPORT_SYMBOL(RTStrFormatV); 886 890 887 891 … … 910 914 return cch; 911 915 } 912 916 RT_EXPORT_SYMBOL(RTStrFormat); 917 -
trunk/src/VBox/Runtime/common/string/strformatrt.cpp
r21315 r21337 142 142 *******************************************************************************/ 143 143 #define LOG_GROUP RTLOGGROUP_STRING 144 #include <iprt/string.h> 145 #include "internal/iprt.h" 146 144 147 #include <iprt/log.h> 145 #include <iprt/string.h>146 148 #include <iprt/assert.h> 147 149 #include <iprt/string.h> -
trunk/src/VBox/Runtime/common/string/strformattype.cpp
r17522 r21337 35 35 #define LOG_GROUP RTLOGGROUP_STRING 36 36 #include <iprt/string.h> 37 #include "internal/iprt.h" 38 37 39 #include <iprt/assert.h> 38 40 #include <iprt/stdarg.h> … … 314 316 return rc; 315 317 } 318 RT_EXPORT_SYMBOL(RTStrFormatTypeRegister); 316 319 317 320 … … 358 361 : VERR_FILE_NOT_FOUND; /** @todo fix status code */ 359 362 } 363 RT_EXPORT_SYMBOL(RTStrFormatTypeDeregister); 360 364 361 365 … … 397 401 : VERR_FILE_NOT_FOUND; /** @todo fix status code */ 398 402 } 403 RT_EXPORT_SYMBOL(RTStrFormatTypeSetUser); 399 404 400 405 -
trunk/src/VBox/Runtime/common/string/string.cpp
r19384 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/alloc.h> 37 39 #include <iprt/assert.h> … … 52 54 RTMemTmpFree(pszString); 53 55 } 56 RT_EXPORT_SYMBOL(RTStrFree); 54 57 55 58 … … 69 72 return psz; 70 73 } 74 RT_EXPORT_SYMBOL(RTStrDup); 71 75 72 76 … … 94 98 return VERR_NO_MEMORY; 95 99 } 100 RT_EXPORT_SYMBOL(RTStrDupEx); 96 101 -
trunk/src/VBox/Runtime/common/string/strprintf.cpp
r8245 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/assert.h> 37 39 … … 97 99 return RTStrFormatV(strbufoutput, &Arg, pfnFormat, pvArg, pszFormat, args); 98 100 } 101 RT_EXPORT_SYMBOL(RTStrPrintfExV); 99 102 100 103 … … 103 106 return RTStrPrintfExV(NULL, NULL, pszBuffer, cchBuffer, pszFormat, args); 104 107 } 108 RT_EXPORT_SYMBOL(RTStrPrintfV); 109 105 110 106 111 RTDECL(size_t) RTStrPrintfEx(PFNSTRFORMAT pfnFormat, void *pvArg, char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...) … … 113 118 return cbRet; 114 119 } 120 RT_EXPORT_SYMBOL(RTStrPrintfEx); 121 115 122 116 123 RTDECL(size_t) RTStrPrintf(char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...) … … 123 130 return cbRet; 124 131 } 132 RT_EXPORT_SYMBOL(RTStrPrintf); 125 133 -
trunk/src/VBox/Runtime/common/string/strspace.cpp
r8245 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/assert.h> 37 39 … … 124 126 return false; 125 127 } 128 RT_EXPORT_SYMBOL(RTStrSpaceInsert); 126 129 127 130 … … 172 175 return pCur; 173 176 } 177 RT_EXPORT_SYMBOL(RTStrSpaceRemove); 174 178 175 179 … … 197 201 return NULL; 198 202 } 203 RT_EXPORT_SYMBOL(RTStrSpaceGet); 199 204 200 205 … … 215 220 return KAVL_FN(DoWithAll)(pStrSpace, true, pfnCallback, pvUser); 216 221 } 222 RT_EXPORT_SYMBOL(RTStrSpaceEnumerate); 217 223 218 224 … … 232 238 return KAVL_FN(Destroy)(pStrSpace, pfnCallback, pvUser); 233 239 } 234 240 RT_EXPORT_SYMBOL(RTStrSpaceDestroy); 241 242 -
trunk/src/VBox/Runtime/common/string/strstrip.cpp
r8245 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 35 38 #include <iprt/ctype.h> 36 39 #include <iprt/string.h> … … 56 59 return psz; 57 60 } 61 RT_EXPORT_SYMBOL(RTStrStrip); 58 62 59 63 … … 72 76 return (char *)psz; 73 77 } 78 RT_EXPORT_SYMBOL(RTStrStripL); 74 79 75 80 … … 89 94 return psz; 90 95 } 96 RT_EXPORT_SYMBOL(RTStrStripR); 91 97 -
trunk/src/VBox/Runtime/common/string/strtonum.cpp
r8279 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/err.h> 37 39 … … 210 212 return rc; 211 213 } 214 RT_EXPORT_SYMBOL(RTStrToUInt64Ex); 212 215 213 216 … … 247 250 return rc; 248 251 } 252 RT_EXPORT_SYMBOL(RTStrToUInt64Full); 249 253 250 254 … … 265 269 return 0; 266 270 } 271 RT_EXPORT_SYMBOL(RTStrToUInt64); 267 272 268 273 … … 298 303 return rc; 299 304 } 305 RT_EXPORT_SYMBOL(RTStrToUInt32Ex); 300 306 301 307 … … 331 337 return rc; 332 338 } 339 RT_EXPORT_SYMBOL(RTStrToUInt32Full); 333 340 334 341 … … 349 356 return 0; 350 357 } 358 RT_EXPORT_SYMBOL(RTStrToUInt32); 351 359 352 360 … … 382 390 return rc; 383 391 } 392 RT_EXPORT_SYMBOL(RTStrToUInt16Ex); 384 393 385 394 … … 415 424 return rc; 416 425 } 426 RT_EXPORT_SYMBOL(RTStrToUInt16Full); 417 427 418 428 … … 433 443 return 0; 434 444 } 445 RT_EXPORT_SYMBOL(RTStrToUInt16); 435 446 436 447 … … 466 477 return rc; 467 478 } 479 RT_EXPORT_SYMBOL(RTStrToUInt8Ex); 468 480 469 481 … … 499 511 return rc; 500 512 } 513 RT_EXPORT_SYMBOL(RTStrToUInt8Full); 501 514 502 515 … … 517 530 return 0; 518 531 } 532 RT_EXPORT_SYMBOL(RTStrToUInt8); 519 533 520 534 … … 639 653 return rc; 640 654 } 655 RT_EXPORT_SYMBOL(RTStrToInt64Ex); 641 656 642 657 … … 675 690 return rc; 676 691 } 692 RT_EXPORT_SYMBOL(RTStrToInt64Full); 677 693 678 694 … … 693 709 return 0; 694 710 } 711 RT_EXPORT_SYMBOL(RTStrToInt64); 695 712 696 713 … … 726 743 return rc; 727 744 } 745 RT_EXPORT_SYMBOL(RTStrToInt32Ex); 728 746 729 747 … … 759 777 return rc; 760 778 } 779 RT_EXPORT_SYMBOL(RTStrToInt32Full); 761 780 762 781 … … 777 796 return 0; 778 797 } 798 RT_EXPORT_SYMBOL(RTStrToInt32); 779 799 780 800 … … 810 830 return rc; 811 831 } 832 RT_EXPORT_SYMBOL(RTStrToInt16Ex); 812 833 813 834 … … 843 864 return rc; 844 865 } 866 RT_EXPORT_SYMBOL(RTStrToInt16Full); 845 867 846 868 … … 861 883 return 0; 862 884 } 885 RT_EXPORT_SYMBOL(RTStrToInt16); 863 886 864 887 … … 894 917 return rc; 895 918 } 919 RT_EXPORT_SYMBOL(RTStrToInt8Ex); 896 920 897 921 … … 927 951 return rc; 928 952 } 953 RT_EXPORT_SYMBOL(RTStrToInt8Full); 929 954 930 955 … … 945 970 return 0; 946 971 } 947 972 RT_EXPORT_SYMBOL(RTStrToInt8); 973 -
trunk/src/VBox/Runtime/common/string/uni.cpp
r8245 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/uni.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/alloc.h> 37 39 … … 42 44 RTMemFree(pusz); 43 45 } 46 RT_EXPORT_SYMBOL(RTUniFree); 47 -
trunk/src/VBox/Runtime/common/string/utf-16.cpp
r8245 r21337 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - UTF-16 3 * IPRT - UTF-16. 4 4 */ 5 5 … … 34 34 *******************************************************************************/ 35 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/uni.h> 37 39 #include <iprt/alloc.h> … … 47 49 RTMemTmpFree(pwszString); 48 50 } 51 RT_EXPORT_SYMBOL(RTUtf16Free); 49 52 50 53 … … 58 61 return pwsz; 59 62 } 63 RT_EXPORT_SYMBOL(RTUtf16Dup); 60 64 61 65 … … 73 77 return VERR_NO_MEMORY; 74 78 } 79 RT_EXPORT_SYMBOL(RTUtf16DupEx); 75 80 76 81 … … 85 90 return pwsz - pwszString; 86 91 } 92 RT_EXPORT_SYMBOL(RTUtf16Len); 87 93 88 94 … … 106 112 } 107 113 } 114 RT_EXPORT_SYMBOL(RTUtf16Cmp); 108 115 109 116 … … 172 179 } 173 180 } 181 RT_EXPORT_SYMBOL(RTUtf16ICmp); 174 182 175 183 … … 209 217 return pwsz; 210 218 } 219 RT_EXPORT_SYMBOL(RTUtf16ToLower); 211 220 212 221 … … 242 251 return pwsz; 243 252 } 253 RT_EXPORT_SYMBOL(RTUtf16ToUpper); 244 254 245 255 … … 455 465 return rc; 456 466 } 467 RT_EXPORT_SYMBOL(RTUtf16ToUtf8); 457 468 458 469 … … 512 523 return rc; 513 524 } 525 RT_EXPORT_SYMBOL(RTUtf16ToUtf8Ex); 514 526 515 527 … … 520 532 return RT_SUCCESS(rc) ? cch : 0; 521 533 } 534 RT_EXPORT_SYMBOL(RTUtf16CalcUtf8Len); 522 535 523 536 … … 530 543 return rc; 531 544 } 545 RT_EXPORT_SYMBOL(RTUtf16CalcUtf8LenEx); 532 546 533 547 … … 560 574 return RTUNICP_INVALID; 561 575 } 576 RT_EXPORT_SYMBOL(RTUtf16GetCpInternal); 562 577 563 578 … … 604 619 return rc; 605 620 } 621 RT_EXPORT_SYMBOL(RTUtf16GetCpExInternal); 606 622 607 623 … … 631 647 return pwsz; 632 648 } 633 634 649 RT_EXPORT_SYMBOL(RTUtf16PutCpInternal); 650 -
trunk/src/VBox/Runtime/common/string/utf-8.cpp
r18570 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/string.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/uni.h> 37 39 #include <iprt/alloc.h> … … 282 284 return RT_SUCCESS(rc) ? cCodePoints : 0; 283 285 } 286 RT_EXPORT_SYMBOL(RTStrUniLen); 284 287 285 288 … … 292 295 return rc; 293 296 } 297 RT_EXPORT_SYMBOL(RTStrUniLenEx); 294 298 295 299 … … 298 302 return RTStrValidateEncodingEx(psz, RTSTR_MAX, 0); 299 303 } 304 RT_EXPORT_SYMBOL(RTStrValidateEncoding); 300 305 301 306 … … 322 327 return RTStrUniLenEx(psz, cch, &cCpsIgnored); 323 328 } 329 RT_EXPORT_SYMBOL(RTStrValidateEncodingEx); 324 330 325 331 … … 329 335 return RT_SUCCESS(rc); 330 336 } 337 RT_EXPORT_SYMBOL(RTStrIsValidEncoding); 331 338 332 339 … … 369 376 return rc; 370 377 } 378 RT_EXPORT_SYMBOL(RTStrToUni); 371 379 372 380 … … 428 436 return rc; 429 437 } 438 RT_EXPORT_SYMBOL(RTStrToUniEx); 430 439 431 440 … … 689 698 return rc; 690 699 } 700 RT_EXPORT_SYMBOL(RTStrToUtf16); 691 701 692 702 … … 748 758 return rc; 749 759 } 760 RT_EXPORT_SYMBOL(RTStrToUtf16Ex); 750 761 751 762 … … 756 767 return RT_SUCCESS(rc) ? cwc : 0; 757 768 } 769 RT_EXPORT_SYMBOL(RTStrCalcUtf16Len); 758 770 759 771 … … 766 778 return rc; 767 779 } 780 RT_EXPORT_SYMBOL(RTStrCalcUtf16LenEx); 768 781 769 782 … … 792 805 return Cp; 793 806 } 807 RT_EXPORT_SYMBOL(RTStrGetCpInternal); 794 808 795 809 … … 914 928 return VINF_SUCCESS; 915 929 } 930 RT_EXPORT_SYMBOL(RTStrGetCpExInternal); 916 931 917 932 … … 1069 1084 return VINF_SUCCESS; 1070 1085 } 1086 RT_EXPORT_SYMBOL(RTStrGetCpNExInternal); 1071 1087 1072 1088 … … 1129 1145 return (char *)puch; 1130 1146 } 1147 RT_EXPORT_SYMBOL(RTStrPutCpInternal); 1131 1148 1132 1149 … … 1161 1178 return (char *)pszStart; 1162 1179 } 1180 RT_EXPORT_SYMBOL(RTStrPrevCp); 1163 1181 1164 1182 … … 1187 1205 return strcmp(psz1, psz2); 1188 1206 } 1207 RT_EXPORT_SYMBOL(RTStrCmp); 1189 1208 1190 1209 … … 1215 1234 return strncmp(psz1, psz2, cchMax); 1216 1235 } 1236 RT_EXPORT_SYMBOL(RTStrNCmp); 1217 1237 1218 1238 … … 1289 1309 return RTStrCmp(psz1, psz2); 1290 1310 } 1311 RT_EXPORT_SYMBOL(RTStrICmp); 1291 1312 1292 1313 … … 1369 1390 return RTStrNCmp(psz1, psz2, cchMax); 1370 1391 } 1392 RT_EXPORT_SYMBOL(RTStrNICmp); 1371 1393 1372 1394 … … 1382 1404 return (char *)strstr(pszHaystack, pszNeedle); 1383 1405 } 1406 RT_EXPORT_SYMBOL(RTStrStr); 1384 1407 1385 1408 … … 1459 1482 return NULL; 1460 1483 } 1484 RT_EXPORT_SYMBOL(RTStrIStr); 1461 1485 1462 1486 … … 1479 1503 return psz; 1480 1504 } 1505 RT_EXPORT_SYMBOL(RTStrToLower); 1481 1506 1482 1507 … … 1499 1524 return psz; 1500 1525 } 1501 1526 RT_EXPORT_SYMBOL(RTStrToUpper); 1527
Note:
See TracChangeset
for help on using the changeset viewer.