Ignore:
Timestamp:
Jul 17, 2008, 2:11:04 PM (17 years ago)
Author:
[email protected]
Message:

2008-07-17 Sam Weinig <[email protected]>

Roll out r35199 as it is causing failures on the PPC build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/ustring.cpp

    r35199 r35227  
    455455    else
    456456        m_rep = Rep::createCopying(c, length);
     457}
     458
     459UString::UString(UChar* c, int length, bool copy)
     460{
     461    if (length == 0)
     462        m_rep = &Rep::empty;
     463    else if (copy)
     464        m_rep = Rep::createCopying(c, length);
     465    else
     466        m_rep = Rep::create(c, length);
    457467}
    458468
     
    521531}
    522532
    523 UString UString::adopt(UChar* c, int length)
    524 {
    525     if (length == 0)
    526         return UString("");
    527    return UString(Rep::create(c, length));
    528 }
    529 
    530 UString UString::adopt(Vector<UChar>& buffer)
    531 {
    532     if (buffer.isEmpty())
    533         return UString("");
    534    return UString(Rep::create(buffer.releaseBuffer(), buffer.size()));
    535 }
    536 
    537533const UString& UString::null()
    538534{
Note: See TracChangeset for help on using the changeset viewer.