| 1 | /***************************************************************************** |
| 2 | ** QNapi |
| 3 | ** Copyright (C) 2008-2017 Piotr Krzemiński <[email protected]> |
| 4 | ** |
| 5 | ** This program is free software; you can redistribute it and/or modify |
| 6 | ** it under the terms of the GNU General Public License as published by |
| 7 | ** the Free Software Foundation; either version 2 of the License, or |
| 8 | ** (at your option) any later version. |
| 9 | ** |
| 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
| 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 12 | ** |
| 13 | *****************************************************************************/ |
| 14 | |
| 15 | #include "subtitleinfo.h"cxx . . $ `<file>/libqnapi/src/subtitleinfo.h`/ |
| 16 | #include <QFileInfo> |
| 17 | #include <algorithm> |
| 18 | #include <vector> |
| 19 | |
| 20 | bool SubtitleInfocxx . . $ SubtitleInfo#::operatorcxx . . $ SubtitleInfo#`operator<`(537941af77ea3b7f).<(const SubtitleInfocxx . . $ SubtitleInfo#& other) const { |
| 21 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<QStringcxx . . $ QString#> v1 = {cxx . . $ std/vector#vector(9619226211e5a241).QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(other.resolutioncxx . . $ SubtitleInfo#resolution.), namecxx . . $ SubtitleInfo#name.}; |
| 22 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<QStringcxx . . $ QString#> v2 = {cxx . . $ std/vector#vector(9619226211e5a241).QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(resolutioncxx . . $ SubtitleInfo#resolution.), other.namecxx . . $ SubtitleInfo#name.}; |
| 23 | |
| 24 | return stdcxx . . $ std/::lexicographical_comparecxx . . $ std/lexicographical_compare(51c87e3d44d61bd6).(v1.begincxx . . $ std/vector#begin(33b10a496a38335b).(), v1.endcxx . . $ std/vector#end(33b10a496a38335b).(), v2.begincxx . . $ std/vector#begin(33b10a496a38335b).(), |
| 25 | v2.endcxx . . $ std/vector#end(33b10a496a38335b).()); |
| 26 | } |
| 27 | |
| 28 | SubtitleInfocxx . . $ SubtitleInfo# SubtitleInfocxx . . $ SubtitleInfo#::fromFailedcxx . . $ SubtitleInfo#fromFailed(78bb23d3b57a78f5).(const QStringcxx . . $ QString#& fileName) { |
| 29 | return SubtitleInfocxx . . $ SubtitleInfo#SubtitleInfo(b0b7d91110c9239c).(""cxx . . $ QString#QString(e1217c004a86c950)., ""cxx . . $ QString#QString(e1217c004a86c950)., ""cxx . . $ QString#QString(e1217c004a86c950)., QFileInfocxx . . $ QString#QString(e1217c004a86c950).(fileName).completeBaseNamecxx . . $ QFileInfo#completeBaseName(6ef7b6c27b00b43d).(), ""cxx . . $ QString#QString(e1217c004a86c950)., |
| 30 | ""cxx . . $ QString#QString(e1217c004a86c950)., SUBTITLE_NONEcxx . . $ SUBTITLE_NONE.); |
| 31 | } |