| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "config.h" | 22 #include "config.h" |
| 23 #include "WTFString.h" | 23 #include "WTFString.h" |
| 24 | 24 |
| 25 #include "IntegerToStringConversion.h" | 25 #include "IntegerToStringConversion.h" |
| 26 #include <stdarg.h> | 26 #include <stdarg.h> |
| 27 #include <wtf/ASCIICType.h> | 27 #include "wtf/ASCIICType.h" |
| 28 #include <wtf/DataLog.h> | 28 #include "wtf/DataLog.h" |
| 29 #include <wtf/HexNumber.h> | 29 #include "wtf/HexNumber.h" |
| 30 #include <wtf/MathExtras.h> | 30 #include "wtf/MathExtras.h" |
| 31 #include <wtf/text/CString.h> | 31 #include "wtf/text/CString.h" |
| 32 #include <wtf/StringExtras.h> | 32 #include "wtf/StringExtras.h" |
| 33 #include <wtf/Vector.h> | 33 #include "wtf/Vector.h" |
| 34 #include <wtf/dtoa.h> | 34 #include "wtf/dtoa.h" |
| 35 #include <wtf/unicode/CharacterNames.h> | 35 #include "wtf/unicode/CharacterNames.h" |
| 36 #include <wtf/unicode/UTF8.h> | 36 #include "wtf/unicode/UTF8.h" |
| 37 #include <wtf/unicode/Unicode.h> | 37 #include "wtf/unicode/Unicode.h" |
| 38 | 38 |
| 39 using namespace std; | 39 using namespace std; |
| 40 | 40 |
| 41 namespace WTF { | 41 namespace WTF { |
| 42 | 42 |
| 43 using namespace Unicode; | 43 using namespace Unicode; |
| 44 using namespace std; | 44 using namespace std; |
| 45 | 45 |
| 46 // Construct a string with UTF-16 data. | 46 // Construct a string with UTF-16 data. |
| 47 String::String(const UChar* characters, unsigned length) | 47 String::String(const UChar* characters, unsigned length) |
| (...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 buffer.append('\0'); | 1199 buffer.append('\0'); |
| 1200 return buffer; | 1200 return buffer; |
| 1201 } | 1201 } |
| 1202 | 1202 |
| 1203 Vector<char> asciiDebug(String& string) | 1203 Vector<char> asciiDebug(String& string) |
| 1204 { | 1204 { |
| 1205 return asciiDebug(string.impl()); | 1205 return asciiDebug(string.impl()); |
| 1206 } | 1206 } |
| 1207 | 1207 |
| 1208 #endif | 1208 #endif |
| OLD | NEW |