Lines Matching defs:that

14  * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
44 * This is a C++ string class that does not depend on anything else except IPRT
48 * Note that RTCString does not differentiate between NULL strings
54 * @note RTCString ASSUMES that all strings it deals with are valid UTF-8.
58 /** @remarks Much of the code in here used to be in com::Utf8Str so that
60 * that is COM-specific, such as com::Bstr conversions. Compared to
70 * Creates an empty string that has no memory allocated.
134 * that for the va_list constructor.
194 * In other words, this does not count unicode codepoints; use utf8length() for that.
233 * Make sure at that least cb of buffer space is reserved.
235 * Requests that the contained memory buffer have at least cb bytes allocated.
339 * Appends the string "that" to "this".
341 * @param that The string to append.
347 RTCString &append(const RTCString &that);
350 * Appends the string "that" to "this".
385 * @param that The string to append.
389 RTCString &operator+=(const RTCString &that)
391 return append(that);
486 * Returns a non-const raw pointer that allows to modify the string directly.
492 * capacity() to find out how large that buffer is.
493 * -# After any operation that modifies the length of the string,
572 are treated the same way so that str.compare(str2.c_str()) works. */
589 int compare(const RTCString &that, CaseSensitivity cs = CaseSensitive) const
592 return ::RTStrCmp(m_psz, that.m_psz);
593 return ::RTStrICmp(m_psz, that.m_psz);
600 * @param that The string to compare with.
602 bool equals(const RTCString &that) const
604 return that.length() == length()
605 && memcmp(that.m_psz, m_psz, length()) == 0;
617 are treated the same way so that str.equals(str2.c_str()) works. */
627 * @param that The string to compare with.
629 bool equalsIgnoreCase(const RTCString &that) const
633 return RTStrICmp(that.m_psz, m_psz) == 0;
645 are treated the same way so that str.equalsIgnoreCase(str2.c_str()) works. */
653 bool operator==(const RTCString &that) const { return equals(that); }
654 bool operator!=(const RTCString &that) const { return !equals(that); }
655 bool operator<( const RTCString &that) const { return compare(that) < 0; }
656 bool operator>( const RTCString &that) const { return compare(that) > 0; }
727 * to ensure that the offsets do not copy invalid UTF-8 sequences. When
754 * Returns true if "this" ends with "that".
756 * @param that Suffix to test for.
760 bool endsWith(const RTCString &that, CaseSensitivity cs = CaseSensitive) const;
763 * Returns true if "this" begins with "that".
764 * @param that Prefix to test for.
768 bool startsWith(const RTCString &that, CaseSensitivity cs = CaseSensitive) const;
771 * Returns true if "this" contains "that" (strstr).
773 * @param that Substring to look for.
777 bool contains(const RTCString &that, CaseSensitivity cs = CaseSensitive) const;
973 size_t m_cbAllocated; /**< Size of buffer that m_psz points to; at least m_cbLength + 1. */