Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp

    r2 r846  
    8080}
    8181
    82 void *HB_Library_Resolve(const char *library, const char *symbol)
     82void *HB_Library_Resolve(const char *library, int version, const char *symbol)
    8383{
    84     return QLibrary::resolve(library, symbol);
    85 }
    86 
    87 void *HB_TextCodecForMib(int mib)
    88 {
    89     return QTextCodec::codecForMib(mib);
    90 }
    91 
    92 char *HB_TextCodec_ConvertFromUnicode(void *codec, const HB_UChar16 *unicode, hb_uint32 length, hb_uint32 *outputLength)
    93 {
    94     QByteArray data = reinterpret_cast<QTextCodec *>(codec)->fromUnicode((const QChar *)unicode, length);
    95     // ### suboptimal
    96     char *output = (char *)malloc(data.length() + 1);
    97     memcpy(output, data.constData(), data.length() + 1);
    98     if (outputLength)
    99         *outputLength = data.length();
    100     return output;
    101 }
    102 
    103 void HB_TextCodec_FreeResult(char *string)
    104 {
    105     free(string);
     84    return QLibrary::resolve(library, version, symbol);
    10685}
    10786
Note: See TracChangeset for help on using the changeset viewer.