| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 282 |
| 283 private: | 283 private: |
| 284 const String& m_buffer; | 284 const String& m_buffer; |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 template<> | 287 template<> |
| 288 class StringTypeAdapter<AtomicString> { | 288 class StringTypeAdapter<AtomicString> { |
| 289 DISALLOW_NEW(); | 289 DISALLOW_NEW(); |
| 290 public: | 290 public: |
| 291 StringTypeAdapter<AtomicString>(const AtomicString& string) | 291 StringTypeAdapter<AtomicString>(const AtomicString& string) |
| 292 : m_adapter(string.string()) | 292 : m_adapter(string.getString()) |
| 293 { | 293 { |
| 294 } | 294 } |
| 295 | 295 |
| 296 unsigned length() { return m_adapter.length(); } | 296 unsigned length() { return m_adapter.length(); } |
| 297 | 297 |
| 298 bool is8Bit() { return m_adapter.is8Bit(); } | 298 bool is8Bit() { return m_adapter.is8Bit(); } |
| 299 | 299 |
| 300 void writeTo(LChar* destination) { m_adapter.writeTo(destination); } | 300 void writeTo(LChar* destination) { m_adapter.writeTo(destination); } |
| 301 void writeTo(UChar* destination) { m_adapter.writeTo(destination); } | 301 void writeTo(UChar* destination) { m_adapter.writeTo(destination); } |
| 302 | 302 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 result += adapter1.length(); | 348 result += adapter1.length(); |
| 349 adapter2.writeTo(result); | 349 adapter2.writeTo(result); |
| 350 | 350 |
| 351 return resultImpl.release(); | 351 return resultImpl.release(); |
| 352 } | 352 } |
| 353 | 353 |
| 354 } // namespace WTF | 354 } // namespace WTF |
| 355 | 355 |
| 356 #include "wtf/text/StringOperators.h" | 356 #include "wtf/text/StringOperators.h" |
| 357 #endif | 357 #endif |
| OLD | NEW |