儲存庫 vbox 的更動 67650
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/iprt/cpp/ministring.h
r67645 r67650 290 290 291 291 /** 292 * Assigns a copy of pcsz to "this".292 * Assigns a copy of pcsz to @a this. 293 293 * 294 294 * @param pcsz The source string. … … 310 310 311 311 /** 312 * Assigns a copy of s to "this".312 * Assigns a copy of s to @a this. 313 313 * 314 314 * @param s The source string. … … 358 358 359 359 /** 360 * Appends the string "that" to "this".360 * Appends the string @a that to @a this. 361 361 * 362 362 * @param that The string to append. … … 369 369 370 370 /** 371 * Appends the string "that" to "this".371 * Appends the string @a that to @a this. 372 372 * 373 373 * @param pszThat The C string to append. … … 380 380 381 381 /** 382 * Appends the given character to "this".382 * Appends the given character to @a this. 383 383 * 384 384 * @param ch The character to append. … … 391 391 392 392 /** 393 * Appends the given unicode code point to "this".393 * Appends the given unicode code point to @a this. 394 394 * 395 395 * @param uc The unicode code point to append. … … 759 759 760 760 /** 761 * Returns a substring of "this"as a new Utf8Str.761 * Returns a substring of @a this as a new Utf8Str. 762 762 * 763 763 * Works exactly like its equivalent in std::string. With the default … … 767 767 * used in conjunction with find() and length(), this will work. 768 768 * 769 * @param pos Index of first byte offset to copy from "this", counting from 0. 769 * @param pos Index of first byte offset to copy from @a this, 770 * counting from 0. 770 771 * @param n Number of bytes to copy, starting with the one at "pos". 771 772 * The copying will stop if the null terminator is encountered before … … 778 779 779 780 /** 780 * Returns a substring of "this" as a new Utf8Str. As opposed to substr(),781 * thisvariant takes codepoint offsets instead of byte offsets.781 * Returns a substring of @a this as a new Utf8Str. As opposed to substr(), this 782 * variant takes codepoint offsets instead of byte offsets. 782 783 * 783 784 * @param pos Index of first unicode codepoint to copy from 784 * "this", counting from 0.785 * @a this, counting from 0. 785 786 * @param n Number of unicode codepoints to copy, starting with 786 787 * the one at "pos". The copying will stop if the null … … 791 792 792 793 /** 793 * Returns true if "this" ends with "that".794 * Returns true if @a this ends with @a that. 794 795 * 795 796 * @param that Suffix to test for. … … 800 801 801 802 /** 802 * Returns true if "this" begins with "that".803 * Returns true if @a this begins with @a that. 803 804 * @param that Prefix to test for. 804 805 * @param cs Case sensitivity selector. … … 808 809 809 810 /** 810 * Returns true if "this" contains "that"(strstr).811 * Returns true if @a this contains @a that (strstr). 811 812 * 812 813 * @param that Substring to look for. 813 814 * @param cs Case sensitivity selector. 814 * @returns true if match, false if mismatch.815 * @returns true if found, false if not found. 815 816 */ 816 817 bool contains(const RTCString &that, CaseSensitivity cs = CaseSensitive) const; 818 819 /** 820 * Returns true if @a this contains @a pszNeedle (strstr). 821 * 822 * @param pszNeedle Substring to look for. 823 * @param cs Case sensitivity selector. 824 * @returns true if found, false if not found. 825 */ 826 bool contains(const char *pszNeedle, CaseSensitivity cs = CaseSensitive) const; 817 827 818 828 /** -
trunk/src/VBox/Runtime/common/string/ministring.cpp
r67645 r67650 372 372 } 373 373 374 bool RTCString::contains(const char *pszNeedle, CaseSensitivity cs /*= CaseSensitive*/) const 375 { 376 /** @todo r-bird: Not checking for NULL strings like startsWith does (and 377 * endsWith only does half way). */ 378 if (cs == CaseSensitive) 379 return ::RTStrStr(m_psz, pszNeedle) != NULL; 380 return ::RTStrIStr(m_psz, pszNeedle) != NULL; 381 } 382 374 383 int RTCString::toInt(uint64_t &i) const 375 384 {
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器