Ignore:
Timestamp:
Apr 3, 2006, 4:49:39 PM (19 years ago)
Author:
staikos
Message:

Reviewed by Maciej.

Implement a unicode abstraction layer to make JavaScriptCore much more
easily ported to other platforms without having to take in libicu. Also
makes the unicode related code easier to understand.

File:
1 edited

Legend:

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

    r13541 r13663  
    4545using std::max;
    4646
    47 #include <unicode/uchar.h>
     47#include <kxmlcore/unicode/Unicode.h>
    4848
    4949namespace KJS {
     
    145145UChar UChar::toLower() const
    146146{
    147   return static_cast<unsigned short>(u_tolower(uc));
     147  return KXMLCore::Unicode::toLower(uc);
    148148}
    149149
    150150UChar UChar::toUpper() const
    151151{
    152   return static_cast<unsigned short>(u_toupper(uc));
     152  return KXMLCore::Unicode::toUpper(uc);
    153153}
    154154
Note: See TracChangeset for help on using the changeset viewer.