Changeset 846 for trunk/src/3rdparty/harfbuzz/tests
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/3rdparty/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp
r2 r846 80 80 } 81 81 82 void *HB_Library_Resolve(const char *library, const char *symbol)82 void *HB_Library_Resolve(const char *library, int version, const char *symbol) 83 83 { 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); 106 85 } 107 86
Note:
See TracChangeset
for help on using the changeset viewer.