Lines Matching refs:success
41 LEReferenceTo<LangSysTable> ScriptTable::findLanguage(const LETableReference& base, LETag languageTag, LEErrorCode &success, le_bool exactMatch) const
47 LEReferenceToArrayOf<TagAndOffsetRecord> langSysRecords(base, success, langSysRecordArray, count);
49 OpenTypeUtilities::getTagOffset(languageTag, langSysRecords, success);
51 if (foundOffset != 0 && LE_SUCCESS(success)) {
57 return LEReferenceTo<LangSysTable>(base, success, langSysTableOffset);
63 LEReferenceTo<ScriptTable> ScriptListTable::findScript(const LETableReference &base, LETag scriptTag, LEErrorCode &success) const
65 if (LE_FAILURE(success) ) {
87 LEReferenceToArrayOf<ScriptRecord> oneElementTable(base, success, &scriptRecordArray[0], 1);
89 if( LE_FAILURE(success) ) {
100 LEReferenceToArrayOf<ScriptRecord> scriptRecordArrayRef(base, success, &scriptRecordArray[0], limit);
101 for(le_int32 s = 0; (s < limit)&&LE_SUCCESS(success); s += 1) {
102 if (SWAPT(scriptRecordArrayRef(s,success).tag) == scriptTag) {
103 scriptTableOffset = SWAPW(scriptRecordArrayRef(s,success).offset);
108 LEReferenceToArrayOf<ScriptRecord> scriptRecordArrayRef(base, success, &scriptRecordArray[0], count);
109 scriptTableOffset = OpenTypeUtilities::getTagOffset(scriptTag, scriptRecordArrayRef, success); // TODO
113 return LEReferenceTo<ScriptTable>(base, success, scriptTableOffset);
119 LEReferenceTo<LangSysTable> ScriptListTable::findLanguage(const LETableReference &base, LETag scriptTag, LETag languageTag, LEErrorCode &success, le_bool exactMatch) const
121 const LEReferenceTo<ScriptTable> scriptTable = findScript(base, scriptTag, success);
127 return scriptTable->findLanguage(scriptTable, languageTag, success, exactMatch).reparent(base);