Changeset 65289 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
Aug 12, 2010, 7:29:31 PM (15 years ago)
Author:
[email protected]
Message:

Eeerk! - revert accidentally committed changes in UString!

(JSC::UString::UString):

  • runtime/UString.h:
Location:
trunk/JavaScriptCore/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/UString.cpp

    r65286 r65289  
    5757COMPILE_ASSERT(sizeof(UString) == sizeof(void*), UString_should_stay_small);
    5858
    59 //    UString::UString(const UChar* characters, unsigned length)
    60 //        : m_impl(characters ? StringImpl::create(characters, length) : 0)
    61 //    {
    62 //    }
     59// Construct a string with UTF-16 data.
     60UString::UString(const UChar* characters, unsigned length)
     61    : m_impl(characters ? StringImpl::create(characters, length) : 0)
     62{
     63}
     64
     65// Construct a string with UTF-16 data, from a null-terminated source.
    6366UString::UString(const UChar* characters)
    6467{
     
    7275    m_impl = StringImpl::create(characters, length);
    7376}
    74 //    UString::UString(const char* characters)
    75 //        : m_impl(characters ? StringImpl::create(characters) : 0)
    76 //    {
    77 //    }
    78 //    UString::UString(const char* characters, unsigned length)
    79 //        : m_impl(characters ? StringImpl::create(characters, length) : 0)
    80 //    {
    81 //    }
     77
     78// Construct a string with latin1 data.
     79UString::UString(const char* characters, unsigned length)
     80    : m_impl(characters ? StringImpl::create(characters, length) : 0)
     81{
     82}
     83
     84// Construct a string with latin1 data, from a null-terminated source.
     85UString::UString(const char* characters)
     86    : m_impl(characters ? StringImpl::create(characters) : 0)
     87{
     88}
    8289
    8390UString UString::number(int i)
  • trunk/JavaScriptCore/runtime/UString.h

    r65286 r65289  
    4848
    4949    // Construct a string with UTF-16 data.
    50     UString(const UChar* characters, unsigned length)
    51         : m_impl(characters ? StringImpl::create(characters, length) : 0)
    52     {
    53     }
     50    UString(const UChar* characters, unsigned length);
    5451
    5552    // Construct a string with UTF-16 data, from a null-terminated source.
     
    5754
    5855    // Construct a string with latin1 data.
    59     UString(const char* characters)
    60         : m_impl(characters ? StringImpl::create(characters) : 0)
    61     {
    62     }
     56    UString(const char* characters);
    6357
    6458    // Construct a string with latin1 data, from a null-terminated source.
    65     UString(const char* characters, unsigned length)
    66         : m_impl(characters ? StringImpl::create(characters, length) : 0)
    67     {
    68     }
     59    UString(const char* characters, unsigned length);
    6960
    7061    // Construct a string referencing an existing StringImpl.
Note: See TracChangeset for help on using the changeset viewer.