| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 3 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef StringOperators_h | 22 #ifndef SKY_ENGINE_WTF_TEXT_STRINGOPERATORS_H_ |
| 23 #define StringOperators_h | 23 #define SKY_ENGINE_WTF_TEXT_STRINGOPERATORS_H_ |
| 24 | 24 |
| 25 namespace WTF { | 25 namespace WTF { |
| 26 | 26 |
| 27 template<typename StringType1, typename StringType2> | 27 template<typename StringType1, typename StringType2> |
| 28 class StringAppend { | 28 class StringAppend { |
| 29 public: | 29 public: |
| 30 StringAppend(StringType1 string1, StringType2 string2) | 30 StringAppend(StringType1 string1, StringType2 string2) |
| 31 : m_string1(string1) | 31 : m_string1(string1) |
| 32 , m_string2(string2) | 32 , m_string2(string2) |
| 33 { | 33 { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 | 138 |
| 139 template<typename U, typename V, typename W> | 139 template<typename U, typename V, typename W> |
| 140 StringAppend<StringAppend<U, V>, W> operator+(const StringAppend<U, V>& string1,
W string2) | 140 StringAppend<StringAppend<U, V>, W> operator+(const StringAppend<U, V>& string1,
W string2) |
| 141 { | 141 { |
| 142 return StringAppend<StringAppend<U, V>, W>(string1, string2); | 142 return StringAppend<StringAppend<U, V>, W>(string1, string2); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace WTF | 145 } // namespace WTF |
| 146 | 146 |
| 147 #endif // StringOperators_h | 147 #endif // SKY_ENGINE_WTF_TEXT_STRINGOPERATORS_H_ |
| OLD | NEW |