| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights
reserved. |
| 4 * Copyright (C) 2007-2009 Torch Mobile, Inc. | 4 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 out.setf(std::ios_base::hex, std::ios_base::basefield); | 968 out.setf(std::ios_base::hex, std::ios_base::basefield); |
| 969 out.setf(std::ios::uppercase); | 969 out.setf(std::ios::uppercase); |
| 970 out << character; | 970 out << character; |
| 971 } | 971 } |
| 972 break; | 972 break; |
| 973 } | 973 } |
| 974 } | 974 } |
| 975 return out << '"'; | 975 return out << '"'; |
| 976 } | 976 } |
| 977 | 977 |
| 978 CrossThreadCopier<String>::Type CrossThreadCopier<String>::copy(const String& st
r) |
| 979 { |
| 980 return str.isolatedCopy(); |
| 981 } |
| 982 |
| 978 } // namespace WTF | 983 } // namespace WTF |
| 979 | 984 |
| 980 #ifndef NDEBUG | 985 #ifndef NDEBUG |
| 981 // For use in the debugger | 986 // For use in the debugger |
| 982 String* string(const char*); | 987 String* string(const char*); |
| 983 Vector<char> asciiDebug(StringImpl*); | 988 Vector<char> asciiDebug(StringImpl*); |
| 984 Vector<char> asciiDebug(String&); | 989 Vector<char> asciiDebug(String&); |
| 985 | 990 |
| 986 void String::show() const | 991 void String::show() const |
| 987 { | 992 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1015 buffer.append('\0'); | 1020 buffer.append('\0'); |
| 1016 return buffer; | 1021 return buffer; |
| 1017 } | 1022 } |
| 1018 | 1023 |
| 1019 Vector<char> asciiDebug(String& string) | 1024 Vector<char> asciiDebug(String& string) |
| 1020 { | 1025 { |
| 1021 return asciiDebug(string.impl()); | 1026 return asciiDebug(string.impl()); |
| 1022 } | 1027 } |
| 1023 | 1028 |
| 1024 #endif | 1029 #endif |
| OLD | NEW |