| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2003, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv
ed. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 private: | 84 private: |
| 85 void copyBufferIfNeeded(); | 85 void copyBufferIfNeeded(); |
| 86 void init(const char*, size_t length); | 86 void init(const char*, size_t length); |
| 87 RefPtr<CStringBuffer> m_buffer; | 87 RefPtr<CStringBuffer> m_buffer; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 WTF_EXPORT bool operator==(const CString& a, const CString& b); | 90 WTF_EXPORT bool operator==(const CString& a, const CString& b); |
| 91 inline bool operator!=(const CString& a, const CString& b) { return !(a == b); } | 91 inline bool operator!=(const CString& a, const CString& b) { return !(a == b); } |
| 92 WTF_EXPORT bool operator==(const CString& a, const char* b); | 92 WTF_EXPORT bool operator==(const CString& a, const char* b); |
| 93 inline bool operator!=(const CString& a, const char* b) { return !(a == b); } | 93 inline bool operator!=(const CString& a, const char* b) { return !(a == b); } |
| 94 // Pretty printer for gtest and base/logging.*. It prepends and appends |
| 95 // double-quotes, and escapes characters other than ASCII printables. |
| 96 WTF_EXPORT std::ostream& operator<<(std::ostream&, const CString&); |
| 94 | 97 |
| 95 } // namespace WTF | 98 } // namespace WTF |
| 96 | 99 |
| 97 using WTF::CString; | 100 using WTF::CString; |
| 98 | 101 |
| 99 #endif // CString_h | 102 #endif // CString_h |
| OLD | NEW |